Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X
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?
Solved! Go to Solution.
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.
I linked to the wrong thing. Try this instead:
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
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.
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.