I'm trying to show and hide the layout of my model using
switch_hideshape (Model.find ("Tools / ModelBackgrounds / Floor Layout"), 1);
But it's not working. How can i fix this?
I'm trying to show and hide the layout of my model using
switch_hideshape (Model.find ("Tools / ModelBackgrounds / Floor Layout"), 1);
But it's not working. How can i fix this?
You're not actually passing in the model background. The model background isn't in the Tools folder (that's just a node that points at the background) it's in the model:
So your code should just be:
switch_hideshape (Model.find ("Floor Layout"), 1);
Or if you wanted to turn off all the model backgrounds you could use those pointers to find them:
treenode backgrounds = Model.find("Tools/ModelBackgrounds"); for (int i = 1; i <= backgrounds.subnodes.length; i++) { treenode pointer = backgrounds.subnodes[i]; treenode bg = ownerobject(pointer.value); switch_hideshape(bg, 1); }
7 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