catia_pocket
Cut a pocket into a CATIA V5 part from the last sketch, with automatic direction flip and depth, up-to-next, or through limits.
Instructions
Create a Pocket (cut extrusion) from the last sketch. With direction='auto' (default) the tool checks that material was really removed and flips the direction if not (CATIA's default side is unreliable — proven live). Limits: fixed depth, 'up_to_next' (Jusqu'à la suivante) or 'up_to_last' (through).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Explicit name for the created feature in the specification tree (e.g. 'Pad_Bras_20mm', 'Trou_Conique_D12'). Strongly recommended: default names like 'Extrusion.3' make the tree unreadable and are flagged by tree audits. | |
| depth | No | Cut depth in mm (limit='dimension'). | |
| limit | No | dimension | |
| direction | No | auto = CATIA default side (against the sketch normal), flipped automatically if it removed nothing; normal = CATIA default side; reverse = the other side. | auto |
| sketch_name | No | Name of sketch to use. If not specified, uses the last sketch. |