<?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 how to get creo view URL for a representation of CAD Document? in Windchill Customization</title>
    <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/how-to-get-creo-view-URL-for-a-representation-of-CAD-Document/m-p/907144#M790</link>
    <description>&lt;P&gt;HI all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using below API&amp;nbsp; I am able to get representations for EPM document. Is there any API to get creo view URL of a representation?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;VisualizationHelper visualizationHelper = new VisualizationHelper();&lt;BR /&gt;QueryResult epmReps = visualizationHelper.getRepresentations(epm);&lt;/P&gt;&lt;P&gt;&lt;FONT color="headerbuttontrackingcode"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Mar 2024 13:12:02 GMT</pubDate>
    <dc:creator>gmydoor-2</dc:creator>
    <dc:date>2024-03-15T13:12:02Z</dc:date>
    <item>
      <title>how to get creo view URL for a representation of CAD Document?</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/how-to-get-creo-view-URL-for-a-representation-of-CAD-Document/m-p/907144#M790</link>
      <description>&lt;P&gt;HI all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using below API&amp;nbsp; I am able to get representations for EPM document. Is there any API to get creo view URL of a representation?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;VisualizationHelper visualizationHelper = new VisualizationHelper();&lt;BR /&gt;QueryResult epmReps = visualizationHelper.getRepresentations(epm);&lt;/P&gt;&lt;P&gt;&lt;FONT color="headerbuttontrackingcode"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 13:12:02 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/how-to-get-creo-view-URL-for-a-representation-of-CAD-Document/m-p/907144#M790</guid>
      <dc:creator>gmydoor-2</dc:creator>
      <dc:date>2024-03-15T13:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to get creo view URL for a representation of CAD Document?</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/how-to-get-creo-view-URL-for-a-representation-of-CAD-Document/m-p/907171#M791</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/206899"&gt;@gmydoor-2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The result of&amp;nbsp;&lt;SPAN&gt;getRepresentations should contain files for Creo view.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you need to download them then use&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="java"&gt;try
{
	Representation defaultRep = RepresentationHelper.service.getDefaultRepresentation(cadDoc);
	Vector&amp;lt;ApplicationData&amp;gt; vectorOfAppData = ContentHelper.getContentListAll(defaultRep);
	Iterator&amp;lt;ApplicationData&amp;gt; appIter = vectorOfAppData.iterator();
	while (appIter.hasNext())
	{
		ApplicationData syAppData = appIter.next();
		ContentHolder holder = ContentHelper.service.getContents(defaultRep);
		final URL viewContentURL = WVSContentHelper.getViewContentURL(syAppData, holder);
		final URL downloadURL = WVSContentHelper.getDownloadURL(syAppData, holder);
	}
} catch (WTException | PropertyVetoException e)
{
	e.printStackTrace();
}
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PetrH&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 06:20:02 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/how-to-get-creo-view-URL-for-a-representation-of-CAD-Document/m-p/907171#M791</guid>
      <dc:creator>HelesicPetr</dc:creator>
      <dc:date>2023-10-19T06:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to get creo view URL for a representation of CAD Document?</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/how-to-get-creo-view-URL-for-a-representation-of-CAD-Document/m-p/908794#M792</link>
      <description>&lt;P&gt;Thanks for the response.&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/241117"&gt;@HelesicPetr&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2023 05:34:06 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/how-to-get-creo-view-URL-for-a-representation-of-CAD-Document/m-p/908794#M792</guid>
      <dc:creator>gmydoor-2</dc:creator>
      <dc:date>2023-10-27T05:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to get creo view URL for a representation of CAD Document?</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/how-to-get-creo-view-URL-for-a-representation-of-CAD-Document/m-p/970827#M8679</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/241117"&gt;@HelesicPetr&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an API to generate the creoview URL(creoview://?wcparams=...) that launches the Creo View application for a given list of part(s) with the version?&lt;/P&gt;&lt;P&gt;Note : There is this OOTB REST endpoint(../Windchill/servlet/rest/visualization/objects/) that does it with OID and version, just curious if it can be done via API and also for a list of parts.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 10:33:02 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/how-to-get-creo-view-URL-for-a-representation-of-CAD-Document/m-p/970827#M8679</guid>
      <dc:creator>MV_10441462</dc:creator>
      <dc:date>2024-09-11T10:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to get creo view URL for a representation of CAD Document?</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/how-to-get-creo-view-URL-for-a-representation-of-CAD-Document/m-p/970855#M8680</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/642430"&gt;@MV_10441462&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you check the open representation link, then you can see that the API has to exist&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HelesicPetr_0-1726057013200.png" style="width: 936px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/110308i9CC1F23819893B72/image-dimensions/936x185?v=v2" width="936" height="185" role="button" title="HelesicPetr_0-1726057013200.png" alt="HelesicPetr_0-1726057013200.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;PetrH&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 12:17:11 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/how-to-get-creo-view-URL-for-a-representation-of-CAD-Document/m-p/970855#M8680</guid>
      <dc:creator>HelesicPetr</dc:creator>
      <dc:date>2024-09-11T12:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to get creo view URL for a representation of CAD Document?</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/how-to-get-creo-view-URL-for-a-representation-of-CAD-Document/m-p/973619#M8750</link>
      <description>&lt;P&gt;Here's some code I wrote recently that returns a URL which opens the default representation of a given object in CreoView...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;public static String getCreoViewURL(WTObject object) {

		System.out.println("==&amp;gt; getCreoViewURL");
		String url = "";

		try {
			
			VisualizationHelper visualizationHelper = VisualizationHelper.newVisualizationHelper();
			QueryResult representations = visualizationHelper.getRepresentations(object);
			if (representations != null) {
				while (representations.hasMoreElements()) {
					Representation representation = (Representation) representations.nextElement();
					if (representation.isDefaultRepresentation()) {
						ContentHolder holder = ContentHelper.service.getContents(representation);
						String downloadURL = WVSContentHelper.getDownloadURLForType(holder, ContentRoleType.PRODUCT_VIEW_ED);
						url = "'/Windchill/wtcore/jsp/wvs/edrview.jsp?url=" + downloadURL + "&amp;amp;objref=OR%3A" + holder.toString() + "'";
					}
				}
			}
					
		} catch (Exception e) {
			System.out.println(e.getMessage());
		}
		
		System.out.println("&amp;lt;== getCreoViewURL");
		return url;
		
	}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 00:42:31 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/how-to-get-creo-view-URL-for-a-representation-of-CAD-Document/m-p/973619#M8750</guid>
      <dc:creator>GrahamV</dc:creator>
      <dc:date>2024-09-25T00:42:31Z</dc:date>
    </item>
  </channel>
</rss>

