Product Structure |
Adding an External Component |
![]() |
This macro shows you how to create a simple product structure that imports an existing Part from an external Part document. It assumes that the CATDocView has been initialized so that it references the path leading to the part document, CAAPstHull.CATPart. Here is an image of the resulting product structure:
|
|||
![]() |
CAAPstAddExternalComponent is launched in CATIA [1]. No previously opened document is needed. CAAPstAddExternalComponent.CATScript is located in the CAAScdPstUseCases module. Execute macro (Windows only). |
|||
![]() |
CAAPstAddExternalComponent includes three steps: Prolog
A new Product document is created using the Open the Part Document
The Part document to be imported is opened using the Import the Part Document as a Product in the Collection of Products
A new part is imported under the product collection using the |
[Top]
This use case has shown how to create a simple product structure that imports an existing Part from an external Part document. Specifically, it has illustrated using:
Add
method the Documents object to create a new
Product document.Product
property of the ProductDocument object to
retrieve the root product of the document.Products
property of the Product object to
retrieve the product collection.Open
method of the Documents object to open an
existing external Part document.AddExternalComponent
method of the Products object
to import the part as a product under the product collection.[Top]
[1] | Replaying a macro |
[Top] |
Copyright © 2001, Dassault Systèmes. All rights reserved.