question

Robert S3 avatar image
1 Like"
Robert S3 asked Robert S3 commented

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

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!

FlexSim 20.1.0
flexscript
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

Regan Blackett avatar image
5 Likes"
Regan Blackett answered Robert S3 commented

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.

· 1
5 |100000

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

Robert S3 avatar image Robert S3 commented ·

Perfect, this is exactly what I needed

0 Likes 0 ·