Generative Drafting |
Creating a Front View in a new Drawing Document |
![]() |
This macro shows you how to create views in Drawing documents. It retrieves a part document, creates a DrawingDocument and a front view of the part document.
|
||||
![]() |
CAADriCreateView is launched in CATIA [1]. No open document is needed. CAADriCreateView.CATScript is located in the CAAScdDriUseCases module. Execute macro (Windows only).
|
||||
![]() |
CAADriCreateView includes four steps:
Prolog
Open the part document to draw and create a new DrawingDocument.
The part document is fetched in the documentation installation path, this
path has already been stored in the Creating a New View in the Active Sheet
The new DrawingView is created in the active DrawingSheet that is found on the DrawingSheets collection aggregated by the DrawingDocument object. Set its Parameters to Make it a Generative Front View
The generative behavior is provided by the DrawingViewGenerativeBehavior
object aggregated by the DrawingView. We need to define the
document to draw by valuating the Epilog
Update the now completely defined generative behavior. |
[Top]
This use case has shown how to create generative views in a drawing document.
[Top]
[1] | Replaying a Macro |
[2] | DrawingDocument, DrawingView, DrawingSheet, DrawingSheets, DrawingViewGenerativeBehavior |
[Top] |
Copyright © 2001, Dassault Systèmes. All rights reserved.