You can either trigger the export of all defined exports like this:
Object dbConnector=Model.find("Tools/DatabaseConnectors/DatabaseConnector1"); function_s(dbConnector,"exportAll");
Or trigger a single export:
Object dbConnector=Model.find("Tools/DatabaseConnectors/DatabaseConnector1"); treenode dbexport=variables(dbConnector).subnodes["exporters"].first; // the first in the list of exports. function_s(dbConnector,"exportSingle",dbexport);
Since it uses function_s calls, you may need to revise this code in the future, so if you need to invoke it in many places I'd place it in a user command and call that from multiple places instead.
Thank you for the answer. Can you please explain how we can create subnodes (like exporters) as you mentioned for the script?
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