question

Yokota T avatar image
0 Likes"
Yokota T asked Jason Lightfoot edited

Can I define a singleton object?

Hello all,

I am trying to create some custom objects and register it in the User Library.

Is it possible to define a singleton object (like AStarNavigator)?

If so, please let me know how to set it up.

Thank you.

FlexSim 22.0.10
custom object
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
2 Likes"
Jason Lightfoot answered Jason Lightfoot edited

You can using the dropscript of a dummy/stub object displayed in the library grid to first test if there is an instance and if so prevent the creation of a second instance, or you can prevent the user from accessing the object in the user library and have dependant object create it when they can't find one already in the model (like the navigators, Conveyor and Warehouse systems )

5 |100000

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

Joerg Vogel avatar image
1 Like"
Joerg Vogel answered
5 |100000

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

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.