question

Sean avatar image
0 Likes"
Sean asked Matthew Gillespie answered

Find slot doesn't work

Hi,

I used Delete and Copy Group Members to add Floor Storage. My question is why Find Slot in Process Flow couldn't find slot that Floor Storage was added through copy Group Members? Is there any wrong with my setting? Thank's

test.fsm

FlexSim 22.2.0 (beta)
findslot
test.fsm (173.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.

Felix Möhlmann avatar image Felix Möhlmann commented ·

The copies made by 'createcopy()' are not being linked to the storage system.

1658910764967.png

There is probably an 'applicationcommand' for this but those are undocumented.

Adding the coupling nodes manually seems to work though. Add the following lines to the On Set trigger of the parameter:

treenode rackSystemNode = newObj.find(">variables/system").subnodes.add();
rackSystemNode.dataType = DATATYPE_COUPLING;
treenode systemRackNode = Model.find("/Tools/StorageSystem>variables/storageObjects").subnodes.add();
systemRackNode.dataType = DATATYPE_COUPLING;
nodejoin(rackSystemNode, systemRackNode);

1658910829626.png

test-fm.fsm

I'll post this as a comment so maybe a developer can have a look at this and provide a proper answer. @Matthew Gillespie

0 Likes 0 ·
1658910764967.png (8.5 KiB)

1 Answer

·
Matthew Gillespie avatar image
2 Likes"
Matthew Gillespie answered

The newly created rack objects need firecreateevent() called on them for them to be registered in the Storage System. This can be done with this single line added to the end of the for loop that creates the new copies:

firecreateevent(newObj, newObj.location.x, newObj.location.y, newObj.location.z, 1);

We'll update this pickoption to include this call going forward. Thanks for pointing out this issue and sorry for the inconvenience!

5 |100000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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