question

Robert B11 avatar image
0 Likes"
Robert B11 asked Kavika F commented

function_s strg names

Can anyone tell me where i get the strg names for the function "function_s"

I already found "setDistAlongConveyor" but not more than that.

FlexSim 22.1.3
function_s
· 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.

Kavika F avatar image Kavika F ♦ commented ·

Hi @Robert B11, was Jordan Johnson's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Jordan Johnson avatar image
0 Likes"
Jordan Johnson answered Jason Lightfoot commented

There is no official list of available function_s() arguments. There are three ways to find the possible options:

  1. You can look in the eventfunctions attribute of an object, or in the eventfunctions node of its class object in the library. In addition, you can look at the eventfunctions attribute of the superclass in the library, or its superclass, etc.
  2. If you happen to have the source code for an object, you can look in its bind() function for the bindCallback() macro. For an example, look at Barrier.cpp in the AStar module. You can also look in MAIN:/project/exec/globals/includebody. A couple classes in that file use bindCallback().
  3. You can look at code in FlexSim and see what function_s() calls are present, and what gets passed in to them. This is the most difficult method, as the only clues for how to use the function_s are the strg name and where the function_s is called.

Be aware that any function_s() call you make may or may not work in future versions of FlexSim, so you may need to do some work to upgrade your model to a future version.

· 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.

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·

You might want to consider placing any function_s calls inside your own user commands such that if anything changes in the future you don't need to hunt through the model for all occurances making a large number of changes - you can just make the change in your user command.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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