cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Assigning color with a material file

BenLoosli
23-Emerald II

Assigning color with a material file

Is it possible to define a color from appearance.dmt to a specific material in the .mtl file itself?

I want all parts made from SAE J995 Grade 5 to be a certain color. Is there an entry that can be put in the material file to change the color when the material is assigned?

 

1 ACCEPTED SOLUTION

Accepted Solutions
kdirth
20-Turquoise
(To:BenLoosli)

When defining (or redefining) the material, go to the appearance tab, select new, pick a color, and set the color as default.  Back in the Materials window select your material and save.

kdirth_0-1677092226425.png

 


There is always more to learn in Creo.

View solution in original post

4 REPLIES 4
Chris3
20-Turquoise
(To:BenLoosli)

Yes it is. See the article below:

 

https://www.ptc.com/en/support/article/CS50533 

Chris3
20-Turquoise
(To:Chris3)

I linked to the wrong thing. Try this instead:

https://support.ptc.com/help/creo/creo_pma/r9.0/usascii/index.html#page/model-based_definition/to_edit_an_appearance_of_a_material.html 

 

In short you need this in your mtl file:

{
Name = PTC_DEFAULT_APPEARANCE
Type = String
Default = 'glass'
Access = Full
},

 

and you need a corresponding appearance in your global.dmt file

kdirth
20-Turquoise
(To:BenLoosli)

When defining (or redefining) the material, go to the appearance tab, select new, pick a color, and set the color as default.  Back in the Materials window select your material and save.

kdirth_0-1677092226425.png

 


There is always more to learn in Creo.

Hi,

it seems to me that the appearance mentioned in material definition file must be included in global.dmt file.

Please read https://www.ptc.com/en/support/article/cs227662 article.


Martin Hanák
Top Tags