Solved

Can't get the diamond shape in UML Composition (aggregation) shape in Visio

Posted on 2008-10-19
15
2,862 Views
Last Modified: 2012-06-22
has any one had this problem. I am using UML shapes in Visio. I tried both Visio 2000 and 2003. In both cases, the composition shape (which MS name for UML aggregation) comes out as a line with no head and end shape. I used format line and chose a number of different ending shapes. they show up in preview, but nothing gets applied to the shape on the page.

did I do something wrong? any one had better luck?
0
Comment
Question by:bhomass
  • 9
  • 6
15 Comments
 
LVL 30

Expert Comment

by:Scott Helmers
ID: 22757641
The issue is probably that this is not just an arrow, but it's a smart shape with various UML-related attributes programmed into it.

For example, if I open the shapesheet (a background data sheet that drives the behavior of the shape), the head of the arrow is preset to show a diamond (the "composite" symbol) and the end of the arrow is preset with the GUARD() formula, which prevents you from changing it through the normal user interface (you've already seen that this works!).

However, you can affect the presentation of the arrow in two ways:
  1. double-click the arrow, which opens a special dialog containing UML Association properties; in this dialog you can change the label at the ends of the arrow and indicate whether the aggregation at each end is shared, composite or none; you can change other properties here as well.
  2. right-click the shape and select Shape Display Options from the right-click menu
Let me know whether this helps.

0
 

Author Comment

by:bhomass
ID: 22759262
I was able to open the shapesheet. it has a lot of grids and formula. I am not able to make much sense out of it.

now when you say "double-click the arrow", I am already lost. the composition shape which I load onto the page does not any ending, so there is no arrow for me to double click. where do you say I should click?
0
 
LVL 30

Expert Comment

by:Scott Helmers
ID: 22762337
Sorry to confuse the issue by mentioning the shapesheet -- I wasn't suggesting that you needed to look at it, only that I had looked at it as part of figuring out what was going on.

Re double-clicking the arrow -- I guess we need to confirm that we're talking about the same shape. When I drag the shape called Composition onto the page, it looks like the shape below.
0
 
LVL 30

Expert Comment

by:Scott Helmers
ID: 22762365
...I accidentally sent the previous message before I was finished...

In the graphic below #1 is the composition shape; #2 is the result when I double-click on the arrow; #3 is the result of right-clicking and selecting Shape Display Options

Is this what you see?

Composition.jpg
0
 

Author Comment

by:bhomass
ID: 22764401
ok, so my visio is not behaving properly. when I drag the composition shape to the canvas, I get just a line, with no diamond head at all. And this happens on all three computers that I tried. I have two versions of visio, 2001 and 2003.

that is my question. why does it happen to me? anything I can be doing wrong?
0
 
LVL 30

Expert Comment

by:Scott Helmers
ID: 22776031
It's possible that the default settings for this shape are different on your PCs. There are a couple of ways the defaults could have been changed, but let's not worry about that. Let's see whether the shape is still working the way it's intended to...

If you double-click on the line, does dialog #2 above appear? If so, can you change the attributes? For example, click into the column labeled Aggregation for End1, then use the dropdown list to change the value to composite. When you click OK the diamond should appear. Does it?
0
 
LVL 30

Expert Comment

by:Scott Helmers
ID: 22776043
One other question -- if you click Help/About what version number does Visio show?
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 

Author Comment

by:bhomass
ID: 22778175
no, double clicking the line, nothing happens.

on help about, it says visio standard 2003.

what I don't understand is, I have a visio 2001 installed on another computer, and it is doing the same thing, no diamond ends. double click does nothing. there is something consistent about the way I ended up with this configuration.
0
 
LVL 30

Expert Comment

by:Scott Helmers
ID: 22779012
It's hard to guess how your PCs were set up or what might have happened afterwards.

However, I would suggest reinstalling Visio to see whether that takes care of the problem. Also, be sure you have the latest service packs for Visio. The latest for Visio 2003 is SP3
     http://www.microsoft.com/downloads/details.aspx?FamilyID=E25B7049-3E13-433B-B9D2-5E3C1132F206
   
0
 

Author Comment

by:bhomass
ID: 25455353
I have not been able to solve this problem. I think Scott for his effort. however, it would be misleading if I accept his solutions, because I don't know that they will help another person with this problem or not.

reinstalling visio did not work!
0
 
LVL 30

Expert Comment

by:Scott Helmers
ID: 25458511
bhomass -- I never returned to this question because I never heard back whether a reinstall of Visio helped. I now understand that it didn't.

How are you creating the UML drawing?
  1. Are you selecting File/New/Software/UML Model Diagram and then dragging a Composition shape onto the page?
  2. Or are you creating another type of drawing, say a flowchart, then opening one of the UML stencils and dragging a Composition shape onto the page?
This is a very important question because if you are doing #1, the Composition shape should behave as I described in my earlier posts. However, if you are using method #2, the Composition shape will behave similar to what you described, i.e., it will have no arrowheads and doubleclicking will not present the dialogs shown above. In fact, when I drag the Composition shape onto a flowchart page and doubleclick it I get the error shown below.



UMLerror.jpg
0
 

Author Comment

by:bhomass
ID: 25461965
I don' t have file/new/software. apparently I don't have the software stencils as a package. although I could search of a whole collection of uml shapes.

do you know how you got your 'software' bundle?
0
 
LVL 30

Accepted Solution

by:
Scott Helmers earned 50 total points
ID: 25462222
Because you have the UML shapes, it never occurred to me to ask -- do you have Visio Standard or Visio Professional?? Some templates, including the UML modeling template, are only included with Visio Pro.

There's a comparison chart here:
   http://office.microsoft.com/en-us/visio/FX102144891033.aspx#4

If you're not sure which edition you have, select Help/About, but it's beginning to look like you might have Standard not Professional.
0
 

Author Comment

by:bhomass
ID: 25462366
oh, mine, that's the mystery.

Thanks a lot!
0
 
LVL 30

Expert Comment

by:Scott Helmers
ID: 25462499
Sorry I didn't think of that a year ago!!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

A recent Visio zone question asked how to use the data in an Excel file to create a Visio Gantt chart -- and then to dynamically update the Gantt chart. The good news is that the Viso Gantt Chart wizard can be automated. The bad news is that the…
PaperPort has a feature called the "Send To Bar". It provides a convenient, drag-and-drop interface for using other installed software, such as Microsoft Office. However, this article shows that the latest Office 2016 apps (installed with an Office …
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now