Item (SIObjectCollection) *

Description

Sets or returns a member of the collection by index or key. If the collection is empty, this property returns "Nothing", which you can use to trap errors.

Note: This property is only operator-compliant if the property used to get this collection is also operator-compliant.

C# Syntax

// get accessor
SIObject SIObjectCollection.get_Item( Object idx );

Parameters

Parameter

Type

Description

key

String or Integer

An expression that specifies the position or the name of a member of the collection.

Note: To identify the collection item by name, use the SIObject.Name value as the key, unless you are working with the ParameterCollection. With Parameters you can use the Parameter.ScriptName value. For example, oConstraints.Item("Direction Cns") will work, but oConstraints.Item("dircns") will not.

Examples

• See SIObjectCollection.Item.1.vbs

• See SIObjectCollection.Item.2.vbs



Autodesk Softimage 2011