GeometryAssembly

A geometry assembly.

Example

app = cf.GetApplication()
project = app:NewProject()

cuboid1 = project.Geometry:AddCuboid(cf.Point(0,0,0),1,1,1)
cuboid2 = project.Geometry:AddCuboid(cf.Point(0,0,0),1,1,1)

    -- Create assemblies
    
assembly1 = project.Geometry.Assemblies:Add({cuboid1})
assembly2 = project.Geometry.Assemblies:Add({cuboid2})

    -- Move geometry into an assembly
    
assembly2:AddGeometry(cuboid1)

    -- Delete an assembly and its contents
    
assembly1:Delete()

    --Disassemble an assembly

assembly2:Disassemble()

Property List

Label
The object label. (Read/Write string)
Type
The object type string. (Read only string)

Collection List

Children
The geometry operators in the assembly. (GeometryAssemblyChildrenCollection of Geometry.)

Method List

AddGeometry (geometry Geometry)
Adds the geometry operator to the assembly.
Delete ()
Deletes the assembly and the geometry contained in it.
Disassemble ()
Disassembles the assembly.
RemoveGeometry (geometry Geometry)
Remove the geometry operator from the assembly.

Property Details

Label
The object label.
Type
string
Access
Read/Write
Type
The object type string.
Type
string
Access
Read only

Collection Details

Children
The geometry operators in the assembly.
Type
GeometryAssemblyChildrenCollection

Method Details

AddGeometry (geometry Geometry)
Adds the geometry operator to the assembly.
Input Parameters
geometry(Geometry)
The geometry to add to the assembly.
Delete ()
Deletes the assembly and the geometry contained in it.
Disassemble ()
Disassembles the assembly.
RemoveGeometry (geometry Geometry)
Remove the geometry operator from the assembly.
Input Parameters
geometry(Geometry)
The geometry to remove from the assembly.