I have a 'parameter' global table that has to be updated during runtime. But when I reset my model the numbers have to go back to default. Is there an elegant way to do this (not with on reset triggers and stuff...) Thanks
I have a 'parameter' global table that has to be updated during runtime. But when I reset my model the numbers have to go back to default. Is there an elegant way to do this (not with on reset triggers and stuff...) Thanks
@Jarek O If you excel changes there is a checkbox you can use on Excel Import gui, but that is a bit slow and if your excel hasn't change this doesn't work. The simplest solution in my opinion would be to have the same excel file read in to 2 tables and in the onReset triggers simply copy one table to the other. The code is very simple:
Table table1 = reftable("GlobalTable1"); Table table2 = reftable("GlobalTable2"); table1.cloneTo(table2);
A second option would be to use the excelimporttable command in the onreset trigger.
( you said you didn't want to use the reset trigger but I don't see any other way of doing it without writing any code)
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