Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
submodels [2016/07/21 20:27]
hermann [Submodels]
submodels [2017/07/05 20:43] (current)
admin [Creating Local Submodels]
Line 35: Line 35:
 ==== Where Local Submodels Are Stored ==== ==== Where Local Submodels Are Stored ====
  
-Local submodels are stored in a folder based on the model name. If the model containing the local submodel is named ''​simulation model.egoml'',​ its local submodels will be stored in a subfolder called ''​simulation model_egoml_Submodels''​. Basically, the name construction algorithm just replaces "​."​ with "​_"​ and appends "​_Submodels"​ to the name.+Local submodels are stored in a folder based on the model name. If the model containing the local submodel is named ''​simulation model.egoml'',​ its local submodels will be stored in a subfolder called ''​simulation model_egoml_Submodels''​. Basically, the name construction algorithm just replaces "​."​ with "​_"​ and appends "​_Submodels"​ to the name. Using a unique submodel folder for each model guarantees that submodels from one model are completely independent from the submodels from any other model. Local submodels can also be defined in a folder called "​Submodels"​ located in the same folder where the model file is located, and shared shared among all the models located in that folder. However, the folder is automatically converted into an unique submodel folder when the model is saved by the graphical interface. 
 + 
 +User submodels are stored typically in the folder ''​c:​\<​User>​\Documents\Dinamica EGO\Submodels''​. 
 + 
 +Store submodels are stored typically in the folder ''​c:​\<​User>​\AppData\Local\Dinamica EGO\StoreSubmodels''​.
  
-Using a unique submodel folder for each model guarantees that submodels from one model are completely independent from the submodels from any other model. 
  
 ===== Creating Local Submodels ===== ===== Creating Local Submodels =====
Line 43: Line 46:
 Local submodels can be created by simply selecting the parts of a model that will be converted to a submodel and choosing the menu Edit => Create Submodel. The selection will be replaced by the new submodel and the visual representation of the new submodel will be available to be edited as a new tab on the script editor. Local submodels can be created by simply selecting the parts of a model that will be converted to a submodel and choosing the menu Edit => Create Submodel. The selection will be replaced by the new submodel and the visual representation of the new submodel will be available to be edited as a new tab on the script editor.
  
-At any time, the user can make changes to the local submodel and choose update ​"Apply changes / Update Submodel Properties"​ on the [[model toolbar]]. See more information about updating a local submodel on the next sections.+At any time, the user can make changes to the local submodel and apply those changes clicking on "Apply changes / Update Submodel Properties"​ on the [[model toolbar]]. See more information about updating a local submodel on the next sections.
  
 It is also possible to select parts of a local submodel and create another local submodel using that selection. The new local submodel will be a dependency of the previous one, but the submodel creation process is basically the same. It is also possible to select parts of a local submodel and create another local submodel using that selection. The new local submodel will be a dependency of the previous one, but the submodel creation process is basically the same.