Files and automation
Scripting
Scripts drive the model through the same API the editor uses. They run sandboxed, and each call lands in the timeline like a feature you made by hand.
await cad.parameters.define('height', '12');
const sketch = await cad.sketches.create({plane: 'XY'});
await sketch.rectangle({from: [0, 0], to: [40, 25]});
const [profile] = sketch.profiles();
const box = await cad.features.extrude({profile, distance: 'height'});
console.log(box.name, box.body().faces().count()); // Extrude 1 6Queries narrow step by step and end in all(), unique() or count(), for example box.faces().inDirection('Z').unique() for the top face.
Scripting is free while Takumion is in beta.
Something not working as described? See Known issues in the editor.