add_part
Insert a body, part file, or subassembly into a FreeCAD assembly as an App::Link, then position it with coordinates or mate interfaces to align published frames.
Instructions
Add a part to an assembly via App::Link.
source is one of: {"handle": ""} — link an in-doc body {"path": "/path/to/part.FCStd"} — link first body / subassembly {"path": "/path/to/part.FCStd", "object": "X"} — link named object placement: [x, y, z] or {position: [...], axis: [...], angle_deg: ...}. mate: place by aligning this part's published interface frame to an already-placed parent's, instead of (or after) a raw placement: {"child_iface": "", "parent": "<link-name|handle>", "parent_iface": ""}. Frames come from publish_interface.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mate | No | ||
| name | No | Part | |
| source | Yes | ||
| assembly | Yes | ||
| placement | No |