On checking the Tools method, we can't create an empty GUI using Tools dot syntax API.
treenode GUI = Tools.create("GUI");
Any reason for this?
Regards,
Arun KR
On checking the Tools method, we can't create an empty GUI using Tools dot syntax API.
treenode GUI = Tools.create("GUI");
Any reason for this?
Regards,
Arun KR
Same for Global Macros too - although that's just a case of asserting a subnode into Tools.
Model.find("Tools").subnodes.assert("fsmacros","");
The Tools.create() method was added to help users who want to autobuild parts of their model. The GUI builder tool was a tool that we thought users wouldn't (and probably shouldn't) autobuild.
I'm trying to build a global table that will be added to the user library with a custom GUI view. When I drag-drop the global table from the library, the GUI needs to be added to the tools section. In order to model this, during the custom global table drag-drop. I will create an empty GUI using the application command and then copy the saved custom GUI in the attribute node of the global table to the empty GUI. That's the reason I felt the need for Tool. create() method to create an empty GUI instead of using the application command.
Since you already have your GUI defined you just need to copy it into the tools folder. You shouldn't need to create a new one.
myGUI.copy(Model.find("Tools").subnodes.assert("GUIs"));
14 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