Browse the docs

betti drawing

Draw a model as an engineering drawing (PDF, DXF).

No licence required No sign-in needed.

Usage

Shell
betti drawing [flags] model out

Draws a model as an engineering drawing on a sheet: the front view, the view from above and a view from the side, each with its visible lines thick and its hidden lines thin and dashed; the overall width, height and depth dimensioned; a shaded view from the front, right and above in the corner the views leave free; a frame, and a title block with the title, drawing number, creator, date, scale, units and the projection symbol.

The views are placed in first angle projection, as ISO prefers (-projection third for third angle). The front looks along +y with z up. The scale is the largest standard one at which the views fit the paper (-scale sets it). Lengths are taken as millimetres.

The model is any surface mesh, a volume mesh (its outside), or, with the cad module, a CAD model, whose lines are where its faces meet. A mesh's lines are where its faces meet at -feature degrees or more, its open edges, and its outlines as seen.

In a script this is drawing(…), its flags as keywords; for coding agents, the tool drawing.

Examples

Shell
betti drawing part.step part.pdf
betti drawing -paper A4 -portrait -projection third part.stl part.svg
betti drawing -scale 1:2 -title Bracket -number B-001 -drawn VK part.step part.dxf

Formats, by the extension of out

.dxffor CAD programs (AutoCAD R12): lines on layers, text as text; the shaded view is left out
.epsEncapsulated PostScript, for LaTeX with dvips
.pdfa page to print or send
.svgfor the web and drawing programs

Flags

FlagTakesDefaultMeaning
-approvedtextnonewho approved it
-checkedtextnonewho checked it
-datetexttoday, as 2006-01-02the date of issue
-dpinumber200the shaded view's resolution, in dots an inch
-drawntextnonewho drew it
-featurenumber30for a mesh, the angle in degrees at which faces meeting make a line
-hiddenswitchtruedraw hidden lines, dashed
-isoswitchtrueadd a shaded view from the front, right and above
-materialtextnonethe material, as "EN AW-6082 T6"
-notelength or numbernonea general note, written above the title block, numbered; repeat for more
-numbertextnonethe drawing number
-ownertextnonethe legal owner, as a company
-papertextA3the paper: A0, A1, A2, A3, A4 (landscape)
-portraitswitchoffturn the paper upright
-projectiontextfirstfirst or third angle projection
-revisiontextnonethe revision, as A or 2
-scaletextautothe scale, as 1:2 or 5:1, or auto: the largest standard scale that fits
-sheettext1/1the sheet, as 1/1
-titletextthe file's namethe title
-tolerancestextnonethe general tolerances, as "ISO 2768-mK"

Output flags

FlagTakesDefaultMeaning
-jsonswitchoffprint the result as JSON
-qswitchoffprint nothing but errors
-skipnamesnoneswitch off steps of the work by their names, separated by commas, as the built-in help lists them
-vswitchoffalso show the stages of each step, and their times

This page is generated from betti help drawing. Lengths are absolute, or a percentage of the part's bounding-box diagonal, as in -size 1%.