Schematics Platform Modeler |
Creating a Schematic Document from an Existing Document |
![]() |
This macro shows you how to create a
new schematic document from an opened document. This macro opens the document CAASchSCH_Detail01.CATProduct. From the root object of this document, the macro obtains a handle on the current CNEXT session. The macro creates a new schematic document and add it to this session. |
|||||
![]() |
CAASchCreateSchDocument is launched in
CATIA [1]. No open document is needed. CAASchCreateSchDocument.CATScript is located in the CAAScdSchUseCases module. Execute macro (Windows only). |
|||||
![]() |
CAASchCreateSchDocument includes the
following steps:
PrologThe macro first loads CAASCH_Detail01.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.
Get a the current CNEXT sessionUsing the GeSchematicSession method, a handle on the SchSession interface can be obtained. This interface provides a method to create a new schematic document.
Create a new schematic document
Set the drawing standard of the drafting viewer in the schematic documentA schematic document has a drafting viewer embedded in it. The drawing standard of that drafting viewer can be set by calling the SetDrawingStandard method. This macro also illustrates how to use the GetDrawingStandard method to retrieve the drawing standard of a schematic document.
|
[Top]
This use case shows how to create a schematic document from the root of an existing document. 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.