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 MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

CATIA VBA material retrieve

Status
Not open for further replies.

Azzazil

Automotive
Joined
Feb 1, 2020
Messages
100
Location
HR
How I can read assigned material of part and print it on screen as message box?

I was trying with this script example but without success since I don't see anything when I run script.
One of possible solutions that I can see is that in part tree there is also Material parameter. Is there method in VB to get information from this parameter to read name of material?
 
Interesting, I wasn't able to get directly the name of the material, I never thought of this...but...

Workarounds:
1. Write a macro to put your material in user defined properties and get from there the parameter material.
1. Get your material from a customized BoM in a product.

image_l38yqw.png

image_d8oxim.png








Regards
Fernando

 
Hi ferdo, thanks for your help I will try to make something according to your proposal, but probably for weekend because at the moment I am short with time ;).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top