Reference
Every module the library provides, by file.
| Page | Modules | Source |
|---|---|---|
| Lines and dimensions | line, arrow, dimensions, leader_line, circle_center, dd_text_units | src/dd_dimlines.scad |
| Sheets | draw_sheet, draw_frame, draw_grid | src/dd_sheet.scad |
| Title blocks | titleblock, titleblock0, titleblock1, revblock0 | src/dd_titleblock.scad, templates/ |
| Constants | The DIM_* constants | dimdraft.scad |
include <DraftSCAD/dimdraft.scad> provides everything except the three templates, which come from include <DraftSCAD/ddtemplates.scad>.
Conventions that hold throughout:
- Everything is drawn on the XY plane at Z = 0, extruded upward by
DIM_LINE_HEIGHT. Translate it to where you want it. - Lengths are in the units of your model. The library has no unit of its own.
line_widthandline_heightparameters default toDIM_LINE_WIDTHandDIM_LINE_HEIGHT.colorandtext_colorparameters default toDEF_LINE_COLORandDEF_TEXT_COLOR.