I am trying to create a logic where I wanna check if the elevator is at Floor 1, which is Z level 0. How can I reference the current Z level of elevator in FlexScript?
I am trying to create a logic where I wanna check if the elevator is at Floor 1, which is Z level 0. How can I reference the current Z level of elevator in FlexScript?
Object elev=Model.find("Elevator1"); updatelocations(elev); return elev.location.z;
If you need the top of the platform you might use something like this:
elev.getLocation(0.5,0.5,1).z; //centre top position's value in z.
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