User manual
10
A new variable declaration can only be added if there are no syntax errors in the Modelica
text.
3.2.3 The Split Model command enhanced and
improved
Model creation by copying, using the Split Model command, is now
supported
A new selection
Copy to model is available when using the split model command. (The
command is reached by right-clicking on selected objects and selecting
Split Model…, or by
Edit > Split Model…)
The selected objects will be copied to a new model.
General improvements
In addition to the above, the Split Model command has been improved in general:
• For all options (Create submodel, Move to base class, and Copy to model),
parameters used in the components are copied to the sub-system for more cases.
Previously they were only copied when the parameters or components of them were used
(“=p” and “=p.x”). Now this has been extended; parameters are now also copied when
used in arrays/matrices/simple arithmetic expressions.
• For all options (Create submodel, Move to base class, and Copy to model),
inner/outer components are now also copied to the sub-system. This is similar to
parameter handling. However, the alternative
Create submodel if necessary changes
inner/outer components to outer components, without any modifiers, in order to create
an appropriate submodel.