question

Jouky D avatar image
0 Likes"
Jouky D asked Matthew Gillespie commented

How to create pop up menus in new libraries?

Hello everyone.

After choosing an object (as the processor) of a library, I want to show some of the subobjects inside it as the pop up in the processor case:

1692709458390.png

How can we add this to not saturate the library with lots of objects and grouping them into one object type?

Thank you!

FlexSim 23.1.3
librarycustom libraryprocesses flow items
1692709458390.png (20.8 KiB)
· 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.

Matthew Gillespie avatar image Matthew Gillespie ♦♦ commented ·
Are you making a module or a user library?
0 Likes 0 ·
Jouky D avatar image Jouky D Matthew Gillespie ♦♦ commented ·
user library
0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Jouky D, was one of Matthew Gillespie's or Jason Lightfoot's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. 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 ·
Jouky D avatar image Jouky D Jeanette F ♦♦ commented ·
Sorry Jeanette, I was disconnected for 2 weeks. Thank you for accepting the answer for me!
0 Likes 0 ·

1 Answer

Matthew Gillespie avatar image
2 Likes"
Matthew Gillespie answered Gui Vaccaro commented

Here's an example where I put 4 user library objects under one entry in the library:

MyTaskExecuter.fsl

1693252458319.png

I added the 4 objects to the user library like normal. But then I created a new subnode in the object data of the user library and called it SubObjects. I then copied the 4 objects from under the user library and put them inside the SubObjects node and deleted the originals. Then I added the MyTaskExecuter object and added the subnodes you see above. The main thing is that in the configs node I made an object node for each of my 4 objects and have a droppath node that references it by path. Then I pointed the popOutChoices node of MyTaskExecuter at that configs node.


1693252458319.png (40.9 KiB)
mytaskexecuter.fsl (3.3 KiB)
· 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.

Felix Möhlmann avatar image Felix Möhlmann commented ·

Hi @Matthew Gillespie,

is it possible to combine the popout choices with a dropscript, i.e. executing a different script depending on which config is dropped into the model?

If I replace the droppath node with a dropscript it doesn't get executed and it defaults to dropping the parent object.

1738139164648.png

1 Like 1 ·
1738139164648.png (11.4 KiB)
Gui Vaccaro avatar image Gui Vaccaro Felix Möhlmann commented ·
Hello, @Matthew Gillespie ,

is there a way to combine popoutChoices with dropscript (please see the question from @Felix Möhlmann above).

Thank you.


0 Likes 0 ·
Matthew Gillespie avatar image Matthew Gillespie ♦♦ Felix Möhlmann commented ·

@Felix Möhlmann @Gui Vaccaro

Instead of having library objects under the SubObjects node you can put objects with dropscripts:

dropscriptlibrary.fsl

1740417758469.png

0 Likes 0 ·
Jouky D avatar image Jouky D commented ·
Thank you Matthew! (sorry for not accepting the answer I was out during two weeks).
0 Likes 0 ·