User manual
Dymola 2013 FD01 Release notes 17
Summary
The matching constructor MatchVariable has the following fields:
record MatchVariable
String className="" "Classes to look in";
String name="*" "Regular expression for variable name";
String description="" "If non-empty, regular expressions that should exactly match description";
String tag[:]=fill("",0) "If non-empty, regular expressions that should exactly match any tag";
String newName ="" "New name";
end MatchVariable;
Regular expressions can be used in all fields.
The selection constructor is:
record Selection
String name;
MatchVariable match[:];
Boolean override=false;
end Selection;
Selection annotations can be included in several models not only on the top level. The
override attribute determines if selections with the same name found on lower hierarchical
levels of the model should be overridden or merged.
User Interface
In the variable browser, it is possible to get a list of all selections and marking which of
those selections that should be included in the variable tree:
The selection
Parameters and States is predefined corresponding to the interactive fields
for setting parameters and initial conditions of states.
If several selections have been defined:
model Selection7
annotation (__Dymola_selections={
Selection(name="Angles",
match={MatchVariable(name="*.phi", newName="%path%")}),
Selection(name="Torques",
match={MatchVariable(name="*.tau", newName="%path%")})});
end Selection7;