Hide red frame when object stopped

Hide red frame when object stopped

Paula_LG
Enthusiast Enthusiast
116 Views
4 Replies
Message 1 of 5

Hide red frame when object stopped

Paula_LG
Enthusiast
Enthusiast

[ FlexSim 24.1.1 ]

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!

0 Likes
Accepted solutions (1)
117 Views
4 Replies
Replies (4)
Message 2 of 5

jason_lightfootVL7B4
Autodesk
Autodesk
Accepted solution

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.

Message 3 of 5

Paula_LG
Enthusiast
Enthusiast

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
Message 4 of 5

jason_lightfootVL7B4
Autodesk
Autodesk

Add it to the On Draw trigger:

1724845811101.png

0 Likes
Message 5 of 5

Paula_LG
Enthusiast
Enthusiast

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