Guide for converting rebar detail images into P-CAD parametric code.
Convert reinforced concrete drawings into P-CAD parametric code.
Specification: P-CAD-DSL.md
[!IMPORTANT] Geometric Curves:
- For Sketches (concrete outlines): Use Arc Segments with
:r=<radius>syntax. Use Positive R for outward (convex) curves in CCW loops, Negative R for inward (concave).- For Rebar (barshapes): Use Corner Fillets with
:r=<radius>syntax for bends.- See arc_segments.md for detailed syntax and direction rules.
Hidden Lines: Dashed lines should be interpreted as geometric guides or hidden boundaries.
| Drawing Component | P-CAD Block | Reference |
|---|---|---|
| Concrete Outlines | sketch, region | structural_examples.md |
| Rebar in Section | bars, mesh | structural_examples.md |
| Detail Diagrams | barshape | barshape_examples.md |
| Curved Corners | :r=<radius> syntax | arc_segments.md |
| Lookup Tables | table type=lookup | table_examples.md |
| Quantity Schedules | table type=schedule | table_examples.md |
| Materials & Grades | materials, rebar_set | materials.md |
| Reusable Assemblies | component | advanced_features.md |
Identify what components are present:
barshapesketch + region + bars/meshtable type=lookuptable type=scheduleparams blockderive block[!NOTE] Units: Always use
units mm;for AutoCAD drawings. If the source image uses cm or m, convert all values to mm (multiply by 10 for cm, 1000 for m). This ensures consistent scaling and correct dimension display in AutoCAD.