-
Notifications
You must be signed in to change notification settings - Fork 298
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
Hierarchical editing of models #2891
Comments
Original trac ticket: https://trac.openmodelica.org/OpenModelica/ticket/2891 |
Discussion with @adrpo, @adeas31 and @perost. All the required information is already provided by the new instance-based interface, which returns the information for the entire instance all the way down to the leaves. This is actually already used to support redeclares: when editing the parameters of a redeclare, among them one can find another replaceable class, and that works recursively. So, given the new inst-based infrastructure, most of the work is on the OMEdit GUI. Basically, the current editing is always referred to the top level anonymous node of the instance tree, the whole graphical rendering needs to be made parametric with respect of that reference node, that could be any component of the model, not just the top-level one. This could give access to the components in a graphical way (showing a diagram), where one can double-click on a component to change its parameter. Dymola calls this option "Show component", we could also name it "Edit component parameters" since it's not only showing. A further way to allow hierarchical editing is to show the instance tree in a separate window, that can be explored. Double-clicking on a node shows the corresponding diagram, right-clicking on it should allow to select a menu item to change the parameters of that node. |
BTW, we should also allow to edit the top-level parameters of a model. Currently, if you open this model in OMEdit model Test
parameter Real p = 1;
Modelica.Blocks.Sources.Constant const(k = 3) (
Placement(visible = true, transformation(origin = {-24, -14}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
end Test; you can change the value of the |
No description provided.
The text was updated successfully, but these errors were encountered: