Returns True if the object belongs to specified family and False otherwise.
Boolean ProjectItem.BelongsTo( Object ); |
oBoolean = ProjectItem.BelongsTo( Family ); |
Parameter | Type | Description |
---|---|---|
Family | siFamily or Array of siFamily elements | Family (or families) to check |
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 |