AnsweredAssumed Answered

Set Raw Material  and Visual Properties ++

Question asked by Niels Raahauge on Jan 5, 2020
Latest reply on Jan 6, 2020 by Niels Raahauge

I want to change material for the part by using VBA.


Is there a easy way change material like doing it in the feature tree - so the graphic, hatch is correct.

If I record a macro, I found SetMaterialPropertyName2 Method (IPartDoc)  is used.
But if I playbabck the macro the visual effect do not change, as if I change the material in the feature tree?



There is an example, but it is a lot of code to get all the material informations.