Hi,
I was trying to use de fuction copyobject() with conveyors, but i've found that it's not possible to set properties of the new conveyor, some errors appear.
Why is this happening?
23.2 Error copyobject Conveyor.fsm
Thanks!
Hi,
I was trying to use de fuction copyobject() with conveyors, but i've found that it's not possible to set properties of the new conveyor, some errors appear.
Why is this happening?
23.2 Error copyobject Conveyor.fsm
Thanks!
Worked for me with:
Vec3 newlocation = Vec3(0,0,1); // update implicit cast from [0,0,1] is also okay - this was a red herring
You should not need the function_s call, since that is done by the property's setValue function.
I'm still getting the same error in that way. Also, using copy instance is working with [0,0,1]
Yes - you're right - if you step through to debug the script with the 3D view open it works, while just running it outright (mostly) or stepping through with the 3D view closed seems not to.
As you say, this works:
Object newconv = conv.copy(model());
Using the next expression after createcopy works (moreless), maybe it's something about doing instantly:
Object conv = Model.find("StraightConveyor1"); Object newconv = createcopy(conv, model()); await Delay.realTime(0); Vec3 newlocation = Vec3(0,0,1); newconv.setProperty("StartLocation",newlocation); repaintall();
17 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