I want to have 2 flowtimens on the same processor at the same time but each one at the far end of the processor. I dont want to animate them, only to have them in different positions.
I want to have 2 flowtimens on the same processor at the same time but each one at the far end of the processor. I dont want to animate them, only to have them in different positions.
Properties pane Processor: deactivate option Animate Items
Set maximum content to two.
On Entry event create an attribute of 2 states a location for each item. [Trigger or Process Flow].
Condition structure statements if or switch structures
For increasing statistical values you can use an modulus operator of two %2. It is an interger division returning an integer rest like current.stats.input.value
where current is a reference to your processor.
If you want, you can use static values of item rank.
A location is a permanent value and stays until it is written anew.
Locations can you set by components of x, y, z or in whole as a Vec3 Class property created by Vec3 constructor.
Currently I have this code. How can I make it in way that the next flow item goes to the available location instead of going always to the "else" location? Object current = ownerobject(c); Object item = param(1); int port = param(2); if (current.stats.input.value %2 == 0){ // ************* PickOption Start ************* // /***popup:SetCenterLoc*/ /***tag:name*//**Set Center Location*/ /***tag:selectedGroup*//**3*/ /***tag:selectedIcon*//**6*/ Object involved = /***tag:object*//**/item/**/; double x = /***tag:nx*//**/4/**/; double y = /***tag:ny*//**/-3/**/; double z = /***tag:nz*//**/1/**/; double xFactor = /***tag:xF*//**/0.50/**/; double yFactor = /***tag:yF*//**/0.50/**/; double zFactor = /***tag:zF*//**/0.00/**/; /***tag:command*//**/setloc(involved, x, y, z, xFactor, yFactor, zFactor)/**/; } // ******* PickOption End ******* // else{ // ************* PickOption Start ************* // /***popup:SetCenterLoc*/ /***tag:name*//**Set Center Location*/ /***tag:selectedGroup*//**3*/ /***tag:selectedIcon*//**6*/ Object involved = /***tag:object*//**/item/**/; double x = /***tag:nx*//**/10/**/; double y = /***tag:ny*//**/-3/**/; double z = /***tag:nz*//**/1/**/; double xFactor = /***tag:xF*//**/0.5/**/; double yFactor = /***tag:yF*//**/0.5/**/; double zFactor = /***tag:zF*//**/0/**/; /***tag:command*//**/setloc(involved, x, y, z, xFactor, yFactor, zFactor)/**/; } // ******* PickOption End ******* //
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