BelongsTo (ProjectItem) *
Description
Returns True if the object belongs to specified family and False otherwise.
Scripting Syntax
ProjectItem.BelongsTo( Family )
C# Syntax
Boolean ProjectItem.BelongsTo( Object );
Parameters
|
Parameter |
Type |
Description |
|
Family |
Family (or families) to check |
Return Value
Examples
VBScript Example
set oRoot = Application.ActiveProject.ActiveScene.Root set oCube = oRoot.AddGeometry( "Cube", "MeshSurface" ) set oPrimitive = oCube.ActivePrimitive if oPrimitive.BelongsTo(siGeometryFamily) then Application.LogMessage oCube.Name & " is a geometry object" end if
SOFTIMAGE|XSI v6.01