Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

plasticvinyl_color

0 REPLIES 0
Reply
Message 1 of 1
rossen.hristov
183 Views, 0 Replies

plasticvinyl_color

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? 

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Forma Design Contest


Rail Community