Schematics Platform Modeler |
Synchronizing component instances with the catalog reference |
![]() |
This macro shows you how to update component instances after
the changes in the corresponding catalog reference. The update of the component instances in the document is done through the corresponding local reference component.As a result of the update, both the local reference and all the component instances are synchronized with the corresponding reference component in the catalog. This macro opens the CAASCH_SyncCompInst.CATProduct document. |
|||||
![]() |
CAASchSyncCompInst is launched in CATIA [1].
No open document is needed. CAASchSyncCompInst.CATScript is located in the CAAScdSchUseCases module. Execute macro (Windows only). |
|||||
![]() |
CAASchSyncCompInst includes the
following steps:
PrologThe macro first loads CAASCH_SyncCompInst.CATProduct.
Next, the macro acquires the schematic root object from the document. The schematic root is the top node of the object instance tree in a schematic document.
Then, the SchUpdateInstances interface is requested on the schematic root. This interface provides a method for updating component instances.
The SchematicRoot interface provides the GetRefComponents method to find a list of all the Schematic eference components in the model. The macro takes the first one in the list and specifically requests for the SchComponent interface.
Update component instancesThe macro calls UpdateAllInstancesFromReference method of SchUpdateInstance interface to update all the component instances for the specified reference component.
|
[Top]
This use case shows how to update component instances after the changes in the corresponding catalog reference. A message logging the status of the critical steps is displayed at the end of the use case.
[Top]
[1] | Replaying a Macro |
[Top] |
Copyright © 2007, Dassault Systèmes. All rights reserved.