Please note that I am applying color to the selected entity using the macro.
I have used "SetMaterialPropertyValues" API.
Also note that the "Undo" works properly when the color is applied interactively.
Can anybody tell the reason behind this behavior??
or can probably suggest a solution to this problem??