<?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 create a new component in an assembly template? in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-create-a-new-component-in-an-assembly-template/m-p/10688001#M130031</link>
    <description>&lt;P&gt;I would have a similar question, I have to make sure that when I create a new assembly it also creates a part called Skel, preferably which will then be saved in the same destination as the assembly.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Oct 2021 12:06:28 GMT</pubDate>
    <dc:creator>tecnico</dc:creator>
    <dc:date>2021-10-14T12:06:28Z</dc:date>
    <item>
      <title>How to create a new component in an assembly template?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-create-a-new-component-in-an-assembly-template/m-p/9729880#M115560</link>
      <description>&lt;P&gt;Hi all and thanks in advance for any help given.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem that I am looking to solve is I'm sure quite simple. When creating a new assembly from a template file named "Hopper Fabrication.iam" I want to trigger the creation and placement of a new part from a template called "Master Hopper.ipt" and put it inside the new assembly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far I have the following&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oTemplate&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;"C:\Users\Public\Documents\Templates\Master Hopper.ipt"&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyDocument&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDocumentDefinition&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyComponentDefinition&lt;/SPAN&gt; = &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oTG&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;TransientGeometry&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;TransientGeometry&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oMatrix&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Matrix&lt;/SPAN&gt; = &lt;SPAN&gt;oTG&lt;/SPAN&gt;.&lt;SPAN&gt;CreateMatrix&lt;/SPAN&gt;
&lt;SPAN&gt;oDocumentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;Occurrences&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;oTemplate&lt;/SPAN&gt;,&lt;SPAN&gt;oMatrix&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;This is placing the actual template in rather than creating a new part based on the template rather than creating a new in-place compoent based on the named template&lt;BR /&gt;&lt;BR /&gt;Can anyone help me out please.&lt;BR /&gt;&lt;BR /&gt;Mike&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 13:54:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-create-a-new-component-in-an-assembly-template/m-p/9729880#M115560</guid>
      <dc:creator>mikejones</dc:creator>
      <dc:date>2020-09-04T13:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new component in an assembly template?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-create-a-new-component-in-an-assembly-template/m-p/9729912#M115563</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use code something like this creating a part using the defined template.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Set oPartDoc = ThisApplication.Documents.Add(kPartDocumentObject, oTemplate)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;sam&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 14:09:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-create-a-new-component-in-an-assembly-template/m-p/9729912#M115563</guid>
      <dc:creator>sam</dc:creator>
      <dc:date>2020-09-04T14:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new component in an assembly template?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-create-a-new-component-in-an-assembly-template/m-p/9729919#M115564</link>
      <description>&lt;P&gt;&lt;SPAN&gt;in your case while using vb.net/ilogic, this could work.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Dim oPartDoc as PartDocument = ThisApplication.Documents.Add(kPartDocumentObject, oTemplate)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;regards,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sam&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 14:11:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-create-a-new-component-in-an-assembly-template/m-p/9729919#M115564</guid>
      <dc:creator>sam</dc:creator>
      <dc:date>2020-09-04T14:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new component in an assembly template?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-create-a-new-component-in-an-assembly-template/m-p/9730103#M115569</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/436828"&gt;@mikejones&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The place new component command creates the new document invisible in Inventor and then places it into the assembly. It creates a document only in inventor memory, so no filepath exists meaning occurrences.add will not work.&lt;/P&gt;&lt;P&gt;You'll have to add by component definition. like this &lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@B4D44A73814D7FC0D950DEDFACB97081/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oTemplate&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"C:\Users\Public\Documents\Templates\Master Hopper.ipt"&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;AssemblyDocument&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ActiveDocument&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDocumentDefinition&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;AssemblyComponentDefinition&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oTG&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;TransientGeometry&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;TransientGeometry&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oMatrix&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Matrix&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oTG&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CreateMatrix&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;pDoc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PartDocument&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Documents&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;DocumentTypeEnum&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;kPartDocumentObject&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;oTemplate&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt;)
&lt;SPAN style="color: #800000;"&gt;oDocumentDefinition&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Occurrences&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;AddByComponentDefinition&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;pDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;oMatrix&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 15:33:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-create-a-new-component-in-an-assembly-template/m-p/9730103#M115569</guid>
      <dc:creator>JhoelForshav</dc:creator>
      <dc:date>2020-09-04T15:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new component in an assembly template?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-create-a-new-component-in-an-assembly-template/m-p/9730437#M115576</link>
      <description>&lt;P&gt;Thanks for the reply&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5330176"&gt;@JhoelForshav&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the code you suggested but it stops with the following error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error in rule: New Hopper, in document: Hopper Fabrication.iam&lt;/P&gt;&lt;P&gt;The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this from the More Info tab&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;System.ArgumentException: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))&lt;BR /&gt;at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData&amp;amp; msgData)&lt;BR /&gt;at Inventor.Documents.Add(DocumentTypeEnum DocumentType, String TemplateFileName, Boolean CreateVisible)&lt;BR /&gt;at ThisRule.Main()&lt;BR /&gt;at Autodesk.iLogic.Exec.AppDomExec.ExecRuleInAssembly(Assembly assem)&lt;BR /&gt;at iLogic.RuleEvalContainer.ExecRuleEval(String execRule)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 18:21:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-create-a-new-component-in-an-assembly-template/m-p/9730437#M115576</guid>
      <dc:creator>mikejones</dc:creator>
      <dc:date>2020-09-04T18:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new component in an assembly template?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-create-a-new-component-in-an-assembly-template/m-p/9730450#M115577</link>
      <description>&lt;P&gt;Actually&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5330176"&gt;@JhoelForshav&lt;/a&gt;&amp;nbsp; you're code works fine, there was a typo in the file name that I put in for the template so thank you very much for your help on this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 18:29:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-create-a-new-component-in-an-assembly-template/m-p/9730450#M115577</guid>
      <dc:creator>mikejones</dc:creator>
      <dc:date>2020-09-04T18:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new component in an assembly template?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-create-a-new-component-in-an-assembly-template/m-p/9731035#M115582</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5330176"&gt;@JhoelForshav&lt;/a&gt;. The code you gave me works great but I am having a problem in getting the new part file to save for the first time. Is there anything that can be added in the code to make sure that both the iam and ipt files will save together ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Sat, 05 Sep 2020 09:02:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-create-a-new-component-in-an-assembly-template/m-p/9731035#M115582</guid>
      <dc:creator>mikejones</dc:creator>
      <dc:date>2020-09-05T09:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new component in an assembly template?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-create-a-new-component-in-an-assembly-template/m-p/9731536#M115585</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/436828"&gt;@mikejones&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The document will save with the assembly as long as it has a filename. Since you haven't specified a filename for it yet, Inventor wouldn't know where to save it. You can just add a filepath to the document:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oTemplate&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"C:\Users\Public\Documents\Templates\Master Hopper.ipt"&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;AssemblyDocument&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ActiveDocument&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDocumentDefinition&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;AssemblyComponentDefinition&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oTG&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;TransientGeometry&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;TransientGeometry&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oMatrix&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Matrix&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oTG&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CreateMatrix&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;pDoc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PartDocument&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Documents&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;DocumentTypeEnum&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;kPartDocumentObject&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;oTemplate&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt;)
&lt;SPAN style="color: #800000;"&gt;pDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;FullFileName&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Path&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #008080;"&gt;"\some name.ipt"&lt;/SPAN&gt; &lt;SPAN style="color: #808080;"&gt;'Add a filepath&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oDocumentDefinition&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Occurrences&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;AddByComponentDefinition&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;pDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;oMatrix&lt;/SPAN&gt;)
&lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Save&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Of course, the assembly has to have a filepath aswell for the save command to work. But I'm assuming in this case it has already been saved at some time &lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@B4D44A73814D7FC0D950DEDFACB97081/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;&lt;P&gt;If you want to use SaveAs on the assembly that would work too anyways, but then you cannot use ThisDoc.Path before as in the example above, becase if the assembly hasn't been saved ThisDoc.Path is nothing.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Sep 2020 21:41:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-create-a-new-component-in-an-assembly-template/m-p/9731536#M115585</guid>
      <dc:creator>JhoelForshav</dc:creator>
      <dc:date>2020-09-05T21:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new component in an assembly template?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-create-a-new-component-in-an-assembly-template/m-p/10688001#M130031</link>
      <description>&lt;P&gt;I would have a similar question, I have to make sure that when I create a new assembly it also creates a part called Skel, preferably which will then be saved in the same destination as the assembly.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 12:06:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-create-a-new-component-in-an-assembly-template/m-p/10688001#M130031</guid>
      <dc:creator>tecnico</dc:creator>
      <dc:date>2021-10-14T12:06:28Z</dc:date>
    </item>
  </channel>
</rss>

