Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#6414 closed defect (fixed)

Icon for user models doesn't show as expected

Reported by: sergniko@… Owned by: adeas31
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)

noconnectors.jpg (148.9 KB) - added by sergniko@… 3 years ago.
Screenshot of OMEdit. Compare user model with library one.

Download all attachments as: .zip

Change History (6)

Changed 3 years ago by sergniko@…

Screenshot of OMEdit. Compare user model with library one.

comment:1 Changed 3 years ago by casella

Please save the package and also attach the .mo file of your example, so we can reproduce the issue right away.

comment:2 Changed 3 years ago by adeas31

  • Milestone changed from NeedsInput to 1.17.0
  • Resolution set to fixed
  • Status changed from new to closed
  • Type changed from discussion to defect

Fixed via PR#7289.

comment:3 Changed 3 years ago by adeas31

Oh yeah and this should go in 1.17. I will port it.

comment:4 Changed 3 years ago by adeas31

PR#7290 port this to 1.17

comment:5 Changed 3 years ago by casella

@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.

Note: See TracTickets for help on using tickets.