Visio2000: Deleting UML Element Causes Phantom Relationships in Classes (278953)



The information in this article applies to:

  • Microsoft Visio 2000 Professional Edition
  • Microsoft Visio 2000 Enterprise Edition

This article was previously published under Q278953

SYMPTOMS

When you delete UML elements (for example, classes) from the UML Navigator in Microsoft Visio 2000, the relationships (for example, generalizations) in the UML model will remain "dangling", and corresponding errors appear in the error log window. Once you have entered this inconsistent state, it is difficult to correct.

RESOLUTION

Before you delete an element from the UML Navigator tree, you should know all the relationships that that element is in. In order to determine the relationships, follow these steps:
  1. Select the diagram window (not the UML Navigator) in Visio.
  2. On the UML menu, click Report.

    NOTE: Visio 2000 Professional Edition does not have Report capability. If you are running the Professional edition, you must drag all elements in the Static Model onto the diagram. Skip to step 5.
  3. Select UML Static Structure Report, and then click Preview.
  4. Find the element that you want to delete, and inspect it for other elements that have a relationship with it.
  5. Drag all of these elements, including the element that you want to delete onto the diagram surface. The relationships will become visible.
  6. Delete (or redirect) all relations away from the element that you want to delete.
  7. Delete the element from the UML Navigator.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

For additional information about a similar issue with reverse engineering, click the article number below to view the article in the Microsoft Knowledge Base:

278956 Visio2000: Phantom Relationships in Classes with VB6 to UML Reverse Engineering


Modification Type:MajorLast Reviewed:11/11/2000
Keywords:kbbug KB278953