Either you change the shape factors in the flow item bin, so that the 3d shape is rotated 'correctly' within the bounding box (forward: positive along the x-axis, up: positive along the z-axis).
Or you change the rotation within the model in the properties of the entry transfer and the On Entry trigger of the combiner.
In the On Entry trigger you would also need to customize the code so that only the items entering through port 2 are rotated.
Hello Felix, thanks for your answer and idea. Could you send me the FlexSim file with this changes? Just to see the code.
Set up the "Set Rotation" option as you would normally, then simply enclose everything between "Pickoption Start" and "Pickoption End" in an if-condition that checks if the item entered through port 2.
{ // ************* PickOption Start ************* //
if(port == 2) { /***popup:SetSizeLocRot*/ /***tag:name*//**Set Rotation*/ Object involved = /** \nObject: *//***tag:object*//**/item/**/; double x = /** \nx: *//***tag:nx*//**/-90/**/; double y = /** \ny: *//***tag:ny*//**/0/**/; double z = /** \nz: *//***tag:nz*//**/180/**/; /** \nCommand: *//***tag:command*//**/setrot/**list:setloc~setrot~setsize*/(involved, x, y, z); } } // ******* PickOption End ******* //
16 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