Hi, In this model I'm not able to read from table please do check what is mistake.
I am assigning part name to part_number in my custom code but in next step it is not reading part_number from global table.
model name : globaltablematch.fsm
Hi, In this model I'm not able to read from table please do check what is mistake.
I am assigning part name to part_number in my custom code but in next step it is not reading part_number from global table.
model name : globaltablematch.fsm
Due to network it was not uploaded I reuploaded it please do check @Jason Lightfoot
You're using P and Q as the row ids but your row ids in GlobalTable2 are "Row 1" and "Row 2" change those and it will work. (and you don't need 'cell' you can just use ["P"]["Buffer"])
@Jason Lightfoot I have same model created without process flow . i am creating inventory in Run start.
and on entry reading the object and assigning it to destination. But giving error how i will assign this object in code.
for reference model name: post.fsm
First of all - this is better code for the run start:
if(Model.time == 0){ Object Pal_Obj; Object Pal_Obj1; treenode flowitem = Model.find("Tools/FlowItemBin/Pallet/1"); treenode flowitem1 = Model.find("Tools/FlowItemBin/Box/1"); Object Destination = Model.find("Queue1"); Table gt1=Table("GlobalTable1"); for(int i =1; i<=gt1.numRows;i++){ for(int j=1; j<=gt1[i]["Quantity"]; j++){ Pal_Obj = createcopy(flowitem, model()); Pal_Obj.part_num = gt1[i]["Item name"]; Pal_Obj1 = createcopy(flowitem1, model()); moveobject(Pal_Obj, Destination); moveobject(Pal_Obj1, Pal_Obj); } } }
In your entry trigger you declare Pal_Obj but don't assign it anything - so you're trying to fine the label part_num on something that doesn't exist. you probably meant to use item.
15 People are following this question.
© 1993- FlexSim Software Products, Inc. All Rights Reserved.
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.