question

Tzu Hsuan C avatar image
0 Likes"
Tzu Hsuan C asked Joerg Vogel commented

Set Item Type and Color

Hi, I would like to assign Source(Box) in two types, so I have to set Item Type and Color. But there's a problem in the following setting:

What I expect is "Set Item Type and Color",

but there is no Item option, only Label option.


What mistake did I made before? Thanks a lot.

FlexSim 20.2.3
flexsim 20.2.3labelitemitem type
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Joerg Vogel commented

Type is a label. The picklist option is designed to apply a label (default setting for its name Type) with a label value in the range of 1..3. The color is set accordingly the method colorByNumber depending on the value of the label.

I suggest you test the behavior yourself. And you look if the result is what you expect.

· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Joerg Vogel avatar image Joerg Vogel commented ·

Yes, a label is an attribute. Whenever you want to store any kind of datatype easy at an item, an object or token, you can use a label. Therefore you find an interface in property panels.
Later and more experienced in FlexSim you will more often work in the tree. Then the phrase “attribute” belongs to a branch of an object. Labels are a subnode of the attribute branch and each label itself is a subnode of labels. There are other attributes like visual, event function,.. . Some of those attributes are in light blue color shown in the tree. Then you can get access to those subnodes directly constructed similar like a function. drawsurrogate(current). The property attribute belongs to the FlexScript Class Object.

1 Like 1 ·
Tzu Hsuan C avatar image Tzu Hsuan C commented ·

Hi @Jörg Vogel. Thank you for your answer.

May I ask for more explanations about Label?

I used to learn ARENA, and now try to use previous experiences to understand how FlexSim works.

I feel like Label is a kind of similar to Atrribute in ARENA?

0 Likes 0 ·