Import
Example
Notes
- All values are in metres. The axis goes through the centre of the section.
- The start point and the end point must be different.
- A
CUSTOMshape needs acustomProfile. Floorkit uses only the outer ring of that profile. - The class makes geometry. It does not calculate structural strength.
- In a saved building, the
yofstartandendis the height above the storey. - Sections and elevations draw every shape, round and non-convex custom sections too, level or sloped. A plan draws a beam cut, below or above the plan cut.
movechanges only this live object. The managed editors save a beam with move and turn grips, and the plan editor also with end grips. See Add a beam.- Use
materialto record the structural material of the beam. - 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
Axis end point (world). May differ in Y from
start — sloped beams are supported (ridge beams,
raking members).Custom section profile (local [u, v] coordinates centered on [0, 0]: u = horizontal across the
beam, v = vertical). Only the outer ring is used (swept sections cannot carry holes). Only when
shape === CUSTOM.
Properties
Methods
editableSchema
move
rotate
angleDeg around axis (default Y-up), pivoted at anchor (default the element’s own centroid).
setOPGeometry
getExportRoots
toDrawing
setOPMaterial
getEditAnchors
end:start and end:end (named as the ends of a wall), each free on its own horizontal plane (its Y is preserved, so sloped beams stay sloped).
applyEditAnchor
getOPConfig
setOPConfig
beginEdit
beginEdit before endEdit keeps the first start.