ProjectItem.BelongsTo operator

Description

Returns True if the object belongs to specified family and False otherwise.

C# Syntax

Boolean ProjectItem.BelongsTo( Object );

Scripting Syntax

oBoolean = ProjectItem.BelongsTo( Family );

Return Value

Boolean

Parameters

Parameter Type Description
Family siFamily or Array of siFamily elements Family (or families) to check

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