Dimension walls
dimension_wallsAutomatically dimension walls and their window/door jambs on the floor plan, creating associative dimensions that update with later edits. Choose Chain, EachWall, or Thickness mode for walls.
Instructions
Automatically dimensions walls on the Floor Plan (one undo step): wall end points plus window/door jambs (or centers), linked to the walls/openings so the dimensions follow later edits. mode 'Chain' (default) = ONE chain through all given walls, measured along 'direction' (default: first wall's begin→end) — e.g. pass all walls of a facade, including the perpendicular ones whose ends should appear; mode 'EachWall' = one dimension parallel to each wall; mode 'Thickness' = one dimension ACROSS each straight wall, linked to both wall faces (shows the wall width, follows thickness changes), crossing the wall at 'thicknessPosition'. For Chain/EachWall the line is placed 'distance' m beyond the outermost wall face on 'side' ('Auto' = away from the first wall's body); 'overall' adds a second line with the total length. Get wall GUIDs first (e.g. list_elements with types ['Wall'], find_elements or get_selection). Returns {results: [{guid, role: 'chain'|'overall'|'thickness', walls, pointCount, associativePoints, segments, total, linePoint, warnings?} | {error, wall?}]}; in EachWall/Thickness mode one failing wall does not stop the others.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | 'Chain' (default): one chain for all walls; 'EachWall': one dimension per wall; 'Thickness': one width dimension across each wall | |
| side | No | Side of the dimension line relative to the first wall's begin→end (or 'direction'): 'Auto' (default) = the side without the wall body | |
| layer | No | Layer name or index (defaults to the tool's default layer) | |
| walls | Yes | Wall GUIDs | |
| layout | No | Text layout algorithm for crowded chains ('Flexible' moves colliding texts) | |
| linePen | No | Pen of the dimension and witness lines | |
| overall | No | Also create an overall dimension (first to last point) further out | |
| textPen | No | Pen (color) of the dimension text, 1-255 | |
| distance | No | Distance (m) from the outermost wall face to the dimension line (default 1) | |
| textBold | No | ||
| textFont | No | Font by name (e.g. 'Arial') or font attribute index | |
| textSize | No | Text height in PAPER millimeters (e.g. 2.5), independent of the drawing scale | |
| undoName | No | Name of the undo step | |
| direction | No | Chain direction (default: the first wall's begin→end direction). Not with mode 'Thickness' | |
| markerPen | No | Pen of the markers | |
| textFrame | No | Draw a frame around the text | |
| appearance | No | Chain type: 'Normal' (segment lengths, default), 'Cumulative' (running distances from the first point), 'CumulativeSV' (Archicad's other cumulative variant), 'Elevation' (elevation-type values) | |
| markerSize | No | Marker size in PAPER millimeters (e.g. 2) | |
| markerType | No | Dimension line end marker: ticks ('SlashLine45', 'SlashLine60', 'SlashLine75', 'CrossLine'), arrows ('OpenArrow30', 'FullArrow30', ...), dots ('FullCircle', 'EmptyCircle', 'PepitaCircle', 'CrossCircle'), 'BandArrow' | |
| storyIndex | No | Story of the dimensions (default: the wall's story — in 'Chain' mode the first wall's) | |
| textItalic | No | ||
| textOpaque | No | Opaque (filled) text background | |
| witnessVal | No | Witness line value: the gap between the dimensioned point and the witness line (form 'Large') or the witness line length (form 'Fixed'), in the unit Archicad stores — read witnessVal of an existing dimension (get_element_details) or of the tool defaults first | |
| associative | No | Link points to walls/openings/wall faces (default true); false = static points | |
| witnessForm | No | Default witness line form of every point | |
| textPosition | No | Where the value text sits relative to the dimension line: 'Above' (default of most standards), 'In' (breaks the line), 'Below' | |
| clipOtherSide | No | Do not draw the witness line part beyond the dimensioned point | |
| openingPoints | No | 'Jambs' (default: both sides of each opening) or 'Centers' | |
| textDirection | No | Text orientation: 'Parallel' to the dimension line (default), always 'Horizontal', or 'Vertical' | |
| textUnderline | No | ||
| horizontalText | No | Keep the texts horizontal | |
| overallSpacing | No | Distance (m) between the chain and the overall line (default 0.8) | |
| includeOpenings | No | Dimension windows/doors of walls parallel to the chain (default true) | |
| onlyDimensionText | No | Show only the texts (no lines/markers) | |
| thicknessPosition | No | Mode 'Thickness': where the dimension crosses the wall, in m from the wall's begin point along its reference line (default: the middle). Values < 0 or > the wall length put the dimension beyond the wall ends |