Expressions in annotations with instance api #9453
Labels
COMP/GUI/InstBased Interface
Issues with new instantiation-based OMEdit feature
COMP/OMC/Interactive Environment
Projects
Milestone
Description
Right now the instance api just dumps the expressions in the annotation.
Steps to Reproduce
Calling
getModelInstance(IconVisible)
outputs,Click to expand output
Expected Behavior
Output both the original expression and the evaluated value.
Additional Context
One idea is to improve the
Expression
class in OMEdit to evaluate such expressions. I am not sure about this but @perost knows more since he implemented it. Not sure if we can handle all cases withExpression
class. For example, if the above model is used like this in another model,Then we need to apply the modifiers.
The text was updated successfully, but these errors were encountered: