Is there a way of using new FlexScript with dot syntax in SDK environment? Or only the old FlexScripts are supported in SDK? I tried to call e.g. model().find("abc") in a C++ function. It does not work well.
Thanks, Hao
Is there a way of using new FlexScript with dot syntax in SDK environment? Or only the old FlexScripts are supported in SDK? I tried to call e.g. model().find("abc") in a C++ function. It does not work well.
Thanks, Hao
We made the decision to use dot syntax as opposed to C++'s standard -> syntax in flexscript because it's faster/easier to write and more standard throughout other programming languages. Because of that, you can no longer simply switch from flexscript code to C++ code without the need to alter it.
The syntax in C++ for the find command would be:
model()->find("abc")
For getting the content of an object you would say:
object->subnodes.length
You should be able to use all of the new API calls with -> as opposed to dot syntax.
7 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