¿Como puedo configurar que en un pallet pueda colocar 5 canastillas por nivel? Pregunto ya que por default me esta colocando 4 canastillas por nivel.
¿Como puedo configurar que en un pallet pueda colocar 5 canastillas por nivel? Pregunto ya que por default me esta colocando 4 canastillas por nivel.
Hello @Josué Islas,
You can create a custom packing method for your pallet.
Thanks Jeanette!, but how should I program the code to accommodate 5 boxes per level on the pallet? I show you drawing.
Hello @Josué Islas,
Since you will have consistency for this pallet packing you can have the code check the number of items in the pallet and then return what position and z the item needs to be. That position then decides the location and rotation that needs to be set.
Object item = i; Object current = c; Object lastitem = item.prev; /**Custom 5 per layer/ int index = current.subnodes.length; int position = Math.fmod(index, 5); int level = Math.floor((index-1)/5); double z = current.size.z + level*item.size.z; // Check to see if the flowitem is the first one in if (position == 1) { item.setLocation(0, 0, z); return 0; } if (position == 2) { item.setLocation(item.size.x, 0, z); return 0; } if (position == 3) { item.setLocation(2*item.size.x, 0, z); return 0; } if (position == 4) { item.setLocation(0, -item.size.y, z); item.setRotation(0,0,90); return 0; } if (position == 0) { item.setLocation(item.size.x, -item.size.y, z); item.setRotation(0,0,90); return 0; }
13 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