Before you start
Your building has the roomroom-walls from Draw a wall.
Add the door
The centre of this door is 2 metres from the first point of the wall, on the first side of the room.Set the swing
doorQuadrant sets the hinge side and the swing side. Stand at the first point of the wall and look along the wall.
swingAngleDegrees sets how far the leaf is open, 0 to 180: 0 closed, 90 square to the wall, 180 flat against it; the arc ends at the leaf. doorType sets how the door draws and builds: see Door types.
The plan draws the leaf at swingAngleDegrees. The 3D model, sections and elevations show the leaf closed. A section or an elevation with settings: { doorLeaves: 'open' } draws the leaf at its swing angle: see Cut a section.
Choose the leaf
leafStyle sets what the leaf of a WOOD, OTHER, DOUBLEDOOR, DOUBLEACTION or FOLDING door is made of.
leafPanelsis for apanelledleaf only: 1 to 8, 4 if you do not give it. 4, 6 and 8 panels stand in two columns; 1, 2, 3, 5 and 7 stand in one column.- An elevation shows the edge of each panel and each pane. The glass is part role
glazing, so it hides what is behind it in elevations and sections. - In a section or an elevation, each seen line and seen region of a door carries its part name:
door-frame,door-leaf,door-panel,rail(the bottom rail of a panelled or glazed leaf; the bottom line of the leaf staysdoor-leaf) orglazing. Cut regions and cut lines carry no part name. A paper style can restyle or fill each part; see the part names. - A
GLASS,OVERHEADorSECTIONALdoor takes noleafStyle(leaf-style-not-for-type). ASLIDINGdoor takes one: its single closed leaf is built in that style, soglazedgives a glazed sliding door.
Use an embedded block for the leaf
SetleafAsset: { assetRef: 'entry-leaf' } on a hosted or free door. The asset must be an embedded block with solid model bodies. Draw it with the hinge at −X, the foot at Y = 0, the leaf centred in X and Z, and the swing side at +Z.
The block fits the clear width and the height above the threshold. Each leaf of a double door fits half the clear width. A changing dimension needs an authored stretch zone. A depth zone fits the panel thickness, while a leaf without a depth zone keeps its own depth within the frame.
The door still supplies its frame, cut, plan symbol and fittings. Name a body glass and set its mat:glass metadata to give it the glazing role and translucent appearance. Clear built-in leaf panels, lites and boards before assigning a custom leaf. Glass, folding, overhead, sectional and multi-panel sliding doors do not support custom leaves.
Set the folding panels
foldingPanels sets how many panels a FOLDING door has across its opening: 2 to 8, 2 if you do not give it. The panels have equal width.
- The plan draws the panels in a zigzag, folded by half of
swingAngleDegrees. The hinges are in turn on the face line and out from it, so an even count ends on the face line. There is no swing arc. - The 3D model, sections and elevations show the panels closed in the wall. An elevation shows the edge of each panel.
leafStylebuilds each panel: aglazed3-panel door has three panes.- A plan view with
openingSymbols: { foldingDoor: 'closed' }draws the panels in line across the opening. A paper style can hide or restyle each part of a door symbol (frame,leaf,swing,travel,fold); see the part names. - A door that is not
FOLDINGtakes nofoldingPanels(folding-panels-not-folding). A count that is not a whole number from 2 to 8 is refused (bad-folding-panels).
Add a garage door
doorType OVERHEAD is an up-and-over garage door. SECTIONAL is a sectional garage door.
- The 3D model, sections and elevations show one closed leaf. A
SECTIONALleaf is made of horizontal sections of about 0.5 metres, and an elevation shows each joint. - The plan shows the closed leaf in the wall, and a dashed rectangle on the face that
doorQuadrantopens to: the floor that the door travels over, as deep as the door is high. There is no swing arc. swingAngleDegreesand the hinge side ofdoorQuadrantdo not change a garage door. A saved value stays.- An elevation with opening marks shows an arrow up the middle of the door.
- The IFC file gives both garage doors the operation
ROLLINGUP.
Rules
offset,widthandheightare in metres.offsetis the distance of the centre of the door from the first saved point of the wall. It does not change when a wall that the door’s wall joins changes.- The full door, with its frame, must fit in the wall. It must not overlap a different opening.
baseHeightlifts the threshold above the base of the wall. The default is 0.- If the door does not fit,
applythrows an error and the building does not change.
Move or remove the door
Move the door to another wall
rehost-hosted-opening takes the door out of its wall and puts it in a different wall of the same storey. offset is the distance along the new wall.
apply throws an error and the building does not change.
Next
Add a window
Put a window in the same wall.
Door API
See each option of a door.