- Size ()
Function used to return the number of items contained in the
list.
|
- AddItem ()
Function used to add an item to the list.
let list (List)
list->AddItem(PartBody\Hole.2
,1)
list->AddItem(PartBody\Hole.3
,2)
Message("#",list->Size())
|
|
- Compute()
Function used to compute the result of an operation performed on the
attributes supported by the features contained in the list.
Example: List.1 .Compute("+","Hole","x.Diameter",Length.1)
Where:
- List.1 is the name of the list on which the calculation will be
performed
- + is the operator used. (Supported operators are: -, min, and
max.)
- Hole is the type of the list items used for the calculation (to
calculate the diameter, the type to be indicated is Hole, to
calculate the volume, the type to be indicated is Solid)
- x stands for the list items. Note that the type of the items
contained in the list must be identical.
- Length.1 is the output parameter.
|
- GetItem ()
Function used to retrieve a value/item from the list
|
- IsSorted ()
Limits the elements in the interface to instances of a certain type
|
- RemoveItem ()
Function used to remove an item from the list.
|
- ReorderItem ( )
Function used to move an element of the list to a new position.
|
- Sum ()
Function used to copy the content of a list and paste it in
another list.
|