Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove all elements not found in diagram in Enterprise Architect

We have a large project and I am using Enterprise Architect version 10 to reverse engineer a small package within the project into UML for the purposes of refactoring. I want to only include elements that will be contained within the diagrams I am going to create (I know this is stupid, but we can't have 1 model to rule them all).

I would like to reverse all the source and then delete all elements that do not end up on my diagrams. Is there a way to do this? I know that I can find any given element in the diagrams from the GUI, so would there at least be a way to script this?

The alternative is to manually pick all dependencies and reverse only those files, which I may end up doing.

Thanks

like image 663
Ian Avatar asked Dec 13 '13 21:12

Ian


1 Answers

EA comes with a built-in search called "Find Orphans". This will list all elements that do not appear on a diagram. You can run this search (Ctrl+Alt+A, select "Diagram Searches" from the first list box and "Find Orphans" from the second list box and click Run), select all the results (Ctrl+A) and delete all (Ctrl+Del). However, this is at your own risk - there is nothing wrong with an element being in the model but not on any diagrams.

like image 115
chimp Avatar answered Oct 10 '22 05:10

chimp