Exception Caught in ObjectFunction240 Error

Exception Caught in ObjectFunction240 Error

zdenek_k2
Not applicable
31 Views
3 Replies
Message 1 of 4

Exception Caught in ObjectFunction240 Error

zdenek_k2
Not applicable

[ FlexSim 22.2.1 ]

Hello,


Ive created semi-automatic model for creating warehousing layouts, however upon generating Racks and trying to reset model I am encountering this error 240, with no real way to fix it.


Attached is model and 2custom libraries im using for object generation.

Is there a way how to fix that error?

Thanks!

RacksLibrary.fsl

Shuttle_Elevators.fsl

Error2.fsm

Z.K.

0 Likes
Accepted solutions (1)
32 Views
3 Replies
Replies (3)
Message 2 of 4

patryk_u2
Not applicable
Accepted solution

The error occurred because when you create racks with a code, they do not enter the Storage system automatically and therefore it was not possible to restart the labels on the racks. What is happening on reset

To enter the rack when creating the storage system, you can use the codes


Object new1 = NewRackL;

treenode so_new1 = createcopy(StorageSystem.first,StorageSystem);

string link1 = new1.getPath() + ">variables/system";

treenode rack_system1 = Model.find(link1);

treenode rack_system_new1 = createcopy(StorageSystem.first,rack_system1);

rack_system_new1.value = so_new1;

so_new1.value = rack_system_new1;

error2_2.fsm

The model with the code in the attachment

0 Likes
Message 3 of 4

patryk_u2
Not applicable

treenode StorageSystem = Model.find("Tools/StorageSystem>variables/storageObjects");


0 Likes
Message 4 of 4

andrew_o2
Not applicable

Hi @Zdenek K2, was Patryk's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes