question

Steven Chen avatar image
0 Likes"
Steven Chen asked Matthew Gillespie answered

Create ASRS using createinstance()

I use createinstance() to create ASRS.

However, after created and click reset, the rail location will move as the gif show.

Is it a bug or how can I modify the code?

video-2022-11-10-130701.gif

FlexSim 22.2.2
asrs vehiclecreateinstance
5 |100000

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

1 Answer

Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered

Either add a call to firecreateevent() after creating the object

Object newObj = Object.create("ASRSvehicle");
firecreateevent(newObj, newObj.location.x, newObj.location.y, newObj.location.z, 0);

Or use dropuserlibraryobject()

dropuserlibraryobject(library().find("?ASRSvehicle"), model(), 0, 0, 0, 0, 0);
5 |100000

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