Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

identify part or product document

Status
Not open for further replies.

sri91

Mechanical
Aug 29, 2019
43
Hi All,
Can anyone please let me know vba code to identify part or product in cgr mode(the assembly is not in design mode)?
The below code will work if the product is only in design mode.

TypeName(mainProd.ReferenceProduct.Parent) = "PartDocument"


I dont want to open the assembly in design mode as it will take huge time to open big assemblies.

Any help in this regard is appreciated.

Thanks
SURYASRI
 
Replies continue below

Recommended for you

there is a step inbetween design-mode and cgr-mode:
Code:
oRootDoc.Product.ApplyWorkMode DEFAULT_MODE    'Required setting to retrieve Product properties (Definition) in visualization mode [/code ]

regards, 
LWolf
 
Thank you very much wolf. It is working. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor