<?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 Re: How to check the type of WTObject and run an expression in Windchill Customization</title>
    <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-check-the-type-of-WTObject-and-run-an-expression/m-p/493947#M5128</link>
    <description>&lt;P&gt;i approciated your reply&lt;/P&gt;
&lt;P&gt;thank you so much&lt;/P&gt;</description>
    <pubDate>Thu, 07 Dec 2017 23:53:51 GMT</pubDate>
    <dc:creator>CHASEONHO</dc:creator>
    <dc:date>2017-12-07T23:53:51Z</dc:date>
    <item>
      <title>How to check the type of WTObject and run an expression</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-check-the-type-of-WTObject-and-run-an-expression/m-p/493643#M5124</link>
      <description>&lt;P&gt;I wrote the following code in the expression but it does not run&lt;/P&gt;
&lt;PRE&gt;wt.fc.QueryResult qr= wt.maturity.MaturityHelper.service.getPromotionTargets(pn);

while (qr.hasMoreElements()) 
{
 if(qr.type.equals("EPMDocument")
  {
    wt.lifecycle.LifeCycleManaged lifeCycleManaged = (wt.lifecycle.LifeCycleManaged) qr.nextElement();
    wt.lifecycle.LifeCycleServerHelper.service.setState(lifeCycleManaged, wt.lifecycle.State.toState("DESIGNCHANGE"));
  }
}


&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;I want to check the type of the object and change the lifecycle state only if it is an EPMDocument&lt;BR /&gt;Can you help me please?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 14:42:54 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-check-the-type-of-WTObject-and-run-an-expression/m-p/493643#M5124</guid>
      <dc:creator>CHASEONHO</dc:creator>
      <dc:date>2024-03-15T14:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the type of WTObject and run an expression</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-check-the-type-of-WTObject-and-run-an-expression/m-p/493705#M5125</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a precise code (highlighted in red) for your reference. Thought I have demonstrated it for wt.part.WTPart type, you can use wt.epm.EPMDocument for&amp;nbsp;&lt;SPAN&gt;EPMDocument type.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;wt.fc.QueryResult qr= wt.maturity.MaturityHelper.service.getPromotionTargets(pn);
while (qr.hasMoreElements()) 
{
	wt.fc.WTObject  obj =(wt.fc.WTObject) qr.nextElement();
	&lt;FONT color="#FF0000"&gt;if(obj instanceof wt.part.WTPart){
		wt.part.WTPart prt = (wt.part.WTPart) obj;&lt;/FONT&gt;
		System.out.println("****** " + prt.getNumber());&lt;BR /&gt;                // Add you logic here
	}
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="PN Output.png" style="width: 937px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/3558iF6E4EC9EF150BE95/image-size/large?v=v2&amp;amp;px=999" role="button" title="PN Output.png" alt="PN Output.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="PN Output1.png" style="width: 702px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/3559iDF9FD50350C554DF/image-size/large?v=v2&amp;amp;px=999" role="button" title="PN Output1.png" alt="PN Output1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope it helps you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Shirish&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2017 14:22:22 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-check-the-type-of-WTObject-and-run-an-expression/m-p/493705#M5125</guid>
      <dc:creator>ShirishMorkhade</dc:creator>
      <dc:date>2017-12-06T14:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the type of WTObject and run an expression</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-check-the-type-of-WTObject-and-run-an-expression/m-p/493809#M5126</link>
      <description>&lt;P&gt;thank you!&lt;BR /&gt;Did you link Eclipse with PDMLink?&lt;BR /&gt;Can you tell me how?&lt;BR /&gt;It's okay to give me a link&lt;BR /&gt;Please.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 00:04:29 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-check-the-type-of-WTObject-and-run-an-expression/m-p/493809#M5126</guid>
      <dc:creator>CHASEONHO</dc:creator>
      <dc:date>2017-12-07T00:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the type of WTObject and run an expression</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-check-the-type-of-WTObject-and-run-an-expression/m-p/493835#M5127</link>
      <description>&lt;P&gt;Sure. here is the comamnd which guide you throught the step by step instructions to do this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; margin-left: .75in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN style="font-weight: bold; font-style: italic;"&gt;ant -f bin\tools.xml eclipse_project.help&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-left: .75in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN style="font-weight: bold; font-style: italic;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-left: .75in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN style="font-weight: bold; font-style: italic;"&gt;Copying below are the exact steps:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-left: .75in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;nbsp;[echo] 0) Install FileSync
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [echo]&amp;nbsp;&amp;nbsp;&amp;nbsp; a) Start Eclipse
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [echo]&amp;nbsp;&amp;nbsp;&amp;nbsp; b) Accept the default workspace (we'll, later, assign a different one)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [echo]&amp;nbsp;&amp;nbsp;&amp;nbsp; c) Select Help -&amp;gt; Install new software...
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [echo]&amp;nbsp;&amp;nbsp;&amp;nbsp; d) Click Add... (next to "Work with:")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [echo]&amp;nbsp;&amp;nbsp;&amp;nbsp; e) Set Name to FileSync and Location to http://andrei.gmxhome.de/eclipse/
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [echo]&amp;nbsp;&amp;nbsp;&amp;nbsp; f) Click OK, then wait until the "Pending..." text disappears
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [echo]&amp;nbsp;&amp;nbsp;&amp;nbsp; g) Type FileSync in the text are with the grayed-out text reading "type filter text"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [echo]&amp;nbsp;&amp;nbsp;&amp;nbsp; h) Select the FileSync for Eclipse 3.6 (currently under Eclipse 3.5 - 3.7 plugins)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [echo]&amp;nbsp;&amp;nbsp;&amp;nbsp; i) Click Next &amp;gt;, wait, then click Next &amp;gt; again
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [echo]&amp;nbsp;&amp;nbsp;&amp;nbsp; j) Select the "I accept the terms of the license agreement" radio button
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [echo]&amp;nbsp;&amp;nbsp;&amp;nbsp; k) Click Finish
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [echo]&amp;nbsp;&amp;nbsp;&amp;nbsp; l) OK the Security Warning
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [echo]&amp;nbsp;&amp;nbsp;&amp;nbsp; m) Click Not Now, then exit Eclipse.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [echo] 1) Run the eclipse_project task  
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [echo] 2) Launch Eclipse, specifying D:\ptc\Windchill_10.1\Windchill/../eclipse as the workspace
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [echo] 3) Import the cust_Windchill_src project
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [echo]&amp;nbsp;&amp;nbsp;&amp;nbsp; a) File -&amp;gt; Import... -&amp;gt; General -&amp;gt; Existing Projects into Workspace
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [echo]&amp;nbsp;&amp;nbsp;&amp;nbsp; b) Select Browse (next to "Select root directory") and click OK
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [echo]&amp;nbsp;&amp;nbsp;&amp;nbsp; c) Your project will be listed and checked; click Finish.&lt;/PRE&gt;
&lt;P style="margin: 0in; margin-left: .75in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; margin-left: .75in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN style="font-weight: bold; font-style: italic;"&gt;I hope it helps you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-left: .75in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; margin-left: .75in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN style="font-weight: bold; font-style: italic;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-left: .75in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN style="font-weight: bold; font-style: italic;"&gt;Shirish&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-left: .75in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 12:34:29 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-check-the-type-of-WTObject-and-run-an-expression/m-p/493835#M5127</guid>
      <dc:creator>ShirishMorkhade</dc:creator>
      <dc:date>2017-12-07T12:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the type of WTObject and run an expression</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-check-the-type-of-WTObject-and-run-an-expression/m-p/493947#M5128</link>
      <description>&lt;P&gt;i approciated your reply&lt;/P&gt;
&lt;P&gt;thank you so much&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 23:53:51 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-check-the-type-of-WTObject-and-run-an-expression/m-p/493947#M5128</guid>
      <dc:creator>CHASEONHO</dc:creator>
      <dc:date>2017-12-07T23:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the type of WTObject and run an expression</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-check-the-type-of-WTObject-and-run-an-expression/m-p/497664#M5129</link>
      <description>&lt;P&gt;Can you share the full screen of PNOutput?&lt;BR /&gt;I am wondering how you wrote the code to test it like a console when you linked Windchill in the Eclipse IDE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 05:56:39 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-check-the-type-of-WTObject-and-run-an-expression/m-p/497664#M5129</guid>
      <dc:creator>CHASEONHO</dc:creator>
      <dc:date>2018-01-17T05:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the type of WTObject and run an expression</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-check-the-type-of-WTObject-and-run-an-expression/m-p/611788#M5130</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Did you link Eclipse with PDMLink? is it working for you? i have tried same as below but not working&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;ant -f bin\tools.xml eclipse_project.help&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can any one help me on this, have tried but its not working&amp;nbsp; please share me if have any document how set up project in eclipse and run&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 12:19:18 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-check-the-type-of-WTObject-and-run-an-expression/m-p/611788#M5130</guid>
      <dc:creator>Kothai</dc:creator>
      <dc:date>2019-05-29T12:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the type of WTObject and run an expression</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-check-the-type-of-WTObject-and-run-an-expression/m-p/612577#M5131</link>
      <description>&lt;P&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/296938"&gt;@Kothai&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;Yes, I linked Eclipse with PDMLink and it is working absolutely fine for me. Only executing above command will not help here. This command only gives the instructions and you will have to perform those steps manually. This is one time activity and once done you're Eclipse will be configured with WC.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best luck!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Shirish&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 07:27:07 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-check-the-type-of-WTObject-and-run-an-expression/m-p/612577#M5131</guid>
      <dc:creator>ShirishMorkhade</dc:creator>
      <dc:date>2019-06-04T07:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the type of WTObject and run an expression</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-check-the-type-of-WTObject-and-run-an-expression/m-p/612607#M5132</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/238755"&gt;@ShirishMorkhade&lt;/a&gt;&amp;nbsp;&lt;SPAN class="UserName lia-user-name lia-user-rank-Level-10 lia-component-message-view-widget-author-username"&gt;&lt;A id="link_12" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.ptc.com/t5/user/viewprofilepage/user-id/238755" target="_self"&gt;&lt;SPAN class=""&gt;ShirishMorkhade,&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Level-10 lia-component-message-view-widget-author-username"&gt;&lt;SPAN class=""&gt;Thank you for responding my question ,but how can build and run the application from eclipse ,is there any configuration required? please let me know how&amp;nbsp; we will do ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 10:08:37 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-check-the-type-of-WTObject-and-run-an-expression/m-p/612607#M5132</guid>
      <dc:creator>Kothai</dc:creator>
      <dc:date>2019-06-04T10:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the type of WTObject and run an expression</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-check-the-type-of-WTObject-and-run-an-expression/m-p/1030689#M10345</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;is there any possibility of connecting debug mode from local machine to remote server ?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 13:21:36 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-check-the-type-of-WTObject-and-run-an-expression/m-p/1030689#M10345</guid>
      <dc:creator>ssg</dc:creator>
      <dc:date>2025-08-22T13:21:36Z</dc:date>
    </item>
  </channel>
</rss>

