It is possible to use C++ functions in Flexscript?

It is possible to use C++ functions in Flexscript?

robert_s3
Not applicable
52 Views
2 Replies
Message 1 of 3

It is possible to use C++ functions in Flexscript?

robert_s3
Not applicable

[ FlexSim 20.1.0 ]

I tried to declare a function in a node defined as flexscipt. I used the same approach as in C++ where I declared a double() function that returns a value but syntax did not seem to work. Is there a way to declare functions in flexscript at all? Thank you!

Accepted solutions (1)
53 Views
2 Replies
Replies (2)
Message 2 of 3

regan_blackett
Autodesk
Autodesk
Accepted solution

You probably want to look into the "User Commands" write up in the manual. You can create your own FlexScript functions there with whatever parameters and return values you want.

Message 3 of 3

robert_s3
Not applicable

Perfect, this is exactly what I needed

0 Likes