northArrow or a scaleBar annotation that names a viewport. The SVG, the PDF and the sheet editor then draw it from that viewport. These functions give the same geometry, in paper millimetres, if you draw the symbols yourself.
Import
Example
Notes
- The north arrow points
trueNorthDegof the site (a bearing, clockwise) less the viewport’srotationDeg(counter-clockwise), clockwise from up the page.exportProjectSheetreadstrueNorthDegfrom the project. A sheet editor gets it fromtrueNorthDegin its render dependencies. radiusMmdefaults to 8. A scale bar has 4 cells unless you setdivisions. With nounitMeters, a cell is the smallest 1, 2 or 5 × 10^n m (ft in imperial), 1 unit or more, that is at least 8 mm on paper: 1 m at 1:100, 2 m at 1:200, 5 m at 1:500, 10 m at 1:1250.- The scale bar uses the viewport’s
scale: at 1:50 it is twice as long as at 1:100. - The viewport must be on the same sheet. A project that names another viewport does not open.
- The live
LineDimensionis deprecated, and live datums such asGridandLeveldo not draw on a sheet. For a dimension on a drawing, use a sheetmeasureannotation or a storey dimension annotation.
scaleBarGeometry
A graphic scale bar: alternating filled and open cells, labelled in real model units.northArrowGeometry
A north arrow, with an “N” beyond its tip:needle a filled point with an open tail, arrow a solid head on a heavy shaft, compass a four-point star with N, E, S and W, spire a tall split point that stands on its “N” over a plate, its N inside the radius.
viewTitleGeometry
The title under a viewport: its name over a heavy rule, with the view’s own scale beside it.Types
DrawnSymbol
The package does not export this type by name.center centres each text on its position, right right-aligns it. Absent: left-aligned.ViewTitleStyle
How the title of each viewport of a sheet is drawn. The package does not export this type by name.Where the title sits at the viewport frame, outside it: at a corner, or centred on the middle of
its width. Default
below-left.The height of the title text in paper mm, 1.8 to 20 (the lettering heights of ISO 3098), before
typography.scale. The scale line is 0.7 of it. Default 5.Typography
Always terminate the stack in
Helvetica, Arial, sans-serif: it is one of the PDF standard 14,
which is what the PDF sets in unless the first family is registered (registerDrawingFont).