Assigned Material get lost when save component

Hy,

I succesfully can assign a material via .net but when I save the component (all looks perfect) and load it again it looks different. → Some colors of materials where not recognized… :frowning:

What is needed to save all to the component that it looks like before saving? → I tried different things out…

I assign the material like discussed here: Assign Material via .Net during Runtime

Could it be that inherited Materials not be saved to the component?

Thx & Regards
Feature