Hans Olsson

Results 628 comments of Hans Olsson

There seems to be 21 (28-7) classes using showStartAttribute in MSL 4. There are about 598 classes using Dialog( and many of them are for non-paramters. Looking through the possibilities...

> Could it be that the cases when a non-parameter as `Dialog` but not `showStartAttribute = true` are typically `input` variables? Possibly. But I don't see that having to explicitly...

There is at least one relevant case where a non-parameter has DialogAnnotation and neither is an input nor should have showStartAttribute: Modelica.ComplexBlocks.Sources.ComplexExpression (there are likely additional cases like this). Clearly...

Note that the units also cause problems in Dymola and is not according to https://specification.modelica.org/master/unit-expressions.html - "each" is not a valid unit-string. I believe this is related to unit for...

> That code begs two questions: a) is there a better way than this (rather bloated) example to do this and b) is there in fact no good reason to...

> > > That code begs two questions: a) is there a better way than this (rather bloated) example to do this and b) is there in fact no good...

> Hans Olsson asked me to check in Dymola, and it is a mixed bag. Dymola can present icons in two sizes in the class browser. The bigger "icon view"...

Regarding 'year': one definition of year ('a' for annus) is the astronomical definition of 31,557,600 seconds (365.25 days - lead-seconds and the special leap-handling for some centuries not included).

To me it seems that the remaining issues are issues in the models and tool-issues. Clearly it is good that all tools show the same icons for this - but...