I'd like to use flexscript to move a global table to another folder. For example, move GlobalTable2 from TestFolder to DestFolder. Is there a clean way to do this?
I'd like to use flexscript to move a global table to another folder. For example, move GlobalTable2 from TestFolder to DestFolder. Is there a clean way to do this?
You need to do this in a different part of the tree:
treenode ToolboxGTs=Model.find("Tools/Toolbox/GlobalTables"); ToolboxGTs.find("TestFolder/1").up=ToolboxGTs.find("DestFolder");
Awesome thanks! Follow-up question....If the global table isn't in a folder already how does the code change if I want to insert it into the DestFolder? I tried a few things but they are throwing errors
ToolboxGTs.find("DestFolder").subnodes.add().value=ownerobject(Table("GlobalTable1"));
12 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