Opened 4 years ago

Closed 4 years ago

#6093 closed defect (fixed)

Parameter records are not displayed correctly in Diagram View

Reported by: Christian Kral <dr.christian.kral@…> Owned by: adeas31
Priority: blocker Milestone: 1.17.0
Component: OMEdit Version: v1.16.0-dev
Keywords: Cc: adrpo

Description

This issue applies to:

Connected to OpenModelica 1.16.0~dev-601-gac457b2
Connected to OMSimulator unknown-linux

After opening the system library HanserModelica I double click through the simulation examples of the package HanserModelica.InductionMachines.

The icon of the parameter record is show correctly in:

  • HanserModelica.InductionMachines.IMC_Characteristics
  • partly HanserModelica.InductionMachines.IMC_Transformer

All other simulation examples in HanserModelica.InductionMachines show a crossed out icon instead, even though the models check OK. In model HanserModelica.InductionMachines.IMC_Steinmetz even some other icons are not displayed correctly.

Attachments (2)

IMC_Steinmetz.png (33.1 KB) - added by Christian Kral <dr.christian.kral@…> 4 years ago.
Diagram View of IMC_Steinmetz
IMC_Steinmetz-master.png (28.7 KB) - added by adeas31 4 years ago.

Download all attachments as: .zip

Change History (9)

Changed 4 years ago by Christian Kral <dr.christian.kral@…>

Diagram View of IMC_Steinmetz

comment:1 Changed 4 years ago by ceraolo

See also #4790

comment:2 Changed 4 years ago by Christian Kral <dr.christian.kral@…>

Additionally, some connectors of the icons are missing!

comment:3 Changed 4 years ago by casella

  • Cc adrpo added
  • Milestone changed from 1.16.0 to 1.17.0
  • Priority changed from high to blocker

I guess this should be fixed mandatorily in 1.17.0. This kind of issues sometimes happen for models that cannot be flattened, but that is clearly not the case here, probably we have an issue with some API function.

@adeas31, maybe you can help by pinpointing what is the API call that fails?

comment:4 Changed 4 years ago by adeas31

Seems duplicate of #6086

comment:5 Changed 4 years ago by casella

I'm not sure, #6086 refers to sub-components (e.g. connectors) which are not displayed at all, in this case there is a crossed-out icon.

Last edited 4 years ago by casella (previous) (diff)

Changed 4 years ago by adeas31

comment:6 Changed 4 years ago by adeas31

I just tested with the latest master and it seems to work fine. Didn't notice any red cross icon in any of the examples of HanserModelica.InductionMachines.

comment:7 Changed 4 years ago by casella

  • Resolution set to fixed
  • Status changed from new to closed

I confirm that.

The only remaining issue is that "%m" shows up instead of the actual value, see #5982. since the functionality is already working for icons, I guess this will be an easy fix.

Note: See TracTickets for help on using tickets.