Model - views[]
Every method of the views[] lane. Each step of a views[] entry returns a view, and the lane's entries are addressed by the identity schema/lanes.ts declares for it.
| Method | Description | Arg | Type | Default | Meaning |
|---|---|---|---|---|---|
view3d | 3D view — 3D camera head (family 3d) — restores the 3D viewport via settings.activeView, AND places on paper as an AXONOMETRIC (the drawing projects in parallel down the camera direction; fov is ignored there). An inline perspective pose (position/target/up/fov), OR a cameras[] key (XOR — not both), which is also the only way to name an ORTHOGRAPHIC 3D view. | position | point | [1000, 1000, 1000] | Eye position [x,y,z] mm. |
target | point | [0, 0, 0] | Look-at point [x,y,z] mm. Must differ from Position — equal points name no view direction. | ||
up | vector | Roll reference [x,y,z]. Default [0,0,1] (level with the world). | |||
fov | number | 45 | VERTICAL field of view in DEGREES. An inline pose is always perspective — name a cameras[] entry with a height for an orthographic one. | ||
camera | string | cameras[] entry name (quoted) — XOR with the inline pose args above. | |||
viewDetail | Detail — Detail-view head (family detail) — frames a FLAT components[] entry's own 2D content 1:1: no camera, no projection. The one path a detail/chart/diagram takes to paper; a 3D component fails soft with a named error. | source | string | '' | components[] key (quoted). Must be flat — the component declares flat: true, or it is flat by inference. |
viewElevation | Elevation — Elevation-view head (family elevation). direction = 'front'|'back'|'left'|'right'; window optional. | direction | string | 'front' | Principal elevation direction. |
window | length[] | [left, bottom, right, top] mm. Omit = auto-fit. | |||
viewFilter | Filter — Stackable filter step — rules array of {key, equals?, notEquals?, override?}. Multiple steps AND together; node enabled toggles the layer. | rules | object | [] | Array of ViewFilterRule objects (key + equals/notEquals/override). |
viewPlan | Plan — Plan-view head (family plan). cut = world Z height (absent = roof plan, no cut); depth = visible range below cut; window = [left,bottom,right,top] mm crop. | cut | length | World Z of the cut plane (mm). Omit for a roof plan (no section cut). | |
depth | length | Visible range below the cut (mm). Only meaningful with cut. | |||
window | length[] | [left, bottom, right, top] mm in the view plane. Omit = auto-fit. | |||
viewSection | Section — Section-view head (family section). plane (sectionPlane node key, quoted) XOR position+direction; depth; window. | plane | string | sectionPlane node key (quoted). Supplies cut position + direction. Mutually exclusive with position/direction. | |
position | point | Cut point [x,y,z] mm when plane is omitted. | |||
direction | vector | View forward [x,y,z] when plane is omitted. | |||
depth | length | Visible range beyond the cut (mm). | |||
window | length[] | [left, bottom, right, top] mm. Omit = auto-fit. | |||
viewStyle | Style — Style step — name of a styles[] entry (quoted or expression). Multiple steps: last wins (validate warns). | name | string | '' | styles[] name (quote literals). |