Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-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
Feb 20, 2004
8
0
0
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.
Back
Top