#6414 closed defect (fixed)
Icon for user models doesn't show as expected
Reported by: | Owned by: | Adeel Asghar | |
---|---|---|---|
Priority: | high | Milestone: | 1.17.0 |
Component: | OMEdit | Version: | v1.17.0-dev |
Keywords: | Cc: |
Description
I am using OpenModelica v1.17.0-dev.beta3 (64-bit) on Windows 7 with MSL 4.0.0.
I am trying to learn how to create my own blocks/models.
I've created a package and add a new model in it.
I want to extend SweptVolume from Fluid library.
I've copied all the text from SweptVolume model to my model. Changed "SI.Area" to "Modelica.Units.SI.Area" and "SI.Volume" too. (I have no idea why it's working in Fluid library, but in my model don't).
I save my model.
I created a new model and add my model by dragging it from my pack.
And now I got a model icon with only one mechanical connector, no fluid ports, no heat port. In icon view they present even on small icon in library tree view i can see them, but not on my model diagram view. I placed SweptVolume next to it - all is working fine - all connectors in place.
What I am doing wrong?
Is there are some kind of hidden parameters?
I double click on SweptVolume block - nice window with all parameters: area, media etc.
I double click on my model - only two parameters... But text of my model is identical to SweptVolume...
What I am missing? And there I can get that?
I am add and screenshot - on the left is my model.
New frontend is on, replaceable support is on.
Attachments (1)
Change History (6)
by , 4 years ago
Attachment: | noconnectors.jpg added |
---|
comment:1 by , 4 years ago
Please save the package and also attach the .mo file of your example, so we can reproduce the issue right away.
comment:2 by , 4 years ago
Milestone: | NeedsInput → 1.17.0 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Type: | discussion → defect |
Fixed via PR#7289.
comment:5 by , 4 years ago
@sergniko, please double check this works for you with the next 1.17.0 beta or final released 1.17.0 version. If it doesn't, please reopen the ticket.
Screenshot of OMEdit. Compare user model with library one.