asm_add_component
Adds a part or sub-assembly to a Creo assembly and positions it with either a transform or constraints for precise placement.
Instructions
Add a part/sub-assembly to an assembly.
Without constraints the component is packaged (placed but not fully constrained) at transform.
transform example: {"origin": {"x": 0, "y": 0, "z": 100}, "z_rot": 90} (rotations in degrees).
constraints example (csys is the reliable type):
[{"type": "csys", "asmref": "ACS0", "compref": "PRT_CSYS_DEF"}]
Other types: align, mate, insert, orient, ... see creoson_describe("file", "assemble").
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": {
"component": "<component>"
},
"name": "asm_add_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dirname | No | ||
| assembly | No | ||
| component | Yes | ||
| transform | No | ||
| constraints | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||