hi guys!
I want to output the content of this data in string format using code.As shown in the following image. What do I need to do?
Thank you for your review
hi guys!
I want to output the content of this data in string format using code.As shown in the following image. What do I need to do?
Thank you for your review
Try something like this:
Table.query("SELECT StatisticsCollector.getPathFromID(Object),State,Time, Utilization FROM [State Collector]").cloneTo(Table("temp"))
treenode data = Model.find("Tools/StatisticsCollectors/StatisticsCollector1>stats/data");
string directory = modeldir();
if (!directory.length)
directory = documentsdir();
string fileName = getfilebrowse("*.csv", "Comma Separated Format", "", directory, 1);
exporttable(data, fileName, 1, 0);
Hi,thank u.
but I don't want to save this data as a file locally, I just want to convert it into string text
'Output' is meaningless unless you qualify the destination - most would assume a text file.
You can define this node with the type of the table, and then read every row and column in the table in the same way that the table reads, and write it into a text.
To define the table, see Jason's response above, or see the following:
Table data = Model.find("Tools/StatisticsCollectors/StatisticsCollector1>stats/data");
19 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