question

Steven Chen avatar image
0 Likes"
Steven Chen asked Phil BoBo edited

Writing C++ class in FlexSim

Hello,

Is it possible to define C++ class that contains properties and methods in FlexSim. Perhaps the class has drawing code to act like normal 3D object. Maybe it is some kind of customized data storage to increase modeling efficiency. And all the C++ code are writing in toggled node in FlexSim.

If it is possible, will it able to access class method like "obj.getValue()" with dot syntax?

FlexSim 20.1.3
flexsim 20.1.3c++ class
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Phil BoBo avatar image
1 Like"
Phil BoBo answered Phil BoBo edited

You can create custom C++ classes using the Module SDK. Download it and look at its included documentation.

The "dot syntax" is FlexScript syntax. In C++ you use different syntax for accessing values in the tree.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.