3D CAD

An assembly, in one file.

A .3d.tsx declares the bodies, the features and the mates. The 3D editor opens it with its usual tools and writes each edit back into the code.

UpperBody-001's arm in the 3D app with its hand board in the palm, pulled apart in the exploded view: the green board with its parts sits between the palm and its cover.
Recorded in the workbench: UpperBody-001's arm with its hand board in the palm, in the exploded view.

One assembly, as stored

Seven bodies and five mates, in 22 lines.

The two-lobe pump that the arm builds on assembly. Its joints are the assembly's mates: two shafts turn in their bearings, each rotor is keyed to its shaft, and the cap is bolted on. The world beside it holds the same mates as constraints. Three of its lines:

cloud://global/simulations/so101-pump/pump.3d.tsxthe real file · 22 lines
<cylinder id="pump/drive-rotor" name="pump/drive-rotor" center={[76, -70, 790]} axis={[0, 0, 1]} radius={12.5} height={16} operation="new" />
<joint id="pump/drive-bearing" kind="revolute" a="pump/housing" b="pump/drive-shaft" anchor={[76, -70, 776]} axis={[0, 0, 1]} />
<joint id="pump/drive-rotor-key" kind="fixed" a="pump/drive-shaft" b="pump/drive-rotor" anchor={[76, -70, 782]} />

Case study · the products we make, built by the 3D service

79 documents, 1,796 bodies built from code.

Every product we design is a folder of hardware/, and its CAD is .3d.tsx files: the parts, the printed plates and the assemblies that import them by relative path. The 3D design service (OpenCascade, built from this repository's main) built each file and returned its bodies, their features, volume and mass. One run per product folder.

Each document's mass is in its run, and a product's masses are not summed here: an assembly repeats the bodies of its parts. What the service computes for a manufacturing check and for a drawing sheet is on DFM and drawings.

Runs 20261107t113551z-observe-commandagi-5axis-001, …t113610z-…-cam-001, …t113642z-…-cam-002-battery, …t113650z-…-cam-002-no-battery, …t113659z-…-cam-002, …t113712z-…-cam-003, …t113714z-…-centaur-001, …t113806z-…-deskassistant-001, …t113848z-…-eeg-001, …t113850z-…-printer-001, …t113902z-…-router-001, …t113926z-…-vtol-001 and …t114010z-observe-upperbody-001.

.3d.tsx files in 13 product folders
79
bodies in 9,196 features, built in 1 to 58 s a folder
1,796
documents with failed features: Cam-001's Base board.3d.tsx and CommandAGI-Cam-001.3d.tsx, 67 features each, "linked part geometry not loaded yet". The service did not have the geometry of the parts those documents link when it built them alone. The cause is not found yet.
2
documents with no body: Cam-003 declares its parts as priced items with no geometry yet, and EEG-001's file returned no body.
2
Bodies the 3D service built, by product folder
Die Zahlen
Bodies the 3D service built, by product folder
ProductBodies
Router-001278
Centaur-001273
VTOL-001272
UpperBody-001187
DeskAssistant-001179
Printer-001164
5Axis-001140
Cam-00297
Cam-00194
Cam-002 battery58
Cam-002 no battery54
Cam-0030
EEG-0010
ProvenanceFile cloud://home/user-commandagi/case-studies/3d-cad/Run case-studies/3d-cad/runs/20261107t113551z-observe-commandagi-5axis-001 … 20261107t114010z-observe-upperbody-001Tool commandagi threed observe, the 3D design service built from mainRan on This computer (dell-gb10-1)When

Write the part. Or drag it.

Edit the code, or use the editor's sketch, extrude and fillet tools: both change the same file.