User manual
14
Including several variables in the selection can be made by using | in the regular expression
for name:
model Selection3
annotation (__Dymola_selections={
Selection(name="MySelection",
match={ MatchVariable (name="*.(phi|tau)", newName="%path%")})});
end Selection3;
Resulting in:
Alternatively of using |, several matchings can be used. They are or’ed.
model Selection4
annotation (__Dymola_selections={
Selection(name="MySelection",
match={ MatchVariable (name="*.phi", newName="%path%"),
MatchVariable (name="*.tau", newName="%path%")})});
end Selection4;
It is possible to build subtrees, by including a subtree name in the newName path: