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

siFamily or Array of siFamily elements

Family (or families) to check

Return Value

Boolean

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


Autodesk Softimage v7.5