Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to modify parameters and replaceable classes of the model itself in OMEdit #8066

Open
casella opened this issue Oct 29, 2021 · 1 comment
Assignees
Milestone

Comments

@casella
Copy link
Contributor

casella commented Oct 29, 2021

Description

When visualizing a model's diagram, OMEdit allows to modify the parameter values of models instantiated within it, by double-clicking on their icons and showing parameter input masks. However, it does not allow to change the default values of the parameters of the model itself, which will also come in handy in many cases.

Steps to Reproduce

Open the following model

model ModifyParameters
  extends Modelica.Blocks.Interfaces.SO;
  parameter Real p = 10;
equation
  y = 2*p;
end ModifyParameters;

in OMEdit. The only way to change the value of p is to switch to the textual view and edit the code manually.

Expected Behavior

It would be good if one could right-click on the icon or diagram layers, select a menu item "Parameters" and then get the same kind of input window that one gets to change modifiers in instantiated components.

@adeas31, would you need a new API function to handle this?

@casella casella added this to the 1.20.0 milestone Nov 26, 2021
@casella
Copy link
Contributor Author

casella commented Nov 26, 2021

Probably also related to the structural changes needed to solve #2081

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants