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 x 4 closed polyline has area 12 and perimeter 14passed
lines.1.area{"value": 12, "abs_tol": 1e-09}lines.1.perimeter{"value": 14, "abs_tol": 1e-09}r0002fea.*: a 100 x 10 plate pulled with 1 MPa: peak von Mises 1 MPa (sigma = F / A), mesh converged; end displacement sigma L / E = 5e-4 mmpassed
lines.4.maxVonMises{"value": 1.0, "rel_tol": 1e-06}lines.4.convergence.points.0.status= convergedmisseddifferslines.4.maxDisplacement{"value": 0.0005, "rel_tol": 0.01}r0003site.*: a 200 x 100 m plot has an area of 20000 m2passed
lines.1.area{"value": 20000, "abs_tol": 1e-06}r0004site.scene: one 10 x 20 x 5 m building is a solid 10 wide, 5 tall, 20 deeppassed
lines.2.items= 1misseddifferslines.2.bounds_min.1{"value": 0, "abs_tol": 1e-06}lines.2.bounds_max.1{"value": 5, "abs_tol": 1e-06}lines.2.bounds_max.0{"value": 5, "abs_tol": 1e-06}lines.2.bounds_min.2{"value": -10, "abs_tol": 1e-06}
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/* |