I open a Revit project. In this project I have a generic plastic material. Its color is Blue, i.e. 0,0,255. With the Revit API I get the AssetProperties, then I get the AssetProperty "plasticvinyl_color" which is an AssetPropertyDoubleArray4d that contains the 4 components of the color. But all four components are equal to 1, which is not Blue but White.
Now the best part is that if I go to Revit's UI and change the color to something else, i.e. let's say I make it 0,0,254 hit Apply and the return it back to Blue (0,0,255) and hit Apply again and I suddenly start getting the correct values from the AssetProperty from then on.
It is like somehow the AssetProperty is not fully initialized until I make some change through the UI and hit Apply. From then on I start getting the correct values.
Has anyone encountered a similar behavior?