CollectionItem.SubElements2

Description

Returns the object's internal array of indices in its current order

Use CollectionItem.SubElements if you want the elements to be returned in ascending numerical order.

C# Syntax

// get accessor
Object rtn = CollectionItem.SubElements2;

Examples

VBScript Example

set oRoot = Application.ActiveProject.ActiveScene.Root
set oObject = oRoot.AddGeometry("Cube", "MeshSurface")
set oItem = CreateObject("XSI.CollectionItem")
oItem.Value = oObject.FullName & "." & siVertexCluster & "[*]"
logmessage "subset of components selected"
oItem.SubElements = Array(0,2,6,1,4)
aNewIndices = oItem.SubElements2
for i = LBound( aNewIndices, 1 ) to UBound( aNewIndices, 1 )
LogMessage "SubComponent[" & i & "] : " & aNewIndices (i)
next