Description
Modified by beutlich on 23 Mar 2018 09:24 UTC
Sometimes users want to disable showing a public parameter from the dialog window because the parameter is hard to use, but keep it possible to modify it using the textual layer for models extending from the model.
Current ways to disable showing a parameter in the dialog pop-up:
- Make the modifier
final
(but then you can't modify it in textual layer) - Make the component
protected
(but then you can't modify it in textual layer) - Set
enable=false
(still shows it, but cannot be modified) - Make the component
constant
(removes it, but causes problems when you have array sizes which are parameters since you cannot easily mix parameters with constants)
What seems to be missing is simply hide=true
in the annotation (or giving special meaning for tab=""
), to not show the component in the Dialog pop-up.
Buildings/IBPSA used the approach to make the component constant
, but then models only work in tools which help the type-checking by evaluating certain parameter expressions and treating them as constant (or something similar).
Reported by sjoelund.se on 21 Oct 2017 05:10 UTC
Sometimes users want to disable showing a public parameter from the dialog window because the parameter is hard to use, but keep it possible to modify it using the textual layer for models extending from the model.
Current ways to disable showing a parameter in the dialog pop-up:
- Make the modifier
final
(but then you can't modify it in textual layer) - Make the component
protected
(but then you can't modify it in textual layer) - Set
enabled=false
(still shows it, but cannot be modified) - Make the component
constant
(removes it, but causes problems when you have array sizes which are parameters since you cannot easily mix parameters with constants)
What seems to be missing is simply hide=true
in the annotation (or giving special meaning for tab=""
), to not show the component in the Dialog pop-up.
Buildings/IBPSA used the approach to make the component constant
, but then models only work in tools which help the type-checking by evaluating certain parameter expressions and treating them as constant (or something similar).
Migrated-From: https://trac.modelica.org/Modelica/ticket/2211