catia_prepare_geometry
Resolve all assembly geometry designations in one pass before constraints, caching each part's points so later constraints are instant and wrong points are reported early.
Instructions
Resolve ALL the geometry designations an assembly will need in ONE pass, before adding constraints. Designating a face/axis/edge inside a part re-opens that part in CATIA (a window opens, is searched and closes again, the screen reloads), which is the slowest thing an assembly does; done per constraint it costs ~1 s each and flickers the screen. Here every part is opened ONCE and all its points are searched together; the results are cached, so the constraints that follow are instant. Give one item per (component, element) you will use in constraints. Already-cached items are skipped. A wrong point is reported here, with the distance of the closest element, before any constraint exists. Safe to call repeatedly (idempotent).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | [{'component': 'Bolt.1', 'element': {'face_point': [x,y,z]}}, ...] |