Schematics Platform Modeler |
Managing Internal Flow in a Schematic Reference Component |
![]() |
This macro shows you how to manage
internal flow objects aggregated under a Schematic reference component.
This includes the following.
In order for the instance of a Schematic reference component to be capable of being inserted into a route, the reference component must have at least one compatible internal flow object. An internal flow object references two connectors of the reference component. Through their connector positions, the orientation of the instance in the route is defined. This macro opens the CAASCH_Detail02.CATProduct document. The following screen shot shows an internal flow of a Schematic reference component. Notice the two connectors (in this case - Connector.1 and Connector.2) that must be defined.
|
|||||||||
![]() |
CAASchInternalFlow is launched in CATIA [1].
No open document is needed. Special environment must be available to successfully run this macro:
CAASchInternalFlow.CATScript is located in the CAAScdSchUseCases module. Execute macro (Windows only). |
|||||||||
![]() |
CAASchInternalFlow includes the
following steps:
PrologThe macro first loads CAASCH_Detail02.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.
The SchematicRoot interface provides the GetRefComponents method to find a list of all the Schematic reference component in the model. The macro takes the first one in the list and specifically requests for the SchComponent interface on the first member.
Add an internal flow object to the Schematic reference componentThe macro calls the GetInterface method to get a handle on the reference component for the SchCompFlow interface.
Next, the macro get a list of all connectors of the Schematic Component.
Method CreateListOfObject is called to create a list of connectors containing the first and the second connectors. This list is used as input to the AddInternalFlow method to add an internal flow object to the reference component..
Similarly, the macro creates a second list of connectors containing the first and the third connectors. This list is used as input to the AddInternalFlow method to add the second internal flow object to the reference component.
Query for a list of existing internal flow objects of a Schematic reference component
Remove an internal flow objects from the Schematic reference component
|
[Top]
This use case shows how to manage internal flow objects of a Schematic reference component. 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 © 2001, Dassault Systèmes. All rights reserved.