Schematics Platform Modeler |
Transforming a Schematic Network Object |
![]() |
This macro shows you how to transform a
schematic network object. Given a list of independent objects that are connected to other objects, this macros shows how to transform the members accounting for the connectivity. This macro opens the CAASCH_Network01.CATProduct document.
Through special naming convention (i.e. the word "_network_scale" embedded in the instance name), the macro knows to include the following Schematic component instances in the input list.
|
|||||
![]() |
CAASchNetworkTransf is launched in CATIA
[1]. No open document is needed. Special environment must be available to successfully run this macro:
CAASchNetworkTransf.CATScript is located in the CAAScdSchUseCases module. Execute macro (Windows only). |
|||||
![]() |
CAASchNetworkTransf includes the
following steps:
PrologThe macro first loads CAASCH_Network01.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.
Translating a Schematic component that is connected to other objectsThis macro provides a private FindNetworkComponent subroutine which searches for specific component instances in the model based on a specific naming convention. Those instances which have the word "_network_scale" as parts of their instance names will be included. FindNetworkComponent populates the two global lists objLCntbl_g and objLGRRl_g that are used as input in calling the CreateNetwork method.
A network object member in the output list: objLNetwork implements the SchMovable interface. This interface provides the Translate method to move all the members in the network accounting for the connectivity.
Scaling a Schematic component that is connected to other objectsThe SchMovable interface provides the ScaledSelectedObjects method to scale a component that is part of the network. This method also requires a list of "selected" component as input. "Selected" components are those that are found explicitly by FindNetworkComponentInst (through naming convention in this use case) and not those that are inferred from the network analysis done by the CreateNetwork method.
|
[Top]
This use case shows how to transform a Schematic network object. 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.