Automatic Interchange
Functions Introduced:
In , it is possible to interchange an assembly component with another model that contains equivalent assembly constraints. The
Creo TOOLKIT function that performs this action is
ProAssemblyAutointerchange(). Depending on the type of component interchange, the assembly constraints may need to be respecified for the replacement model.
Instances in a family table share the same assembly constraints. Consequently, you can automatically replace an assembly component with another instance in the component's family table without respecifying any assembly constraints. Simply retrieve the handle for the replacement instance and pass this handle to
ProAssemblyAutointerchange().
If the assembly component and replacement model are not instances in the same family table, you can define the necessary relationships between them interactively and save them in an Interchange Assembly. (See the
Assembly Modeling User’s Guide for details.) To perform an interchange using models in an interchange assembly, first retrieve the interchange assembly (using the function
ProMdlnameRetrieve()), and then pass the handle of the replacement model to function
ProAssemblyAutointerchange(). Note that the interchange assembly must be in memory before the call to
ProAssemblyAutointerchange().
An interchange assembly is not the same as an interchange domain. Interchange domains (
.int files) contain interchange information, but they can no longer be created using . However, it is possible to use
ProAssemblyAutointerchange() to interchange models using an existing interchange domain.