=link= - Cadwork Api
For off-site prefabrication, speed is critical. An API plugin can read architectural floor plans, convert generic walls into detailed timber-frame panels, place studs at designated intervals (e.g., 400mm or 600mm centers), add double top plates, and leave precise rough openings for windows and doors. Fastener and Hardware Placement
: Python (CPython) is the primary scripting language, but a C++ API is also available for high-performance needs.
The cadwork API unlocks significant efficiencies for timber construction and prefabrication by bridging design intent with fabrication execution. Successful integrations balance technical translation (geometry and joinery fidelity) with practical concerns (versioning, licensing, and shop verification). Start small, validate thoroughly, and iterate toward fuller automation and BIM interoperability. cadwork api
The Python script file ( .py ) must share the same name as its containing folder.
If you move a wall panel, its attached studs and sheathing should move with it. When using the API, always modify parent elements first, or use constraints; otherwise, you may break associative geometry. For off-site prefabrication, speed is critical
is cadwork's node-based graphical programming interface that simplifies API calls without requiring manual coding. cadwork 3D Node Library
Three hundred and twelve beams. Elias did the math. At three minutes per beam manually, that was fifteen hours of work. The script had found them in 0.4 seconds. The cadwork API unlocks significant efficiencies for timber
Execute boolean operations, cut elements, add drilling holes, and apply tenon-and-mortise or dovetail joints automatically.
Prompt the user for parameters or read data from an external file (like a CSV or JSON file).
var el = _api.getElement(id); // logic