CreateNamedSelection

Creates a list of entities containing objects or faces (not both).

UI Access Modeler > Named Selection > Create > [Object / Face] Selection
Parameters
Name Type Description

<Parameters>

Array

Structured array. 

Array("NAME:NamedSelectionParameters",

"Type:=" , <string "Object" or "Face">,

"Selection:=" , <string of object names or IDs>)

See GetObjectIDByName for returning object IDs.

<AttributesArray> Array Structured array. See AttributesArray. CreateNamedSelection takes only the "Name" parameter and UDM ID.
Return Value None.

Python Syntax

CreateNamedSelection(<Parameters>,<AttributesArray>)

Python Example

namedSelectionName = oEditor.CreateNamedSelection(

[

"NAME:NamedSelectionParameters",

"Type:=" , "Face",

"Selection:=" , [7,9]

],

[

"NAME:Attributes",

"Name:=" , "FaceSelection1",

"UDM ID:=" , -1

])