Generative Shape Design |
Creating a Join Surface |
![]() |
This macro shows how to create geometry from existing geometry in a CATPart document. The macro opens a CATIA Part Document and creates a Join surface using pre-existing geometry (Fill and Extrude). |
||||||
![]() |
CAAGsiCreateJoinSurface is launched in CATIA [1]. No open document is needed. CAAGsiCreateJoinSurface.CATScript is located in the CAAScdGsiUseCases module. Execute macro (Windows only).
|
||||||
![]() |
CAAGsiCreateJoinSurface includes five steps:
Opening the Part Document
Opens the starting CATIA Part document that is used for creating new wireframe and surface objects (In this test case a join). Retrieving the Current Open Body
Retrieves the OpenBody containing initial objects. It will be re-used for creating the Join Creating References for Objects Used as Input for the Join
The Fill and the Extrude surfaces used as input for the Join, are converted into reference. This operation is required in order to use the objects as input for the Join, all objects used as input in IDL method interfaces are to be converted as references and passed in creation methods . Creating the Join
The Method AddNewJoin is a method of the HybridShapeFactory IDL Interface Once created, the join has to be inserted in an OpenBody.
In the test case, the OpenBody containing the input geometry is
re-used. . Setting the Created Join as the Current Working Object
Updating the Part Document
The Part has to be updated to generate the geometrical
representation of the created objects. |
[Top]
This use case has shown how to create geometry in a Macro starting from existing geometry in a CATPart.
[Top]
[1] | Replaying a Macro |
[2] | Hybrid Shapes Automation Objects |
[Top]
Copyright © 2000, Dassault Systèmes. All rights reserved.