Is there a function to distribute objects equaly along a space (like in PowerPoint :) )?
Before developping it, I prefere to ask. Thanks in advance
Is there a function to distribute objects equaly along a space (like in PowerPoint :) )?
Before developping it, I prefere to ask. Thanks in advance
@Nicolas M25, to get them on a line is done by Edit Selected Object tool:
https://answers.flexsim.com/questions/97067/network-node-auto-alignment-option.html
But to distribute them evenly is a matter of coding a custom command.
Here's an example using the ports to determine the sequence.
Object obj=Model.find("Source1"); Vec3 gap=Vec3(1,0,0); //The gap in each direction Vec3 rot=Vec3(0,0,0); Vec3 sizeFactors=Vec3(1,0,0); // control the direction Vec3 loc=obj.location+obj.size*sizeFactors+gap; while (obj.outObjects.length){ obj=obj.outObjects[1]; obj.location=loc; obj.rotation=rot; loc=obj.location+obj.size*sizeFactors+gap; }
If they are items, then you can send them into a queue. A queue has a stacking option horizontal line. Then you can evaluate their location and project this data into a diferent object if you want to keep this assembly.
13 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.