DMU Navigator |
Creating an Approbation Stamp |
![]() |
This macro shows you how to use annotated views and marker2Ds, to approve a given state of a product. This approbation is officialized by a stamp in a corner of the viewer. The macro assumes that a CATProduct has been loaded. This approbation stamp "ACME, Approved by John Smith, 1/31/01 2:32:04 PM" can be seen in the bottom-right of the image :
|
![]() |
CAADmuApproval is launched in CATIA [1]. A previously opened document is needed. CAADmuApproval.CATScript is located in the CAAScdDmuUseCases module. Execute macro (Windows only).
|
![]() |
CAADmuApproval includes six steps:
PrologSome constants are initialized : they describes the relative positioning of the different markers. Acquisition of the responsible's nameA variable is defined for the responsible name. The InputBox function asks the user to enter it's name string whose default value will be "John Smith". Creation of the annotated viewThe cAnnotatedViews collection (see
Creation of the textThe oAnnotatedView object enables the creation of markers thru cMarker2Ds
collection (see The string of the approval text,"ACME, Approved by John Smith, 1/31/01 2:32:04 PM", is built using standard script features and the responsible name. Its position is computed to fit with the bottom-right position specification. The text, a oMarker2DText object (see Creation of the frameThe position of the frame is computed to order to fit with the text. The frame, a oMarker2DRectangle object (see Application of the viewThe annotated view is updated, in order to keep all modifications,
using the The |
[Top]
This use case has shown how to use annotated views and markers in order to build an approbation stamp. Specifically, it has illustrated how to :
[Top]
[1] | Replaying a macro |
[2] | DMU Navigator automation objects |
[Top]
DMU Navigator Home DMU Space Analysis Home DMU Kinematics Simulation Home
Copyright © 2001, Dassault Systèmes. All rights reserved.