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

Building base color fails

4 REPLIES 4
Reply
Message 1 of 5
ouspensky
366 Views, 4 Replies

Building base color fails

I attempt to assign white as a base color

 

Hexcode.PNG

 

and after refresh Infraworks returns:

 

Result.PNG

 

It failed to parse the color code and the buildings are some default red color that i don't want

 

snapshot.jpg

4 REPLIES 4
Message 2 of 5
ToddRogers-WPM
in reply to: ouspensky

You have too many F's.  There should be only 6 (#FFFFFF).

Todd Rogers
Message 3 of 5
ouspensky
in reply to: ToddRogers-WPM

this did not work:

 

// Failed to create mapping. Details: 'Failed to parse expression.'.

// BUILDINGS.BASE_COLOR = #FFFFFF;


even with 6 digits

Message 4 of 5
ouspensky
in reply to: ouspensky

hello? does anyone know the answer?

Message 5 of 5

I have seen the red color applied to buildings when I had mapped a data source property to the Rule Style field but didn't create Style Rules to differentiate between individual property values. I just played around with some buildings in my model as was able to make changes to building color most effectively through the Properties Palette. Make sure to click Update in the Properties Palette. 

 

Additionally, in your script, I notice that you start BUILDINGS.BASE.COLOR with the // double slash, which normally is the tag for a one-line comment in JavaScript. Try removing the // from the line and use a 6 digit color code.

 

 


Principal Specialist, Infrastructure

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

Post to forums  

Rail Community


 

Autodesk Design & Make Report