Api ((new)) — Cadwork
import cwapi34 as cadwork point = cadwork.point_3d(0, 0, 0) my_beam = cadwork.create_beam(point, cadwork.vector_3d(5, 0, 0)) cadwork.set_name(my_beam, "My First API Beam")
Whether you are using the or exploring the integration of Rhino.Inside Cadwork , the API serves as the ultimate bridge between standard CAD and advanced, automated production. Why it matters:
Every timber fabrication shop has unique manufacturing constraints. With the API, companies can create custom "wizards" for recurring building typologies like roof trusses, modular wall panels, or stairs. Users input simple variables (e.g., span, pitch, load requirements), and the API builds the production-ready 3D model automatically. Getting Started: A Practical Python API Example
To get started with the CADwork API, simply: cadwork api
A single misplaced bolt hole can ruin an expensive glulam beam on the job site.
: You can automate "piece-by-piece" exports or complex shop drawings that typically require manual clicks.
Use Rhino’s geometry kernel to drive complex stand-alone or web applications directly within the cadwork ecosystem. import cwapi34 as cadwork point = cadwork
Manually placing thousands of dowels, bolts, or steel plates in massive timber structures is error-prone. A Python script can identify steel-to-timber connection zones, calculate the required fastener array based on predefined load parameters, and model the hardware and bolt holes instantly. Getting Started: A Conceptual Workflow
Keep core calculations, parsing, and database connections in pure Python modules. Keep your cadwork-specific API calls restricted to a dedicated "wrapper" layer to make upgrading to newer cadwork versions significantly easier.
Standalone Python (like IDLE or VS Code) does not natively understand cadwork commands. Trying to run import cadwork will likely result in a "Module not found" error. To fix this, you must install the cwapi3d package. Users input simple variables (e
: For creating and manipulating parts (e.g., creating drillings or vectors).
Implementing the in your design process brings significant benefits: