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.
- In a saved building, a column has
baseOffsetabove its storey; the build setselevationto the storey elevation plusbaseOffset. moveand thebaseandtophandles change only this live object. The managed editors save a column with a move grip and a turn grip and have no height grip. See Add a column.- The material determines the hatch when a plan or section cuts the column.
- 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
Plan rotation in degrees about the center, counter-clockwise seen from above, applied to the local
profile before geometry is built.
Custom polygon profile (local coordinates, centered on [0,0]). Only used when shape === CUSTOM.
The structural material. A saved CONCRETE, STEEL or TIMBER column draws its hatch where a plan or
section cuts it.
Properties
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).Methods
editableSchema
move
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.
endEdit
getEditAnchors
base moves it on the XZ plane and top sets its height.