catia_activate_body
Sets a specified body as the active in-work object, so subsequent feature creation (sketch, pad, pocket) adds geometry to that body rather than MainBody. Call after creating a new body to work in it.
Instructions
Set a Body as the active 'in work object' (Part.InWorkObject) — the 'Define In Work Object' right-click action from the CATIA GUI. After calling this, catia_create_sketch/catia_pad/catia_pocket/etc. create their features inside this body instead of MainBody. Call this right after catia_new_body to start working in it.
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": {
"body_name": "<body_name>"
},
"name": "catia_activate_body"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body_name | Yes | Name of the body to activate, e.g. 'Body.2' or 'Rough'. |