question

Adyasha K2 avatar image
0 Likes"
Adyasha K2 asked Sri_vikas K answered

Concatenate Labels of Token & Assign to 3D Object

Concatenate Labels of Token & Assign to 3D Object.fsm


There are two labels on token in Process Flow. I want these 2 tokens to be concatenated by _ & the value should be assigned to the flowitems in 3D.

FlexSim 22.2.2
assignlabelto3dassigntokenconcatenatelabel
5 |100000

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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

The numerical values have to be converted into strings (text). Then you can concatenate them together with "+".

1669026304084.png

The second parameter in "string.fromNum" determines how many decimal places will be shown in the converted value.


1669026304084.png (6.1 KiB)
5 |100000

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

Sri_vikas K avatar image
0 Likes"
Sri_vikas K answered

Hi @Adyasha K2

You Can also achieve this by storing label value after creating the Object.

Just add one more label assigning activity and give the "Assign label to" value as "token.item" and add your own labels which you want to give on the create item.

refer to the model attached below.

concatenate-labels-of-token-assign-to-3d-object SVK.fsm





5 |100000

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