question

Paula LG avatar image
0 Likes"
Paula LG asked Paula LG edited

Hide red frame when object stopped

Hello,

Is there any way to hide the red frame that appears surrounding an object when it is manually stopped? I'm using the object.stop() command.

1724828529203.png

Thanks in advance!

FlexSim 24.1.1
stopobject
1724828529203.png (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.

1 Answer

Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered Paula LG edited

You can add onDraw code and return 1 to prevent the default drawing of the box. I think there are also some states that will not result in the box being drawn.

· 3
5 |100000

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

Paula LG avatar image Paula LG commented ·

Hi Jason,

Thank you for your answer!

I have already tried all available states and each one of them results in the box being drawn.

Could you tell me where would I have to add the onDraw code, please?

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Paula LG commented ·

Add it to the On Draw trigger:

1724845811101.png

0 Likes 0 ·
1724845811101.png (17.5 KiB)
Paula LG avatar image Paula LG Jason Lightfoot ♦♦ commented ·

Sorry, I thought you meant I had to add it to the object's tree. It works, thanks!

1 Like 1 ·