hello,
I want to produce an esthetic effect: I want the fork of the forklift to elevate the product to Z = 5m after loading it.
How can I acheive that using codescript in processflow.
Thank you
hello,
I want to produce an esthetic effect: I want the fork of the forklift to elevate the product to Z = 5m after loading it.
How can I acheive that using codescript in processflow.
Thank you
Hi,
To do so, the easiest way I could think of is as follows:
Essentially, the logic operates by changing some variables of the transporter.
The first custom code sets the "forkbegintime" variable to the current time, and the "forkdestheight" one to 5 (since we want the item to be lifted until it reaches 5m high). It also creates a label on the token called "liftTime" which represents the calculated time it will take the forklift to elevate the product to such height.
After that, you need to add a delay task for the token to respect this elevation time and not continue to further activities before it finishes; the delay time will be token.liftTime.
Lastly, I have added another custom code which sets the "forkdestheight" variable to 5 again, because after the lifting movement is finished FlexSim automatically updates "forkinitialheight" to 5 and "forkdestheight" to its default value, making the forklift lower its fork again when the travel activity starts. You can remove both activities (Breathe + Act fork height) if you want the behavior described, or preserve them if you want the transporter to travel with the product elevated.
I hope it helps!
11 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