Instead of manually drawing complex joinery or repetitive framing layouts, the API allows you to build parametric scripts. By defining inputs such as span, pitch, and timber dimensions, the script automatically calculates geometric intersections and places elements with millimeter precision. 2. Automated Joinery and Processing
: Uses CPython, allowing you to use standard external modules like math , csv , or tkinter alongside the cadwork library. cadwork api
He closed his eyes, visualizing the trigonometry. "Cosine of two degrees... X-axis pivot..." Instead of manually drawing complex joinery or repetitive
: Active bug tracking and feature requests are managed on platforms like GitHub , where users discuss everything from contact detection issues to new export settings. Practical Impact Automated Joinery and Processing : Uses CPython, allowing
Use Rhino’s geometry kernel to drive complex stand-alone or web applications directly within the cadwork ecosystem.
: For gathering user input via dialogs (e.g., getting a point or a boolean "Yes/No" from the user).
import cadwork import element_controller as ec import geometry_controller as gc def create_automated_timber_beam(): # 1. Define the geometric points in 3D space start_point = gc.point_3d(0.0, 0.0, 0.0) direction_vector = gc.point_3d(1000.0, 0.0, 0.0) # 1 meter length along X-axis up_vector = gc.point_3d(0.0, 0.0, 1.0) # 2. Set dimensions (Width, Height, Length) width = 140.0 # mm height = 240.0 # mm length = 1000.0 # mm # 3. Use the element controller to generate the beam new_beam_id = ec.create_rectangular_beam_vectors(width, height, length, start_point, direction_vector, up_vector) if new_beam_id: # 4. Assign structural attributes ec.set_name([new_beam_id], "Automated_Glulam_Beam") ec.set_material([new_beam_id], "GL24h") print(f"Successfully generated beam with ID: new_beam_id") else: print("Failed to generate geometric element.") if __name__ == "__main__": create_automated_timber_beam() Use code with caution. Advanced Use Cases in Timber Engineering Parametric Truss Generators