Please share an example.
Please share an example.
doesnt work, I use this command if(variable1==1)
{
setstate(current,4);
}
and doesnt work I dont know why
Could you please give more Information about where and when and why you try to set the state? As Matt explained maybe the state is set but directly overwriten by a Standard setting of the object.
If you just wish to set the state of an object you can just call the setstate() command:
setstate(object,stateNum);
If you look in the setstate() entry in the Command Help, it also gives a list of all the state numbers and their corresponding macro name too.
Be aware that objects set their own states, so depending on when you set the state, it may or may not stay that way.
If you're dealing with TaskExecuters you can use a Utilize or Delay task and assign a state to that task which will continue until the task is finished.
6 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