<?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: Export Creo File without model tree history in 3D Part &amp; Assembly Design</title>
    <link>https://community.ptc.com/t5/3D-Part-Assembly-Design/Export-Creo-File-without-model-tree-history/m-p/666492#M71904</link>
    <description>&lt;P&gt;Shrinkwrap.&lt;/P&gt;
&lt;P&gt;FILE -SAVE AS - SHRINKWRAP.&lt;/P&gt;
&lt;P&gt;You'll need to experiment with the settings.&lt;/P&gt;</description>
    <pubDate>Mon, 18 May 2020 13:29:05 GMT</pubDate>
    <dc:creator>StephenW</dc:creator>
    <dc:date>2020-05-18T13:29:05Z</dc:date>
    <item>
      <title>Export Creo File without model tree history</title>
      <link>https://community.ptc.com/t5/3D-Part-Assembly-Design/Export-Creo-File-without-model-tree-history/m-p/666491#M71903</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to save a Creo file without the model tree history?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to send a large assembly in Creo format to a client, but I don't want him to have access to the parametrization.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know I can save as a step or igs and then convert to creo again, but I'm wondering if there is a more direct way to do this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 13:26:27 GMT</pubDate>
      <guid>https://community.ptc.com/t5/3D-Part-Assembly-Design/Export-Creo-File-without-model-tree-history/m-p/666491#M71903</guid>
      <dc:creator>hdasilva</dc:creator>
      <dc:date>2020-05-18T13:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Export Creo File without model tree history</title>
      <link>https://community.ptc.com/t5/3D-Part-Assembly-Design/Export-Creo-File-without-model-tree-history/m-p/666492#M71904</link>
      <description>&lt;P&gt;Shrinkwrap.&lt;/P&gt;
&lt;P&gt;FILE -SAVE AS - SHRINKWRAP.&lt;/P&gt;
&lt;P&gt;You'll need to experiment with the settings.&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 13:29:05 GMT</pubDate>
      <guid>https://community.ptc.com/t5/3D-Part-Assembly-Design/Export-Creo-File-without-model-tree-history/m-p/666492#M71904</guid>
      <dc:creator>StephenW</dc:creator>
      <dc:date>2020-05-18T13:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Export Creo File without model tree history</title>
      <link>https://community.ptc.com/t5/3D-Part-Assembly-Design/Export-Creo-File-without-model-tree-history/m-p/666509#M71905</link>
      <description>&lt;P&gt;Depending on the end goal... a NEUTRAL File -- disabling the Parameters and Annotations works pretty well also..&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 14:14:59 GMT</pubDate>
      <guid>https://community.ptc.com/t5/3D-Part-Assembly-Design/Export-Creo-File-without-model-tree-history/m-p/666509#M71905</guid>
      <dc:creator>DavidBigelow</dc:creator>
      <dc:date>2020-05-18T14:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Export Creo File without model tree history</title>
      <link>https://community.ptc.com/t5/3D-Part-Assembly-Design/Export-Creo-File-without-model-tree-history/m-p/666761#M71906</link>
      <description>&lt;P&gt;I have tried both options, neutral file and shrinkwrap.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Shrinkwrap doesn't work for me because it merges all parts and asm into one solid.&lt;/P&gt;
&lt;P&gt;I need my client to have access to all parts and asm separately.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm still battling with neutral file, I think it can do the job, the problem is when I open the neutral asm, it prompts a windows to import each part and I have hundreds. I'm trying to get through this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 14:40:10 GMT</pubDate>
      <guid>https://community.ptc.com/t5/3D-Part-Assembly-Design/Export-Creo-File-without-model-tree-history/m-p/666761#M71906</guid>
      <dc:creator>hdasilva</dc:creator>
      <dc:date>2020-05-19T14:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Export Creo File without model tree history</title>
      <link>https://community.ptc.com/t5/3D-Part-Assembly-Design/Export-Creo-File-without-model-tree-history/m-p/666765#M71907</link>
      <description>&lt;P&gt;Ok, I just have to unselect the option "Customize layers" when importing:&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 14:51:35 GMT</pubDate>
      <guid>https://community.ptc.com/t5/3D-Part-Assembly-Design/Export-Creo-File-without-model-tree-history/m-p/666765#M71907</guid>
      <dc:creator>hdasilva</dc:creator>
      <dc:date>2020-05-19T14:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Export Creo File without model tree history</title>
      <link>https://community.ptc.com/t5/3D-Part-Assembly-Design/Export-Creo-File-without-model-tree-history/m-p/666774#M71908</link>
      <description>&lt;P&gt;Hmm - is should only be prompting for the first import... assuming you have one (1) neutral file assembly....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use &lt;A href="http://www.creoson.com" target="_blank" rel="noopener"&gt;CREOSON&lt;/A&gt; pretty easy to do this and avoid some of the prompting -- there are options in&amp;nbsp;&lt;A href="http://www.creoson.com" target="_blank" rel="noopener"&gt;CREOSON&amp;nbsp;&lt;/A&gt;for import type.&amp;nbsp; &amp;nbsp;For example - this can be copy/pasted to the PlayGround and run - with modifications on your end for the file names:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;let intObj = new creo.InterfaceObj();

    intObj.filename = 'testasm1.neu';
    intObj.type = "NEUTRAL"
    intObj.new_name = "imported_asy"
    
    intObj.import_file();
    
let fileObj = new creo.FileObj();
    fileObj.file = "imported_asy.asm"
    fileObj.display = true;
    fileObj.activate = true;
    fileObj.open();
    &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are trying to automate the import of &lt;STRONG&gt;multiple&lt;/STRONG&gt; NEUTRAL files ... you can also do this&amp;nbsp;&lt;A href="http://www.creoson.com" target="_blank" rel="noopener"&gt;CREOSON&lt;/A&gt; pretty easily.&amp;nbsp; But the model type of the imported feature is more important for your results.&amp;nbsp; Meaning it is a good idea to know a specific model name being reimported was a part or assembly to keep things in line.&amp;nbsp; Also - what to do after the import (save, etc.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a generic script that loops through each neutral file in your current working directory and imports into Creo.&amp;nbsp; Again - this is not considering the type of import - just defaulting to&amp;nbsp;&lt;A href="http://www.creoson.com" target="_blank" rel="noopener"&gt;CREOSON&lt;/A&gt;&amp;nbsp;import new_model_type of ASM.&amp;nbsp; This is a framework - not production. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;function processItem(itemName) {
    let intObj = new creo.InterfaceObj();

    intObj.filename = itemName
    intObj.type = "NEUTRAL"
    intObj.new_name = itemName.split('.')[0];
    
    return intObj.import_file();
}


function batchFiles () {

    let creoObj = new creo.CreoObj();
    let creosonUtilObj = new creo.CreosonUtils();

    creoObj.filename = "*.neu";  // &amp;lt;&amp;lt;-- ENTER CREO FILE (*) and EXTENSION
    
    creoObj.list_files()
        .then(function (respObj) {
            return creosonUtilObj.loopItems(respObj.filelist, processItem)
        })
        .then(function () {
            alert("Finished Batching!");
        })
        .catch((err) =&amp;gt; {
            alert('ERROR: '+err);
        });

}



// START THE BATCH PROCESS!
batchFiles();

&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dave&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 15:17:01 GMT</pubDate>
      <guid>https://community.ptc.com/t5/3D-Part-Assembly-Design/Export-Creo-File-without-model-tree-history/m-p/666774#M71908</guid>
      <dc:creator>DavidBigelow</dc:creator>
      <dc:date>2020-05-19T15:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Export Creo File without model tree history</title>
      <link>https://community.ptc.com/t5/3D-Part-Assembly-Design/Export-Creo-File-without-model-tree-history/m-p/666901#M71909</link>
      <description>&lt;P&gt;I resolved the problem of the prompts by unselecting the option &lt;SPAN&gt;"Customize layers" when importing:&lt;/SPAN&gt;".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But your code might be useful for other imports&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 07:43:53 GMT</pubDate>
      <guid>https://community.ptc.com/t5/3D-Part-Assembly-Design/Export-Creo-File-without-model-tree-history/m-p/666901#M71909</guid>
      <dc:creator>hdasilva</dc:creator>
      <dc:date>2020-05-20T07:43:53Z</dc:date>
    </item>
  </channel>
</rss>

