Sparx Systems Forum
Enterprise Architect => Suggestions and Requests => Topic started by: danielku15 on July 17, 2008, 12:50:25 am
-
Hi.
Correct me if this feature exists. If you've got a lot of unused elements in your packages, you have to check each element if it is used in a Diagram (CTRL+U / Find in Diagram). If it is not used in any diagram, delete it.
Greets Daniel
-
There is a search named 'Find Orphans' that will help you with this.
-
As documented here:
http://www.sparxsystems.com.au/EAUserGuide/index.html?pre_defined_search_definitions.htm
HTH
-
If I want to search for orphans I only receive this error:
OraOLEDB [-2147217900]
ORA-01795: maximum number of expressions in a list is 1000
- Daniel
-
If I want to search for orphans I only receive this error:
OraOLEDB [-2147217900]
ORA-01795: maximum number of expressions in a list is 1000
That means you have found more than 1000 orphans in your model, and Oracle can't cope with the (single) query that attempts to get the display information for them all. Try modifying the Find Orphans search in the Manage Searches dialog to restrict the search a bit, maybe only searching for ObjectType="Class"...
-
Is there also a possibility to check if an element has a link to these orphans. Because not all interfaces are on my diagram, but the generalisation should not be deleted.
-
While Roy is right about the cause, please send in a bug report about the query failing.
If you open the relationships window or heirarchy window and scroll through the search results you can find out if they have any connectors. Neither will tell you if something is used as a classifier though.
-
Actually, it was Neil that scored the touch-down with the explanation. I was just shaking the Help pom-poms on the sideline.