Arrangement |
Creating an ArrangementArea Object with a Rectangular Contour |
![]() |
This macro shows you how to create an ArrangementArea object with a rectangular contour in a product document. This macro opens a new product document and retrieves the ArrangementItemAreas collection from the root Product via the ArrangementProduct object. It then adds an ArrangementArea object. The Arrangement object so created does not have a contour. To add a contour, the ArrangementRectangles collection oject is then retrieved from the newly created ArrangementArea and a new ArrangementRectangle object is created and then added to the ArrangementArea as a rectangular contour.
|
||||||
![]() |
CAAArrCreateContourArea is launched in CATIA [1]. No open document is needed. CAAArrCreateContourArea.CATScript is located in the CAAScdArrUseCases module. Execute macro (Windows only).
|
||||||
![]() |
CAAArrCreateItemReservation includes the following steps:
Prolog
Once the new product document has been created, fetch the ArrangementProduct and the associated movable object from the root product of the new product document. Obtaining the ArrangementProduct Object and the Associated Movable Object from the Root Product
The ArrangementAreas object is a collection object that manages ArrangementArea object's under a given ArrangementProduct. The movable object serves as the relative axis for the new ArrangementArea object to be created. Creating the ArrangementArea Object under the ArrangementAreas Collection Object
The newly created ArrangementArea object is displayed without a contour at this point. Creating the ArrangementRectangle Object
Note that the ArrangementRectangle object is created using the ArrangementArea as the movable object. Adding a Rectangular Contour to the ArrangementArea Object
The ArrangementArea object is now displayed with its boundary as shown in the image above. Epilog
|
[Top]
This use case has shown how to create an ArrangementArea object with a rectangular contour within a product document.
[Top]
[1] | Replaying a Macro |
[2] | ArrangementItemAreas, Product, ArrangementProduct, ArrangementArea, ArrangementRectangles, ArrangementRectangle |
[Top] |
Copyright © 2000, Dassault Systèmes. All rights reserved.