- This topic has 4 replies, 3 voices, and was last updated 10 years, 10 months ago by support-tony.
-
AuthorPosts
-
David G. LibkeParticipantMyEclipse 2014 Build id: 12.0.0-20131202 changes diagram size from the MyEclipse->Preferences->UML2->Page Format settings,which I set to A2 Landscape.
The empty diagram is created as specified but when a number of objects have been added or when it is refreshed from model, it changes to a square diagram. In diagram->advanced there is a size property set to 100,100; what is the purpose of this property?
If the size property is the aspect ratio of the diagram then it should be set to the proper values according to the page format selection when the diagram is created. Changing the size value to 100,142, the aspect ratio for A2, does not effect the size of the diagram after it has changed or when refreshing an empty diagram.
When I set my page format in preferences, I expect it not to change when using a diagram.
Dave
support-pradeepMemberDave,
Sorry, your issue is not clear.
The empty diagram is created as specified but when a number of objects have been added or when it is refreshed from model, it changes to a square diagram
Can you please be more clear on the above mentioned issue ? Please mention the exact steps to help us replicate the issue at our end ?
Also, I couldn’t find the size property setting under Diagram->Advanced. I find ‘Width’ and ‘Height’ properties under Diagram properties(Properties view) > Graphics. Is that the one you are referencing ?
Sorry for the inconvenience caused.
David G. LibkeParticipantPradeep,
The size I was originally referring to can be found under Model->diagram->properties-advanced, whose values always are 100,100 independent of the page format selected in preferences. Changing these values to the A2 format ratio of 100, 142 changes the Properties->Graphics width and height values, but the reverse does not occur.
When I create the first virgin diagram in a project with my A2 page format preference and the diagram size and width height set to 100, 142 , the aspect ratio is maintained when I load preexisting model objects. In a project where I had initially created diagrams with MyEclispe’s default page format values, I have problems, even with the new A2 page format and diagram size and width height set to 100, 142, with the diagram’s aspect ratio changing from my preference to 100 x100 when I add objects or refresh from model.
I went to count the number of objects that cause the diagram to change to the square format when MyEclipse hanged, see its post. The 3 diagram with the problem (there maybe a fourth) are service with 21 objects, relmgmt with 38, and dto with 21. The A2 landscape ratio is maintained while adding objects one at a time until about object 18 when it changes to the square ratio.
Now that I have to create a new workspace, I will set the A0 landscape preference so that it will 38 objects before creating the first diagram and the size value to 100,142 before refreshing the diagram from the model.
These are the diagram values in umldi after creating the diagram:
<diagrams xmi:id=”_x-sUoJCBEeOODKyT6gILjA” position=”0,0″ size=”100,142″ name=”party” viewport=”0,0″>
<property xmi:id=”_yBslUJCBEeOODKyT6gILjA” key=”pageFormatName” value=”A0″/>
<property xmi:id=”_yBslUZCBEeOODKyT6gILjA” key=”diagramWidth” value=”3364″/>
<property xmi:id=”_yBslUpCBEeOODKyT6gILjA” key=”diagramHeight” value=”4756″/>
<property xmi:id=”_yBslU5CBEeOODKyT6gILjA” key=”pageMarginName” value=”No Margin”/>
<property xmi:id=”_yBslVJCBEeOODKyT6gILjA” key=”diagramTopMargin” value=”0″/>
<property xmi:id=”_yBslVZCBEeOODKyT6gILjA” key=”diagramBottomMargin” value=”0″/>
<property xmi:id=”_yBslVpCBEeOODKyT6gILjA” key=”diagramLeftMargin” value=”0″/>
<property xmi:id=”_yBslV5CBEeOODKyT6gILjA” key=”diagramRightMargin” value=”0″/>
<property xmi:id=”_yBslWJCBEeOODKyT6gILjA” key=”orientation” value=”landscape”/>These are the diagram values in umldi after a refresh from model:
<diagrams xmi:id=”_x-sUoJCBEeOODKyT6gILjA” position=”0,0″ size=”100,142″ name=”party” viewport=”0,0″>
<property xmi:id=”_yBslUJCBEeOODKyT6gILjA” key=”pageFormatName” value=””/>
<property xmi:id=”_yBslUZCBEeOODKyT6gILjA” key=”diagramWidth” value=”4791″/>
<property xmi:id=”_yBslUpCBEeOODKyT6gILjA” key=”diagramHeight” value=”3573″/>
<property xmi:id=”_yBslU5CBEeOODKyT6gILjA” key=”pageMarginName” value=”A0″/>
<property xmi:id=”_yBslVJCBEeOODKyT6gILjA” key=”diagramTopMargin” value=”0″/>
<property xmi:id=”_yBslVZCBEeOODKyT6gILjA” key=”diagramBottomMargin” value=”0″/>
<property xmi:id=”_yBslVpCBEeOODKyT6gILjA” key=”diagramLeftMargin” value=”0″/>
<property xmi:id=”_yBslV5CBEeOODKyT6gILjA” key=”diagramRightMargin” value=”0″/>
<property xmi:id=”_yBslWJCBEeOODKyT6gILjA” key=”orientation” value=”landscape”/>If there is a program need to change the size of the diagram to fit all the objects in it, then at least keep the aspect ratio in the resized diagram., the new values’ ratio is 100,134, and do not corrupt the pageFormatName and the pageMarginName values when doing the resize.
Closing MyEclipse, restoring the umldi file using a text editor (wordpad), and opening MyEclipse again displays the landscape diagram with plenty of room for more objects to be added. Different default page format produces different resized width and height values with the same corruption of pageFormatName and pageMarginName values.
I hope this helps more.
Dave
support-pradeepMemberDave,
Thanks for the details provided. We will investigate the issue and get back to you soon.
Sorry for the inconvenience caused.
support-tonyKeymasterDave,
Sorry about the delayed response. We’ve been taking a look at your various UML isses and have logged bugs for all of them. Sadly, the UML tools have been low priority recently, as they don’t have a high use by our customers. However, we will try to fix many of these issues in an upcoming release, though we don’t have a schedule for this yet.
We apologise for the inconvenience.
Regarding this particular issue you might find the context menu items useful. When right-clicking on the diagram “element” in the editor, you can select Auto-resize Page Format to ensure that the diagram shows all the elements within it. I hope this helps.
-
AuthorPosts