draft
The drafting engine (from DraftCore, with ForgeCraft's and MasonCraft's commands): 2D drawings, dimensions, tables, blocks, DXF/DWG/PDF/SVG/PNG; FEA studies on a drawn profile (fea.*), STEP views (cad.view); site layouts, placement, rules checks, material flow and space programmes (site.*, place.*, rules.*, flow.*, program.*). args are the drafting tool's arguments: ["commands"] lists all 516 commands; ["run", "--metric", "--cmd", "<id> {json}", ..., "--save", "out/a.dxf"] runs them.
Read staged files from inputs/, write under out/.
- Field
- Mechanics, CAD and finite elements
- Version
- 0.1.0
- Runs as
- Compiled (Rust)
- Typical run
- 1 s
Compiled from source: run sh packs/install.sh once before admitting it.
Known answers it must pass
r0001a 3 × 4 closed polyline has area 12 and perimeter 14passed
lines.1.area= 12, within 1.000000 × 10⁻⁹reading not recorded on this pagelines.1.perimeter= 14, within 1.000000 × 10⁻⁹reading not recorded on this pager0002fea.*: a 100 × 10 plate pulled with 1 MPa: peak von Mises 1 MPa (σ = F / A), mesh converged; end displacement σ L / E = 5 × 10⁻⁴ mmpassed
lines.4.maxVonMises= 1, within 1.000000 × 10⁻⁶ relativereading not recorded on this pagelines.4.convergence.points.0.status= convergedmisseddifferslines.4.maxDisplacement= 5.000000 × 10⁻⁴, within 1 %reading not recorded on this pager0003site.*: a 200 × 100 m plot has an area of 20000 m₂passed
lines.1.area= 20000, within 1.000000 × 10⁻⁶reading not recorded on this pager0004site.scene: one 10 × 20 × 5 m building is a solid 10 wide, 5 tall, 20 deeppassed
lines.2.items= 1misseddifferslines.2.bounds_min.1= 0, within 1.000000 × 10⁻⁶reading not recorded on this pagelines.2.bounds_max.1= 5, within 1.000000 × 10⁻⁶reading not recorded on this pagelines.2.bounds_max.0= 5, within 1.000000 × 10⁻⁶reading not recorded on this pagelines.2.bounds_min.2= -10, within 1.000000 × 10⁻⁶reading not recorded on this page
Each line is one reading the kernel checked. The bright band is the tolerance; the needle is the value the instrument actually returned when it was admitted. A needle near the centre line used little of its tolerance.
Inputs
| Name | Unit | Default | Meaning |
|---|---|---|---|
args | The drafting tool's arguments: info <file> | convert <in> <out> | run [files] [--metric] [--cmd "<id> {json}"]... [--script "..."] [--save out/x.dxf] [--export out/x.png] | commands [--filter] | ||
files | Files to stage under inputs/, e.g. ["@r0003/site.dxf"]. |
Readings
| Name | Unit | Meaning |
|---|---|---|
exit | ||
lines | ||
stdout.txt | ||
out/* |