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!

How to get Product object from Part Object 1

Status
Not open for further replies.

USB Memory

Mechanical
May 28, 2020
44
JP
Hi all

Does Someone know a way to retrieve Product object from Part?
The product is a parent of part.
Because I firstly retrieve a part by way of SelectElement, and need it's product that has the part.
I know a way to retrieve Part object from Product but the reverse I don' know

Thanks
 
Replies continue below

Recommended for you

Use [tt]LeafProduct[/tt] property that gets product instance:

Code:
CATIA.ActiveDocument.Selection.Item(1).LeafProduct
 
Thanks for the speedy response.

I got the Object by way of LeafProduct.

like this below

Dim Elm As Variant
Set Elm = mySelect.SelectElement("Select a object", "Face")
Dim Product1 As Product
Set Product1 = Elm.LeafProduct.parent.parent
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top