question

Zdenek K2 avatar image
0 Likes"
Zdenek K2 asked Andrew O commented

Exception Caught in ObjectFunction240 Error

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.

FlexSim 22.2.1
warehousescripting240
error2.fsm (466.7 KiB)
rackslibrary.fsl (268.4 KiB)
· 1
5 |100000

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

Andrew O avatar image Andrew O commented ·

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 0 ·

1 Answer

Patryk avatar image
0 Likes"
Patryk answered Patryk commented

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


error2-2.fsm (463.2 KiB)
· 1
5 |100000

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

Patryk avatar image Patryk commented ·

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


0 Likes 0 ·