question

Brandon H avatar image
0 Likes"
Brandon H asked Jeanette F commented

Resource to learn about reusing/making templates of things in a model

Goal: Find out where I can find a list of actions I can take to save and reuse multiple different parts of my model.

Issue: I have found resources on the FlexSim Docs site about User Libraries and how to use them but I am still finding myself searching for more resources on how I can save and reuse more of what I have built in my models. One example of something that I stumbled upon was how to use the "Edit Selected Objects" view to "Save File" as a Flexsim Tree and then "Load File" into another model.

Examples: Below are a few items that I would like to save externally to a model and reuse in others but do not have a good idea of how this should be done in FlexSim

- StatisticsCollectors and Calculated Tables
- Model Triggers and code in general
- Parameters
- Dashboards

I understand this is could be a large ask but I am mostly interested in being pointed in the right direction in terms of how best to handle each different type of information here for the purpose of reusing them elsewhere.

FlexSim 23.0.2
user library
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
1 Like"
Jason Lightfoot answered Brandon H commented

The model libraries node allows you manage custom libraries with shared code, global variables and macros with a bit more control. Unfortunately this doesn't cover all aspects of asset management that you might need like the object types you describe, or version control when trying to update a model with later asset versions, but it might get you closer to where you need to be.

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

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

All your examples are in more ways depending on coupling data or similar data structures. A coupling datatype is executing a procedure to establish a mutual connection in two attribute nodes in different objects. A template destroys such connections. And it has not any instructions automatically to reestablish them. It depends most time on your intentions, you would like to build in a new model. You would need a setup interface to reestablish those missing connections for all possible situations of use.
You can see currently provided items in libraries as universal optimized templates to achieve what you want to improve. You can build individually new templates, but lastly you get only a vast set of different variants.

· 3
5 |100000

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