Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng 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
Joined
Jun 23, 2020
Messages
93
Location
BY
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
 
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

Back
Top