manage_occurrences
List, find, ground, delete, or replace assembly components, and convert points between component and assembly coordinates in Autodesk Inventor.
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. "replace": put with_file in the component's place — a rebuilt part saved under a new name, a new revision. Constraints stay where Inventor can match the geometry; reports the ones it lost and what moved. "to_top" / "to_local": a point in the component's own coordinates → assembly coordinates, and back — for a sub-assembly that was moved, or a part placed turned.
Args:
action: "list", "find", "ground", "delete", "replace", "to_top" or "to_local".
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".
with_file: For "replace": full path of the .ipt / .iam that takes its place.
all_same: For "replace": every occurrence of the same file at that level (default),
or only this one.
archive_old: For "replace": then move the old file into an "_old" folder beside it —
only if no open document still uses it; never a library file.
point: For "to_top" / "to_local": [x, y, z] in mm.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "manage_occurrences"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| axis | No | ||
| near | No | ||
| path | No | ||
| depth | No | ||
| force | No | ||
| point | No | ||
| action | No | list | |
| within | No | ||
| cascade | No | ||
| all_same | No | ||
| grounded | No | ||
| instance | No | Which connected Inventor to use (list_instances). Leave empty when only one is connected. | |
| with_file | No | ||
| definition | No | ||
| archive_old | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |