Hi
I'm trying to set different sizes of boxes according to there type. I have the sizes on GlobalTable1 and i tried to add the size in the Process flow in change visual but it's not working. Any ideas?
Hi
I'm trying to set different sizes of boxes according to there type. I have the sizes on GlobalTable1 and i tried to add the size in the Process flow in change visual but it's not working. Any ideas?
In the Inventories table you have 8 different types defined (1000 - 1007), but in the GlobalTable1 table you only have 5 rows defined. How do you plan to get the correct sizes from the GlobalTable1 table when they don't match up?
Sorry, my mistake. I added some more rows to the global table1.
You were most of the way there. In the Change Visual activity you were setting the item's location and not the size. So click on the drop down in the Set Location, Rotation, or Size popup and change it to Size.
I also changed the token.Type references to token.row. Your Type numbers are numbers 1000 - 1008, but what you need for these pickoptions is a number between 1-8. So I just used your row label that was already there.
Thank you @Matthew Gillespie it does work now. Is there a way that I can use the original numbers that I had?
The issue is that you need to take your Type value and use that to find the right row of the Dimensions table. So you could use token.Type - 1000 for the row value, but that's the same number that your already have on the row label.
You could name the row headers of the Dimensions table with the Type values they represent and use the token.Type label to find the row that way. But that is very slow and you'd have to convert the label into a string to make it work:
Table("Dimensions")[string.fromNum(token.Type)][1]
An alternative approach would be to just add the x,y, and z columns to the Inventories table and just read those values at the same time you read the other columns.
15 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