Add component
asm_add_componentInsert a part or assembly file into a KOMPAS-3D assembly at its origin, optionally fix it, then position it with mates; failed checks restore the assembly.
Instructions
Insert a part/assembly file into an assembly at its origin. Then position it with asm_mate (the first component is usually fixed=true). Component list and boxes: inspect_model(sections=['components']). Returns a receipt; one Ctrl+Z for the user; on a failed check the assembly is restored (VERIFY_FAILED).
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": {
"doc": "<doc>",
"path": "<path>"
},
"name": "asm_add_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | Yes | Assembly document handle | |
| path | Yes | absolute .m3d/.a3d path inside the allowed roots | |
| fixed | No | fix the component in place |