question

Giada R avatar image
0 Likes"
Giada R asked Matthew Gillespie answered

ERROR FLEXSIM 2019

Hi, i'm using FlexSim 19.2.0(64-bit) but i'm having a lot of problems. For example:

1. i insert global variables in the toolbox, save the model and then when i re open it, the global variables still appear in the global variable table but are uninitialized, hence when i click on a global variable in such table, it appears totally empty and i can't add any value. Obviusly at the same time, the script doesn't recognize the variables anymore.

2. when i execute the script, the 3d model shows me the elements of the script. But when i edit my codescript (modifying the position of the rack for example), i have to delete every previous elements first, from the 3d model in order to see the changes. Otherwise, the updates aren't shown.

Thanks to anyone who can help me :)

cattura.png

Choose One
error flexsim 2019
cattura.png (155.5 KiB)
· 5
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jeff Nordgren avatar image Jeff Nordgren commented ·

Without your model or a sample model of the specific problem, it is hard to give you a specific answer to your question. Is it possible to send us your model so that we can look at it to see exactly what is happening? A picture of one of the screens doesn't give enough information to answer your specific question.

Thanks.

0 Likes 0 ·
Giada R avatar image Giada R Jeff Nordgren commented ·

modello-finale.fsmOkok this is my specific model, probably i have committed some errors that i can't understand.

Thank u very much

0 Likes 0 ·
modello-finale.fsm (73.4 KiB)
Matthew Gillespie avatar image Matthew Gillespie ♦♦ Giada R commented ·

Why did you create a global variable for all the variables you define in your script? You don't need to make global variables just to use them in a script window.

0 Likes 0 ·
Show more comments

1 Answer

Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered

1. The global variables window is blank because you moved the Tools node in the tree. The Tools node is always supposed to be the first node in the tree, but in your script you're setting the rank of network nodes and you set a network node to be rank 1. You can fix your model by executing this script:

Model.find("Tools").rank = 1;

You should modify your script so that you're not setting anything to rank 1, maybe like this:

...
groupaddmember("BayNode", member);
member.rank = n + 1;		// n + 1 instead of n

2. What's the problem? Your script is creating objects in the model. If you want to change what objects are in the model you need to get rid of the ones you created last time.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.