question

Jouky D avatar image
0 Likes"
Jouky D asked Jason Lightfoot edited

How to find the possible function_s commands? DeleteSlotlabel?

Hello everyone,
I thought the functions to apply on function_s were located at behaviour of one of the classes of a node. However, addSlotLabel is not in any of the nodes. I don't know how to find some important commands as that. I need to deleteSlotLabel, but I could not find the correct command. So, my questions are the following:

  1. Is there a list or any way to find these sort of functions? (same question applied on applicationcommands or createinstance)
  2. How can I delete a slot label by flexscript?

Thank you!

FlexSim 23.2.1
slot labelscreateinstanceapplicationcommandfunction_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.

Jason Lightfoot avatar image Jason Lightfoot ♦♦ commented ·

Hi @Jouky D, was Jason Lightfoot'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 comment back to reopen your question.

0 Likes 0 ·

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot edited

You can either look through the classes or in this case I would inspect the GUI structure that does this and see what's being called. From that it appears that you can just destroy the slotLabel treenode that was returned by addSlotLabel.

Wherever possible avoid using function_s calls since FlexSim does not guarantee backward compatibility with them.

· 4
5 |100000

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

Jouky D avatar image Jouky D commented ·

Sorry, I was offline for a week. How can I inspect the GUI structure? Is the same as inspecting the treenode? Can you attach some image, please? Usually I found the behaviour of the object and see the "S" functions. But there are no addSlotLabel on the treenode (or I cannot find it). What if I want to know all the applicationcommand to see what sort of things can I create in FlexSim?

Thank you!

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Jouky D commented ·
Explore the gui structure by righclick the view and selecting - Explore Structure.
0 Likes 0 ·
Jouky D avatar image Jouky D Jason Lightfoot ♦♦ commented ·

Ok, I can see the eventfunctions which I will use for the function_s. But it doesn't solve my question: I can't find the addSlotLabel command and all the possibilities of applicationcommand function (sorry for repeating the same question, but I think these functions are very important to expand the possibilities of working better). Thank you!:D

0 Likes 0 ·
Show more comments