Book a Demo

Author Topic: Show element list for diagrams  (Read 3631 times)

wuz

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Show element list for diagrams
« on: June 24, 2008, 12:54:43 am »
Hi all,

Sorry i have another list question ;-). In the project browser there exists the possibility to list all elements with rightklick->Show element list. Within this list one can even select another toolbox or technology for the filter option. Unfortunately i didn't spot this possibility to list all diagrams? any suggestions?

cheers

PS: I think it is time that ea getas a query mechanisms to simple export the desired elements without loosing their tree structure to an .xls document or something like that

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Show element list for diagrams
« Reply #1 on: June 24, 2008, 08:47:02 am »
Quote
PS: I think it is time that ea getas a query mechanisms to simple export the desired elements without loosing their tree structure to an .xls document or something like that
The CSV export can include tree structure, and any decent spreadsheet program should be able to import it.

What it doesn't do it include attributes etc.
« Last Edit: June 24, 2008, 08:48:27 am by simonm »

wuz

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Show element list for diagrams
« Reply #2 on: July 08, 2008, 01:26:44 am »
Thx for your help, the cs output looked very promising but unfortunately i did not find any possibility to constraint the exported results only to the diagrams to get a list of their names!

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: Show element list for diagrams
« Reply #3 on: July 08, 2008, 05:46:13 pm »
You could export to XMI 2.1 and then run a transformation like

Code: [Select]
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet  version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"  xmlns:uml = 'http://schema.omg.org/spec/UML/2.1'  xmlns:xmi = 'http://schema.omg.org/spec/XMI/2.1'>
      
      <xsl:output method="text" />
  
      <xsl:template match="/xmi:XMI" xmlns:xs="http://www.w3.org/2001/XMLSchema">

    <xsl:variable name="NewLine">
      <xsl:text>&#xD;&#xA;</xsl:text>
    </xsl:variable>
    
    <xsl:for-each select="descendant::diagram">

      <xsl:value-of select="properties/@name"/>
      <xsl:value-of select="$NewLine"/>
      
    </xsl:for-each>
    
      </xsl:template>
      
</xsl:stylesheet>

Dermot

  • EA Administrator
  • EA User
  • *****
  • Posts: 591
  • Karma: +7/-0
    • View Profile
Re: Show element list for diagrams
« Reply #4 on: July 09, 2008, 11:02:19 am »
In version 7.1  - in the Advanced Search  - there is an option to create a query by diagram - try Ctrl-F - Advanced.  If you are keen you can also set up a SQL query.