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!

How to get the color /material of a part in Catia using VBscript

Status
Not open for further replies.

Kevintp

Electrical
Joined
Feb 20, 2004
Messages
8
Location
US
Hi,

I like to write a VBScript that will retrieve the color or material data of a part that I current load into Catia.
I have tried this:

Dim my_data as AnyObject
set my_data = CATIA.Activedocument.RenderingMaterial

but it gave me an error message saying that: Object does not support this method or property.

I would really appreciate if you can help me to write set of codes that will get the color or material properties of a CATIA part.

Thanks.

Kevin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top