title: Remove all elements not found in diagram in Enterprise Architect
body: <p>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).</p>
  
  <p>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?</p>
  
  <p>The alternative is to manually pick all dependencies and reverse only those files, which I may end up doing.</p>
  
  <p>Thanks</p>