Book a Demo

Author Topic: How to delete an Association from the model?  (Read 4775 times)

ngong

  • EA User
  • **
  • Posts: 275
  • Karma: +2/-2
    • View Profile
How to delete an Association from the model?
« on: October 11, 2014, 02:16:07 am »
EA 11.1.1112
What I did:
put 2 classes on a class diagram, put an association in between.
deleted the association by right-clicking it and clicking on the red cross next to the word "Delete".
Deleted one class from the diagram by selecting it and using the delete button. (It is still part of the model)
Draw the deleted class from Project Browser back on the class diagram.

What I expected:
Two unrelated classes.

What I got:
The association appeared back, too. It is still part of the model. How can I definitely delete an association from the model?

Work around:
Put a third class on the diagram. Drag the association from one of the two other classes to the new one. Delete the new one by selecting it in Project Browser and using the right-click-Delete.

Any one to know a more straight forward way for deleting an association not only from a class diagram but from the model?
« Last Edit: October 11, 2014, 02:19:29 am by ngong »
Rolf

Paul Lotz

  • EA User
  • **
  • Posts: 248
  • Karma: +1/-0
    • View Profile
Re: How to delete an Association from the model?
« Reply #1 on: October 11, 2014, 04:24:20 am »
Well, I just select the connector, delete it, and pick the option to remove it from the model in the resulting dialog.

There is a help page called "Delete Connectors" (in v 10) that should help you with this.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: How to delete an Association from the model?
« Reply #2 on: October 11, 2014, 07:49:08 am »
Try Ctrl-Del.

q.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: How to delete an Association from the model?
« Reply #3 on: October 13, 2014, 09:36:40 am »
Go to Tools > Options > Links and tick the option "Prompt on connector deletes". Then select a connector that you want to delete, press Delete and a dialog will pop up. Here is where you can choose whether the Delete key will hide or really delete a connector. I recommend you set Delete to hide and then you use Ctrl+Delete to really delete, because that is how it works for diagram objects.
« Last Edit: October 13, 2014, 09:37:33 am by KP »
The Sparx Team
[email protected]