Hello.
I'm trying to set the spatial attributes of an object using c++ code, i can access the treenode and change the name, but i don't know how to change these values. how i can do it?
Hello.
I'm trying to set the spatial attributes of an object using c++ code, i can access the treenode and change the name, but i don't know how to change these values. how i can do it?
The setLocation method is on the ObjectDataType class, so you have to cast the treenode to ObjectDataType:
obj->objectAs(ObjectDataType)->setLocation(0, 0, 0);
Alternatively you can use the setloc() command which just takes a treenode:
setloc(obj, 0, 0, 0);
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