<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Windchill Relationtionship Report SQL SELECT in Windchill</title>
    <link>https://www.ptcusercommunity.com/t5/Windchill/Windchill-Relationtionship-Report-SQL-SELECT/m-p/68696#M8145</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to produce a Windchill relationship text-file report for all Pro/E CAD Documents (epmdocument), using an SQL SELECT statement (Oracle).&lt;/P&gt;&lt;P&gt;The output would include the following info:&lt;/P&gt;&lt;P&gt;DOCTYPE, NUMBER, Version, relationship-type, Related-DOCTYPE, Related-NUMBER, Related Version&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example output would be something like this:&lt;/P&gt;&lt;P&gt;ProE Versioned Part,12345.PRT,A.1,Associated Drawing,ProE Versioned Drawing,12345.DRW,B.5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am slightly familiar with the tables epmdocumentmaster and epmdocument.&lt;BR /&gt;But I don't know which table (and fields) contains the relationship (where-used) data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Windchill 9.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gerry Champoux&lt;/P&gt;&lt;P&gt;Williams International&lt;/P&gt;&lt;P&gt;Walled Lake, MI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 May 2018 11:46:00 GMT</pubDate>
    <dc:creator>gchampoux</dc:creator>
    <dc:date>2018-05-02T11:46:00Z</dc:date>
    <item>
      <title>Windchill Relationtionship Report SQL SELECT</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill/Windchill-Relationtionship-Report-SQL-SELECT/m-p/68696#M8145</link>
      <description>I would like to produce a Windchill relationship text-file report for all Pro/E CAD Documents (epmdocument), using an SQL SELECT statement (Oracle).The output would include the following info:DOCTYPE, NUMBER, Version, relationship-type, Related-DOCTYPE, Related-NUMBER, Related VersionExample</description>
      <pubDate>Wed, 02 May 2018 11:46:00 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill/Windchill-Relationtionship-Report-SQL-SELECT/m-p/68696#M8145</guid>
      <dc:creator>gchampoux</dc:creator>
      <dc:date>2018-05-02T11:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Windchill Relationtionship Report SQL SELECT</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill/Windchill-Relationtionship-Report-SQL-SELECT/m-p/68697#M8146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For ASM to Part , use EPMMemberLink&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select DISTINCT epm.cadname as "parent",epml.asstoredchildname as "child" from EPMMemberLink epml, epmdocumentmaster epm, epmdocument epmd&lt;/P&gt;&lt;P&gt;where epml.ida3a5=epmd.ida2a2 and epmd.ida3masterreference=epm.ida2a2 order by epm.cadname;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Part,ASM to Drawing, use EPMReferenceLink&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select DISTINCT epm.cadname as "parent",epml.asstoredchildname as "child" from EPMMemberLink epml, epmdocumentmaster epm, epmdocument epmd&lt;/P&gt;&lt;P&gt;where epml.ida3a5=epmd.ida2a2 and epmd.ida3masterreference=epm.ida2a2 order by epm.cadname;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Binesh Kumar&lt;/P&gt;&lt;P&gt;Medtronic MITG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2016 15:16:45 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill/Windchill-Relationtionship-Report-SQL-SELECT/m-p/68697#M8146</guid>
      <dc:creator>BineshKumar1</dc:creator>
      <dc:date>2016-04-26T15:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Windchill Relationtionship Report SQL SELECT</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill/Windchill-Relationtionship-Report-SQL-SELECT/m-p/68698#M8147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Binesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before I try these, I need a clarification:&lt;/P&gt;&lt;P&gt;Both select statements appear to be identical.&lt;BR /&gt;In the second select statement, you said that I should use EPMReferenceLink.&lt;BR /&gt;Is that all I need to change? Is that the only difference needed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gerry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 17:52:11 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill/Windchill-Relationtionship-Report-SQL-SELECT/m-p/68698#M8147</guid>
      <dc:creator>gchampoux</dc:creator>
      <dc:date>2016-04-27T17:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Windchill Relationtionship Report SQL SELECT</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill/Windchill-Relationtionship-Report-SQL-SELECT/m-p/68699#M8148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My bad, Gerry. I am sorry. I thought I changed it before I pasted it. In the second query just change the table to &lt;SPAN style="color: #3d3d3d; font-family: ff-din-web, Arial, sans-serif; font-size: 15px;"&gt;EPMReferenceLink/.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: ff-din-web, Arial, sans-serif; font-size: 15px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: ff-din-web, Arial, sans-serif; font-size: 15px;"&gt;The relationship remains the same.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: ff-din-web, Arial, sans-serif; font-size: 15px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: ff-din-web, Arial, sans-serif; font-size: 15px;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: ff-din-web, Arial, sans-serif; font-size: 15px;"&gt;Binesh&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 18:24:55 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill/Windchill-Relationtionship-Report-SQL-SELECT/m-p/68699#M8148</guid>
      <dc:creator>BineshKumar1</dc:creator>
      <dc:date>2016-04-27T18:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: Windchill Relationtionship Report SQL SELECT</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill/Windchill-Relationtionship-Report-SQL-SELECT/m-p/68700#M8149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Binesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I include the version (revision.iteration) info in the output for both epmdocuments?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gerry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 18:38:51 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill/Windchill-Relationtionship-Report-SQL-SELECT/m-p/68700#M8149</guid>
      <dc:creator>gchampoux</dc:creator>
      <dc:date>2016-04-27T18:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Windchill Relationtionship Report SQL SELECT</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill/Windchill-Relationtionship-Report-SQL-SELECT/m-p/68701#M8150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;epmd.VERSIONIDA2VERSIONINFO||'.'||epmd.ITERATIONIDA2ITERATIONINFO is where you can get the revision.iteration. They are stored in epmdocument table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Binesh Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 20:18:07 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill/Windchill-Relationtionship-Report-SQL-SELECT/m-p/68701#M8150</guid>
      <dc:creator>BineshKumar1</dc:creator>
      <dc:date>2016-04-27T20:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Windchill Relationtionship Report SQL SELECT</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill/Windchill-Relationtionship-Report-SQL-SELECT/m-p/543542#M54535</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am trying to the exact same thing as OP, but it seems that something is missing in the solution here. EPMReferenceLink gives you the link between the EPMDocument (Drawing) and the EPMDocumentMaster (Part), which means that you can find which exact version and iteration of the Drawing relates to a part, but not the exact version and iteration of that part.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Am I missing something here?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 21:32:02 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill/Windchill-Relationtionship-Report-SQL-SELECT/m-p/543542#M54535</guid>
      <dc:creator>bclark-2</dc:creator>
      <dc:date>2018-04-04T21:32:02Z</dc:date>
    </item>
  </channel>
</rss>

