Hi,
I would like to make an Global Variable with type Array, containing Arrays as elements.
example:
Array[2]: Array("foo",1), Array("foo",2);
It doesn't seem to be that easy for me.
Flexsim version: 17.1.6
Hi,
I would like to make an Global Variable with type Array, containing Arrays as elements.
example:
Array[2]: Array("foo",1), Array("foo",2);
It doesn't seem to be that easy for me.
Flexsim version: 17.1.6
Hi @Jarek O,
Here's a simple example.
First you create a global array variable manually, then you can insert array elements through code.
int rows = 5; Array DataArray = [5,3,2]; Array array = Array(rows); array.fill(DataArray); GlobalArray = array;// GlobalArray is the global array variable
Regards,
Arun KR
Is this working for you? For me it doesn't work, I tried similar things as well, but nothing that succeeds.
Regards,
Jarek
yes, just see the return value on the script console.global-array.fsm
yes @Arun KR, but it isn't stored in the GV? If you run that script, it returns indeed that array, but the global variable itself is still empty in further use.
Jarek
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