asm_assemble
Place a component in an assembly by defining Creo placement constraints such as mate, align, and insert for accurate positioning and assembly construction.
Instructions
Place a component in an assembly with Creo placement constraints (the normal way to build an assembly).
Each constraint: {"type": ..., "asm_ref": , "asm_path": [component feat ids] (when the reference is on a component already in the assembly; omit for the assembly's own datums), "comp_ref": , "offset": number (distance for *_off, degrees for *_ang_off), "ref_type": "surface|axis|edge|csys|point"}. Types: mate (faces opposed, coincident), mate_off, align (faces/axes same direction, coincident; for two axes: coaxial), align_off, insert (cylinder into cylinder), orient, csys, tangent, pnt_on_srf, edge_on_srf, pnt_on_line, align_ang_off, mate_ang_off, default (component csys on assembly csys), fix. References as in geometry_list: datum names ("A_1", "TOP", "ASM_FRONT"), geometry ids, or {"feature": name, "type": "surface", "index": n}. The first component is usually placed with [{"type": "default"}]. Returns the component feature id (use it in later asm_path lists), its status and final transform. initial = {"origin": [x, y, z], "x_axis": [...], "y_axis": [...]} (component axes in assembly coordinates) is where the solver starts: give a rough orientation when the component must turn far from the assembly's axes (two parallel inserts at 90 deg fail from the identity). If Creo cannot solve the constraints it leaves the component where it started; the tool reports that as an error and removes the component.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"assembly": "<assembly>",
"component": "<component>",
"constraints": "<constraints>"
},
"name": "asm_assemble"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| initial | No | ||
| assembly | Yes | ||
| component | Yes | ||
| constraints | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||