manage_occurrences
List, find, ground, or delete components in the active Inventor assembly, including sub-assembly paths, axis/location queries, and dependency-safe deletion.
Instructions
Components of the active assembly.
"list": a table with positions; depth=2 also lists what is inside sub-assemblies, with paths. "find": components by what they are and where — definition name pattern, the direction of their Z axis, distance from a point. E.g. definition="ISO 4017M8*", axis=[0,0,1]. "ground": fix a component in space (grounded=False releases it). Ground the first one. "delete": says first what depends on it (patterns, constraints) and stops; force=True deletes, cascade=True also deletes pattern members. Reports components that moved.
Args:
action: "list", "find", "ground" or "delete".
path: Component name, path ("Sub:1/Part:1") or list index.
depth: For "list".
definition: For "find": name pattern on the part / file name.
axis: For "find": direction of the component's Z axis, either way along it.
near: For "find": a point [x, y, z] in mm.
within: For "find": largest distance from near, mm.
grounded: For "ground".
cascade: For "delete".
force: For "delete".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| axis | No | ||
| near | No | ||
| path | No | ||
| depth | No | ||
| force | No | ||
| action | No | list | |
| within | No | ||
| cascade | No | ||
| grounded | No | ||
| instance | No | Which connected Inventor to use (list_instances). Leave empty when only one is connected. | |
| definition | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |