Opened 7 years ago
Closed 7 years ago
#4771 closed discussion (fixed)
Attribute dimension syntax
Reported by: | Owned by: | Adeel Asghar | |
---|---|---|---|
Priority: | high | Milestone: | 1.13.0 |
Component: | OMEdit | Version: | |
Keywords: | Cc: |
Description
Please consider the following model
model TestDimensions Modelica.Electrical.Analog.Basic.Ground ground1[3] annotation( Placement(visible = true, transformation(origin = {0, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); equation annotation(uses(Modelica(version = "trunk"))); end TestDimensions;
If I show the attributes of ground1
in the Diagram View, the field Dimensions shows: {3}
(see attachment)
I wonder why braces are used in the dimensions field instead of square brackets [3]
, as square brackets are used in the Modelica code, too. I am not sure if this is a bug or a feature.
Attachments (1)
Change History (6)
by , 7 years ago
Attachment: | TestDimensions.png added |
---|
comment:1 by , 7 years ago
The field name in the PNG file should have been ground1
, not ground
-- sorry.
comment:3 by , 7 years ago
Summary: | Attribute dimenion syntax → Attribute dimension syntax |
---|
comment:4 by , 7 years ago
Replying to Christian Kral <dr.christian.kral@…>:
Ticket title shall be
dimension
instead ofdimenion
Just fixed the title (didn't know I have permission to change the title)
comment:5 by , 7 years ago
Milestone: | Future → 1.13.0 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Fixed in 86eb441/OMEdit.
Attribute window