Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Macro: Refer to an element of the active document 1

Status
Not open for further replies.

elmundo777

Automotive
Jun 23, 2020
93
Hello. How to refer to an element of not all open documents of the catalog, but only the active document?
without using selection.

For example, I want to refer to the elements shown in the picture:

tree_question_pqfj8o.png
 
Replies continue below

Recommended for you

CATIA.ActiveDocument.Product.Products.Item(2) or CATIA.ActiveDocument.Product.Products.Item("Product3.1")
 
And what if I need to refer to the root product?
 
CATIA.ActiveDocument.Product

If that's not obvious to you I strongly recommend studying Automation documentation.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor