I have a processor that uses a crane for transporting items. The crane is set to use an object by global table lookup. However, I'm having trouble referencing the crane in the global table.
I have a processor that uses a crane for transporting items. The crane is set to use an object by global table lookup. However, I'm having trouble referencing the crane in the global table.
You should just use a table where you set the column to use pointer data. Then you can directly access the value in the table:
Object crane = Table("MyTable")[row][col];
The Object by Global Table Lookup pickoption was designed to get around the fact that, before 17.1, you couldn't store pointers in a table. So you have to put the object's name in the table and then that pickoption searches the model for an object of that name.
That code snippet was purposely very generic because I didn't know how you were using it in your model. For your model you should just directly type this into the Use Transport field:
Table("MyTable")[1][1]
The row and col were placeholders for whatever code you want to put in to specify the row and column values. Also, you don't need to store the reference in a variable since you are just immediately returning it.
Thanks @Matthew Gillespie I set the column to use pointer data. But when I try to change the use transport to pull from the table using the code snippett, I get an error. I attached sample model for reference. crane-pointer.fsm
7 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved