Cadwork Api - !!exclusive!!
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.
// Create the beam // Returns the ID of the newly created element int newBeamId = _api.createBeam(startPoint, endPoint, "MyBeamName"); cadwork api
Since the introduction of Python-based scripting in version 27, the Cadwork API has revolutionized how structural engineers, designers, and manufacturers interact with their 3D models. What is the Cadwork API? Keep core calculations, parsing, and database connections in
import cadwork import element_controller as ec import point_controller as pc What is the Cadwork API
+--------------------------------------------------------+ | Cadwork UI | +--------------------------------------------------------+ || \/ +--------------------------------------------------------+ | Cadwork API | | - Geometry Engine - Element Management | | - Attribute Access - Export/BIM Interfaces | +--------------------------------------------------------+ || \/ +--------------------------------------------------------+ | Python Scripting / Plugins | | (Standard Libraries, NumPy, Custom Engineering Logic) | +--------------------------------------------------------+ Key API Modules
: As of early 2026, an MCP (Model Context Protocol) server was launched to help developers use AI assistants to generate grounded scripts and explore API modules more effectively.
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.