Skip to main content
Graphics are how a drawing looks: every pen, line style, dash, hatch and category style the plans and sections are drawn with. None of it lives in the model — a .loft file says what a thing is; the standard says how it draws. Graphics are defined by a set of JSON files:
  • loft-standard.colors.json
  • loft-standard.pens.json
  • loft-standard.line-patterns.json
  • loft-standard.fill-patterns.json
  • loft-standard.styles.json
  • loft-standard.category-styles.json
A scale that differs from the base has a small file of its own, holding only the pen widths that change there.
  • loft-standard.scale-1.json
  • loft-standard.scale-1-2.json
  • loft-standard.scale-1-4.json
  • loft-standard.scale-1-16.json
  • loft-standard.scale-1-32.json

Pens

Pens have a base width in millimeters, see the table below with bold as the departure from the base for each scale. Define a scale between follow the next scale up: 3/4” → 1”, 3/8” → 1/2”, 3/16” → 1/4”, 3/32” → 1/8”. How it’s written in the JSON:

Line styles

What a category style’s slot names: a pen, a dash pattern or none, and a color. The pen gives the width at the view’s scale. Every dash pattern is drawn in Line Patterns.

Fill styles

What a category style’s fill slot names: what the region is filled with, and the line style a hatch draws with. Every hatch is drawn in Fill Patterns.

Category styles

A line slot is named for where a thing sits against the view’s cut plane — a level plane through the plan, looking down:
  • Cut — the plane passes through it.
  • Projection — below the plane, in view.
  • Above — above the plane, out of view; drawn so you know it is there.
  • Behind — below the plane, with something nearer in the way.
A fill slot takes the same words: a cut fill fills what the plane passes through; a projection fill, a surface seen below it. Section and plan: a wall the cut plane passes through draws a cut line and cut fill; a counter below the plane draws a projection line; an upper cabinet above the plane draws an above line; a floor box under the counter draws a behind line Section and plan: a wall the cut plane passes through draws a cut line and cut fill; a counter below the plane draws a projection line; an upper cabinet above the plane draws an above line; a floor box under the counter draws a behind line A few examples. Every category’s page lists all of its styles — see the category catalog. Each cell is the line or fill style the slot names — its pen and pattern are in Line styles, the pen’s width at each scale in Pens. A slot may also write its style in place; the cell then shows its pen, pattern and color. A role’s empty slot reads its category’s; a category’s empty slot draws nothing. Provisional rows are annotation the compiler draws until annotation components exist.

Lines

Fills

The file format

Beyond colors and plain numbers, the files hold six kinds of value a drawing needs:
  1. Paper lengths in mm, in or pt — pens in millimeters, dashes and hatches in points.
  2. Hatch — line families, each one line of a .pat pattern, field for field: angle, origin, offset and the signed dash list. An optional square tile is added for painters that repeat one; when a file gives none, the loader finds the smallest that repeats seamlessly.
  3. Dash — mark, gap, mark, gap.
  4. Line style — a color, a pen, an optional dash.
  5. Fill style — a solid, a hatch, a hatch picked by the layer’s material, or none; and the line style its hatch draws with.
  6. Scale — paper inches per model foot.