<?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: Check higher versions for Assembly components in Customization</title>
    <link>https://www.ptcusercommunity.com/t5/Customization/Check-higher-versions-for-Assembly-components/m-p/941711#M12972</link>
    <description>&lt;P&gt;Thank you for your information.&lt;/P&gt;&lt;P&gt;Finally I modified the program and could check every component.&lt;/P&gt;</description>
    <pubDate>Thu, 04 Apr 2024 14:35:54 GMT</pubDate>
    <dc:creator>aazkue</dc:creator>
    <dc:date>2024-04-04T14:35:54Z</dc:date>
    <item>
      <title>Check higher versions for Assembly components</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Check-higher-versions-for-Assembly-components/m-p/931818#M12869</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have an application in Java to check, before saving a model in CREO, if a higher version of the model exists, preventing saving in case it exists.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works for the active model. But if the active model is an assembly, and if a component has been modified, when saving the assembly, it checks the assembly’s version, but doesn’t control the versions of the components.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to know how to control the components’ versions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what we use for the model:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#333399"&gt;&lt;EM&gt;import com.ptc.pfc.pfcGlobal.pfcGlobal;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#333399"&gt;&lt;EM&gt;import com.ptc.pfc.pfcModel.Model;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#333399"&gt;&lt;EM&gt;import com.ptc.pfc.pfcSession.Session;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;Session curSession = pfcGlobal.GetProESession();&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;Model model = curSession.GetCurrentModel();&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Amaia&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 11:24:33 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Check-higher-versions-for-Assembly-components/m-p/931818#M12869</guid>
      <dc:creator>aazkue</dc:creator>
      <dc:date>2024-02-22T11:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Check higher versions for Assembly components</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Check-higher-versions-for-Assembly-components/m-p/934578#M12889</link>
      <description>&lt;P&gt;You need to traversal thru all sub-assemblies and parts and check it.&lt;/P&gt;
&lt;P&gt;The component (sub-assy or part) is a feature (model item) of the assembly.&lt;/P&gt;
&lt;P&gt;You can get components by pfcModelItem.ModelItemOwner.ListItems&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 06:18:47 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Check-higher-versions-for-Assembly-components/m-p/934578#M12889</guid>
      <dc:creator>YaroslavSin</dc:creator>
      <dc:date>2024-03-05T06:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Check higher versions for Assembly components</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Check-higher-versions-for-Assembly-components/m-p/941711#M12972</link>
      <description>&lt;P&gt;Thank you for your information.&lt;/P&gt;&lt;P&gt;Finally I modified the program and could check every component.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 14:35:54 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Check-higher-versions-for-Assembly-components/m-p/941711#M12972</guid>
      <dc:creator>aazkue</dc:creator>
      <dc:date>2024-04-04T14:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Check higher versions for Assembly components</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Check-higher-versions-for-Assembly-components/m-p/941844#M12973</link>
      <description>&lt;P&gt;Rather to traverse a whole assembly structure and waste CPU Time, you may think about to use the PRO_MDL_SAVE_POST_ALL notifier, which may give you exactly the models you are looking for. In that case, because of post, delete it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 07:30:59 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Check-higher-versions-for-Assembly-components/m-p/941844#M12973</guid>
      <dc:creator>RPN</dc:creator>
      <dc:date>2024-04-05T07:30:59Z</dc:date>
    </item>
  </channel>
</rss>

