Can we toggle on and off the background in FlexSim?
Can we toggle on and off the background in FlexSim?
So you can hide or show objects using the command: switch_hideshape().
switch_hideshape(BackgroundNode,1) (this would hide the object)
switch_hideshape(BackgroundNode,0) (this shows the object.)
Replace BackgroundNode with a reference to your own background object. You can find the node from your model tree.
You could also add this hide/show logic to buttons on a Dashboard to make it more accessible.
I've attached a simple model demonstrating this.
Thanks Sam. That is what I needed. I changed it from button to a Checkbox, so now I can check and uncheck to make it on and off.
I had the same question a few weeks ago. I think there should be a check box in the View settings for background on or off in the View Settings. The solution you offer is a workaround and not a solution for the problem of not being able to turn the background on and off.
You can hide a background the same way you can hide any object in the model, using the Show 3D Shape checkbox in the object's Properties window.
You can also use the Groups and Edit Selected Objects modeling utilities windows to hide/show the 3D shapes of one or more objects in your model, including the ModelBackground object:
Sam explained how you could more quickly hide it or show it if you didn't want to go to the Background's Properties window to adjust it.
You could use his solution to hide/show any other object or group of objects as well, not just the model background.
Using the software's commands to customize your model and workflow isn't a workaround; it is a feature. FlexSim is flexible and customizable by design.
6 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved