CollectionItem.IsA
 
 
 

CollectionItem.IsA

Description

Returns a Boolean value indicating whether the object has the required kind of pset relationship with its parent.

C# Syntax

// get accessor
Object CollectionItem.get_IsA( Int32 );

Parameters

Parameter Type Description
Type siPSetRelationship Type of pset relationship to check

Default Value: n/a

Examples

VBScript Example

set oRoot = Application.ActiveProject.ActiveScene.Root
set oObject = oRoot.AddGeometry("Cube", "MeshSurface")
set oMaterial = oObject.AddMaterial("Phong")
set oCollectionItem = CreateObject("XSI.CollectionItem")
oCollectionItem.Value = oMaterial.FullName
logmessage "Material is shared? " & oCollectionItem.IsA(siSharedPSet)

See Also

siPSetRelationship