Table of Contents


LESSON 12: Updating, importing and publishing a local submodel on Dinamica EGO


What will you learn?



Updating Local Submodels


At any time, the user can add or remove inputs and outputs or even change the combination of functors defining the submodel. The functor action bar of all functors within a submodel script exhibits additional options for exporting functor inputs and outputs. Exporting a new input or output can be performed following the steps below:




Below you can see two examples of updating the inputs and output ports of a local submodel.

Example 1


Example 2



Dinamica EGO comes with a set of icons from the Fat Cow Icon Set that can be used to customize the local submodels created by users. The icons come in size 16×16 and 32×32 pixels. The overall color of the icon chosen is automatically used to define the color of the functor representing the submodel on the graphical interface. The set of icons are usually installed in the folder IconSamples in your Dinamica EGO installation folder






Importing a Local Submodel Between Models


It is possible to copy local submodels definitions between models. Once the submodel is copied from one model to another, the submodels can be modified and updated independently.
You can copy a local submodel definition by dragging a local submodel from the functor library to the model presentation area. The process is similar to the instantiation of a regular functor.


It is also possible to copy the submodel definition by clicking on the Import submodel definition button on the functor library bar of the local submodel tab of the functor library. The definition of system submodel and system submodels can also be imported using the corresponding “Import submodel definition” button on the functor library bar of the submodel tab of the functor library.

Publishing a Local Submodel as a User Submodel


Once your local submodel is developed and fully tested, you can turn it into a user submodel.
To publish a local submodel into a user submodel, click on the Publish Submodel button on the submodel Submodel Options drop down menu located on the model toolbar.
Turning a local submodel into a user submodel makes reusing a submodel easier, the submodel will always be available to be used on your next models, but that implies in some drawbacks as well. You are fully responsible for the consequences of updating a user submodel. Unlike local submodels, your models will not carry a copy of a user submodel as part of their definition. So, if you change a user submodel in a way that breaks compatibility with the model using its definition, your models will not work anymore.

Congratulations, you have successfully completed this lesson!



Next Lesson
Back to Guidebook Start