catia_rename_feature
Rename a feature or sketch in CATIA V5's active Part Body by setting its Name property, so agents can label new geometry without manual GUI edits.
Instructions
Rename a feature or sketch in the active Part Body. Sets the .Name COM property directly (CATIA V5 exposes Feature.Name and Sketch.Name as read/write) — no macro/VBA bridge required. Use this right after creating a feature (catia_pad, catia_pocket, ...) instead of asking the user to rename it by hand in the GUI.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Where to look for old_name: 'feature' (Body.Shapes), 'sketch' (Body.Sketches), or 'auto' (try both). | auto |
| new_name | Yes | New explicit name, e.g. 'Pad_bague_ext_30mm'. | |
| old_name | No | Current name to look up (e.g. 'Pad.1'). If omitted, renames the most recently created feature/sketch. |