<?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: Renaming parts with jlink in Customization</title>
    <link>https://www.ptcusercommunity.com/t5/Customization/Renaming-parts-with-jlink/m-p/573571#M7800</link>
    <description>&lt;P&gt;Hi, it's quite easy. It depends on your skill. If you are familiar with java then you need to learn how to develop and run jlink in creo. If you are not, you need first learn at least basics of java.&lt;/P&gt;
&lt;P&gt;Considering first option the guide for jlink is located in &amp;lt;creo_load_point&amp;gt;/Common Files/jlink/jlinkug.pdf&lt;/P&gt;
&lt;P&gt;I have post setup guide last year, but i can't find it know. There are all steps to achieve jlink running in creo.&lt;/P&gt;
&lt;P&gt;Once you run jlink, you just need to get model object and call rename method on it. Eg:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Session session = pfcGlobal.GetProESession();&lt;/P&gt;
&lt;P&gt;Model model = session.getCurrentModel();&lt;/P&gt;
&lt;P&gt;model.rename("newawesomename");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have any questions, feel free to ask. Good luck.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Sep 2018 11:28:17 GMT</pubDate>
    <dc:creator>sjuraj</dc:creator>
    <dc:date>2018-09-26T11:28:17Z</dc:date>
    <item>
      <title>Renaming parts with jlink</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Renaming-parts-with-jlink/m-p/563919#M7519</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to rename some parts using jlink.&lt;/P&gt;
&lt;P&gt;Has anyone already&amp;nbsp;done that? Or any suggestion on how to do it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jul 2018 14:16:42 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Renaming-parts-with-jlink/m-p/563919#M7519</guid>
      <dc:creator>vjoer</dc:creator>
      <dc:date>2018-07-31T14:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming parts with jlink</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Renaming-parts-with-jlink/m-p/573571#M7800</link>
      <description>&lt;P&gt;Hi, it's quite easy. It depends on your skill. If you are familiar with java then you need to learn how to develop and run jlink in creo. If you are not, you need first learn at least basics of java.&lt;/P&gt;
&lt;P&gt;Considering first option the guide for jlink is located in &amp;lt;creo_load_point&amp;gt;/Common Files/jlink/jlinkug.pdf&lt;/P&gt;
&lt;P&gt;I have post setup guide last year, but i can't find it know. There are all steps to achieve jlink running in creo.&lt;/P&gt;
&lt;P&gt;Once you run jlink, you just need to get model object and call rename method on it. Eg:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Session session = pfcGlobal.GetProESession();&lt;/P&gt;
&lt;P&gt;Model model = session.getCurrentModel();&lt;/P&gt;
&lt;P&gt;model.rename("newawesomename");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have any questions, feel free to ask. Good luck.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 11:28:17 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Renaming-parts-with-jlink/m-p/573571#M7800</guid>
      <dc:creator>sjuraj</dc:creator>
      <dc:date>2018-09-26T11:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming parts with jlink</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Renaming-parts-with-jlink/m-p/574865#M7816</link>
      <description>&lt;P&gt;Dear vjoer ,&lt;/P&gt;
&lt;P&gt;I have tried the below method ,Its worked for me .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;//Get the Session
Session session = pfcGlobal.GetProESession();
//Get the Active Model
Model mod=session.GetCurrentModel();&lt;BR /&gt;//Rename the Model in Session
//Rename&amp;nbsp;(String&amp;nbsp;NewName, /*optional*/ Boolean&amp;nbsp;RenameFilesToo)&amp;nbsp; from Jlink Doc
mod.Rename(NewFileName,false);&lt;/PRE&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Note from PTC&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;If the models are retrieved from a directory other than the current working directory the Models are renamed only in the session and not on disk&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks Regards,&lt;/P&gt;
&lt;P&gt;Dhini&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 10:52:46 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Renaming-parts-with-jlink/m-p/574865#M7816</guid>
      <dc:creator>ddhini</dc:creator>
      <dc:date>2018-10-04T10:52:46Z</dc:date>
    </item>
  </channel>
</rss>

