Import
Example
Notes
centeris[x, z]in metres.elevationis the bottom of the column.rotationis in degrees.- A
CUSTOMshape needs acustomProfile. - The class makes geometry. It does not calculate structural strength.
- Start the geometry kernel before you create this object. See
Floorkit. - This object is live geometry. To save a building, write it in a building model.
extends OPElement implements IShape, IPlaceable, PlanVectorExportable
Constructor
string
string
ElementType.COLUMN
ColumnShape
Point2
Center insertion point in the world XZ plane: [x, z].
number
Y-axis rotation in degrees, applied to the local profile around the center before geometry is
built.
number
World Y of the column base. The profile is extruded upward by
height.number
Column height (vertical extent from elevation).
number
Width (X-extent) for RECTANGULAR shape.
number
Depth (Z-extent) for RECTANGULAR shape.
number
Radius for CIRCULAR shape.
PolygonProfile
Custom polygon profile (local coordinates, centered on [0,0]). Only used when shape === CUSTOM.
number
ColumnMaterial
string[]
ogids of openings whose
opening3D Solids should be CSG-subtracted.PropertySets
Properties
ElementType
string
Map<string, OPGeometry>
Map<string, OPGeometry>
boolean
boolean
boolean
ColumnOptions
string
ColumnShape
PointXZ
number
number
number
number
Push/pull alias for the GUIEditor — the extrude dimension is the height.
number
number
number
number
ColumnMaterial
PolygonProfile | undefined
PolygonProfile
Editable cross-section for the GUIEditor. Reads the current local profile
(rectangular/circular/custom); writing switches the column to a CUSTOM profile and rebuilds. Edits
align with the editor when
center is [0,0] and rotation is 0 (the profile is generated in the
column’s local frame).boolean
boolean
boolean
Methods
editableSchema
move
delta (world-space, meters).
rotate
angleDeg around axis (default Y-up), pivoted at anchor (default the element’s own centroid).
addOpening
removeOpening
getHostedOpenings
setOPGeometry
getExportRoots
toDrawing
setOPMaterial
getOPConfig
setOPConfig
beginEdit
beginEdit before endEdit keeps the first start.