Default colour palette associated with Type values in FlexSim

Default colour palette associated with Type values in FlexSim

borja_lorenzo
Advocate Advocate
277 Views
2 Replies
Message 1 of 3

Default colour palette associated with Type values in FlexSim

borja_lorenzo
Advocate
Advocate

Hi,

I would like to understand if there is any official mapping between the "Type" value and the colour applied in FlexSim.

Specifically, I am referring to:
- FlowItems in the 3D model when using "Colour by Type"
- Tokens in Process Flow when using Token Colours based on a label such as "Type"

I am attaching a reference model that I modified from the original tutorial:
Use Resources as shared assets in a process flow 
https://www.autodesk.com/learn/ondemand/curated/create-and-work-with-tokens-in-flexsim

In each Process Flow, I slightly adjusted the configuration to try to achieve a visual correspondence between the colour of the 3D objects and the colour of the tokens in Process Flow.

borja_lorenzo_1-1777382059487.png

 

The question came up while working on the "Resource" model (see attached screenshot). I had to manually iterate through different Type values until I found that:
- Type = 1 corresponds to red
- Type = 2 corresponds to green
- Type = 3 corresponds to blue

However, this was done by trial and error.

I would like to know if there is any table, documentation, or internal reference where this mapping between Type values and colours can be checked, instead of determining it manually.

Ideally, I am looking for the default colour palette used by FlexSim when applying "Colour by Type" or token colour mapping in Process Flow.

Thanks in advance!

0 Likes
Accepted solutions (1)
278 Views
2 Replies
Replies (2)
Message 2 of 3

joerg_vogel_HsH
Mentor
Mentor
Accepted solution

Currently you get default color pallet by:

item.color = Color.byNumber(current.stats.output.value+1);

in an On Creation Trigger of a source.

This pallet hasn't changed from very early versions of FlexSim.

and Color by Number uses this default setup.

 

 

Message 3 of 3

borja_lorenzo
Advocate
Advocate

 

Hi Joerg,

Thank you for the clarification and for pointing out the use of Color.byNumber() — that was very helpful.

To better understand and visualise the default palette, I added a small test directly to the Shared Assets tutorial model from Autodesk that I had attached previously. I included a simple piece of code that increments a global variable and assigns the corresponding colour:

item.color = Color.byNumber(ID);

borja_lorenzo_0-1777452167323.png

 

This makes it easy to see which colour corresponds to each number. While values 1–15 are already documented in the section of the manual you pointed out, having a quick visual reference in the model is quite helpful in practice.

 

It’s a very simple addition, but I’m sharing the updated model in case it might be useful for others.

Thanks again for your help!