question

wei avatar image
0 Likes"
wei asked Andrew O commented

Change the color of Object according to label

控制點6和控制點7是充電站,

agv會隨機去兩個充電站,

shape 1和shape 2是充電樁,

希望agv充電時充電樁可以改顏色


但我不知道如何用我當前的 token.cp 選擇對象


Control point 6 and control point 7 are charging stations,

AGV will randomly go to two charging stations,

shape 1 and shape 2 are charging piles,

I hope that the charging pile can change the color when the agv is charging

but i don't know how to select object with my current token.cp

充電_1.fsm

FlexSim 22.1.0
controlpoints
充電-1.fsm (57.7 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.

Andrew O avatar image Andrew O commented ·

Hi @wei, was Jason Lightfoot's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot edited

Use the shapes in your group and attach them to the CPs (instead of having the CPs in the group). Acquire the shape and get a reference to it that way in order to change its color. Add reset to both shapes to set the color to gray.

5 |100000

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