question

Javier Lg avatar image
0 Likes"
Javier Lg asked Javier Lg commented

Change the visual of an object using a token to find the name

Hi All,

I would like to create a table with the names of different objects in the model. then I would like to change the color of those objects using the name as token in a change visual :

1663068888515.png


My token call: Graph_1 as the name of the object


1663069107681.png


Then in the syntax to change the name

1663069198203.png

I try to call the name of the object but doesn't work..

Any clue to resolve this problem? thanks in advance.

Javier


FlexSim 22.2.1
processflowchange the colorfind a object
1663068888515.png (300.8 KiB)
1663069107681.png (52.9 KiB)
1663069198203.png (57.0 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.

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Javier Lg commented

The label already contains a reference to the object, so you can use it directly without needing "Model.find()".

1663072959155.png

("/" + purple font -> pointer
aligned to the left and black font -> text)

1663072876612.png


1663072876612.png (1.9 KiB)
1663072959155.png (12.5 KiB)
· 1
5 |100000

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

Javier Lg avatar image Javier Lg commented ·

Hi Felix,

I have tried your solution but it still does not change color, I attach the model for you to see.


test colors.jpg

0 Likes 0 ·
test-colors.jpg (37.8 KiB)
Javier Lg avatar image
0 Likes"
Javier Lg answered

test colors.jpg.


Hello Felix,

I have tried your solution but it still does not change color, I attach the model for you to see.


test-colors.jpg (37.8 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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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