creo_add_project_component_mate_align
Add existing project components to a Creo assembly with one to three planar mate or align constraints, validating references and saving the assembly.
Instructions
Add an existing project part to the current expected Creo assembly with one to three named planar constraints. Each constraint is either mate (opposed plane normals) or align (same-direction plane normals), with explicit red/yellow datum sides. The tool rejects duplicate plane use, verifies every reference and constraint by API readback, reports packaged and underconstrained state, optionally requires full constraint, regenerates and saves the assembly, and recycles older versions of only that assembly family. A failure before save deletes the partially added component.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| constraints | Yes | ||
| expected_assembly | Yes | ||
| expected_component | Yes | ||
| component_model_file | Yes | Existing .prt or .prt.<version> file directly inside the current Creo working directory. | |
| require_fully_constrained | No | Fail and remove the new component unless the supplied constraints fully locate it. |