<?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: Make assembly via excel in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/make-assembly-via-excel/m-p/11582023#M30411</link>
    <description>&lt;P&gt;What you could do is make a copy of the excel and put it in the same folder as the assembly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you could say that excel sheet is located at that place&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;Datasheet&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; &lt;BR /&gt;if Thisdoc.path&amp;nbsp;= "" then&lt;BR /&gt;Datasheet = &lt;SPAN&gt;"I:\Workspace\Bibliotheek\Gielkens\Templates grafstenen\Test excel\test.xlsx"&lt;BR /&gt;Else&lt;BR /&gt;Datasheet = Thisdoc.Path&lt;BR /&gt;End if&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Nov 2022 11:17:43 GMT</pubDate>
    <dc:creator>TechInventor20</dc:creator>
    <dc:date>2022-11-28T11:17:43Z</dc:date>
    <item>
      <title>Make assembly via excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/make-assembly-via-excel/m-p/11561598#M30402</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Working at a company where we make gravestones, I'm the one drawing them and then they go to shop and overthere all is made. In the process of making it quicker to work I've made some assemblies which are driven by a part that has a sketch in it and this sketch I linked to a form so that in my assembly environment I can call up this form via iLogic, fill out all the dimensions and then update the assembly and the complete stone is ready for production.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_462.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1141388iEA45A7A80F51FDB9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_462.png" alt="Screenshot_462.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All the base part are always the same. The only things that change are the headstone and the plate (red arrows)&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-inline" image-alt="Screenshot_463.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1141389i3DC14C68149DCFA0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_463.png" alt="Screenshot_463.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I know I can link all the parameters to an excel file and from there I can drive the model. But is there also a way that in the excel file I can choose the headstone and the plate so my assembly is immediatly correct.&lt;/P&gt;&lt;P&gt;Now I still go into my assembly, and replace the headstone and plate manually.&lt;/P&gt;&lt;P&gt;We have about 350 headstones and 150 plates.&lt;/P&gt;&lt;P&gt;This would be handy for me but also for my boss for when I'm not in the office and we have customers, he quickly can show how the stone would look like.&lt;/P&gt;&lt;P&gt;In an ideal world I would make the excel file, fill out all the dimensions (like I do now in my form) and the maybe from a dropdown list I would be able to choose the correct headstone and plate&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-inline" image-alt="Screenshot_464.png" style="width: 416px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1141397iCC5BA037ECC81F03/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_464.png" alt="Screenshot_464.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then do the update in Inventor and the complete assembly would be ready.&lt;/P&gt;&lt;P&gt;If this should work, I know it will take some time to get all the headstone and plates in all the excel files and link them somehow to Inventor, but in the end it'll pay off.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 10:02:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/make-assembly-via-excel/m-p/11561598#M30402</guid>
      <dc:creator>berry.lejeune</dc:creator>
      <dc:date>2022-11-18T10:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Make assembly via excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/make-assembly-via-excel/m-p/11561710#M30403</link>
      <description>&lt;P&gt;Goedemiddag,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Parts;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is definently possible.&lt;/P&gt;&lt;P&gt;An easy way of doing this while staying within the Inventor UI, is making iParts. Try doing the following;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Under the 'Manage' Tab, there should be an option called 'create iPart', here you can select all the parameters you want to predifine per gravestone. After completing this you can simply select your gravestone and it will be drawn according to the specific values. This can be done through the Excel spreadsheet or within the iPart UI table, ofcourse Excel is more flexible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Watch the link for a tutorial;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=Lm0DYRpQzzQ" target="_blank" rel="noopener"&gt;https://www.youtube.com/watch?v=Lm0DYRpQzzQ&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Assembly;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is also possible. You need to write some iLogic to import the parts you want into an assembly. In addition you can use iMates to make sure all the parts end up in the right position.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recently did this with electric motor assemblies consisting of 7 parts which all have over 20 subvariants, so the combinations are endless. I gave iMates to the 7x20 = 140 parts and now i can make whatever combination i want with the click of a button, ofcourse defining the iMates still takes some time but in the long run it does pay off.&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 11:27:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/make-assembly-via-excel/m-p/11561710#M30403</guid>
      <dc:creator>Daan_M</dc:creator>
      <dc:date>2022-11-18T11:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Make assembly via excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/make-assembly-via-excel/m-p/11561739#M30404</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Simple way is to have all the 350 stones at one place in the same folder.&lt;/P&gt;&lt;P&gt;Then name them exactly like you have in excel. That way you could say.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;;edit&lt;/P&gt;&lt;P&gt;I did not test the code, currently not in inventor to test it. Hope I set you up in the right direction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim Datasheet as string = "Your excel location + excel name"&lt;BR /&gt;Dim Sheet as string = "Name of sheet"&lt;BR /&gt;Dim Headstone_Excel as string = GoExcel.&lt;/SPAN&gt;&lt;SPAN&gt;CellValue&lt;/SPAN&gt;(&lt;SPAN&gt;Datasheet&lt;/SPAN&gt;, &lt;SPAN&gt;Sheet&lt;/SPAN&gt;, "A1")&lt;BR /&gt;&lt;SPAN&gt;Dim File_locations as string = "The location of your files"&lt;BR /&gt;&lt;BR /&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;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt; &lt;BR /&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oComps&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ComponentOccurrences&lt;/SPAN&gt; = &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;Occurrences&lt;/SPAN&gt; &lt;BR /&gt;&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oComp&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ComponentOccurrence&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oComps&lt;/SPAN&gt; &lt;SPAN&gt;'Go true all components&lt;BR /&gt;&lt;BR /&gt;Dim checking_value as string = Left(oComp.name,2)&lt;BR /&gt;If checking_value = "rs" then&lt;BR /&gt;    If oComp.name = Headstone_excel then&lt;BR /&gt;         '"do nothing"&lt;BR /&gt;    Else&lt;BR /&gt;         Components.Delete(oComp &amp;amp; ":1")&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;         Dim&lt;/SPAN&gt; &lt;SPAN&gt;ass&lt;/SPAN&gt; = &lt;SPAN&gt;Components&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(Headstone_excel &amp;amp; ":1", &lt;SPAN&gt;File_locations &lt;/SPAN&gt; &amp;amp; Headstone_excel &amp;amp; ".ipt", &lt;SPAN&gt;position&lt;/SPAN&gt; := &lt;SPAN&gt;Nothing&lt;/SPAN&gt;, &lt;SPAN&gt;grounded&lt;/SPAN&gt; := &lt;SPAN&gt;False&lt;/SPAN&gt;, &lt;SPAN&gt;visible&lt;/SPAN&gt; := &lt;SPAN&gt;True&lt;/SPAN&gt;, &lt;SPAN&gt;appearance&lt;/SPAN&gt; := &lt;SPAN&gt;Nothing&lt;/SPAN&gt;)&lt;BR /&gt;    End if&lt;BR /&gt;Else&lt;BR /&gt;    &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;ass&lt;/SPAN&gt; = &lt;SPAN&gt;Components&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(Headstone_excel &amp;amp; ":1", &lt;SPAN&gt;File_locations &lt;/SPAN&gt; &amp;amp; Headstone_excel &amp;amp; ".ipt", &lt;SPAN&gt;position&lt;/SPAN&gt; := &lt;SPAN&gt;Nothing&lt;/SPAN&gt;, &lt;SPAN&gt;grounded&lt;/SPAN&gt; := &lt;SPAN&gt;False&lt;/SPAN&gt;, &lt;SPAN&gt;visible&lt;/SPAN&gt; := &lt;SPAN&gt;True&lt;/SPAN&gt;, &lt;SPAN&gt;appearance&lt;/SPAN&gt; := &lt;SPAN&gt;Nothing&lt;/SPAN&gt;)&lt;BR /&gt;End if&lt;BR /&gt;&lt;BR /&gt;'Now put all the parameters in.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Parameter.value&lt;/SPAN&gt;(&lt;SPAN&gt;"The part in assembly"&lt;/SPAN&gt;, &lt;SPAN&gt;"d20") = 200&lt;/SPAN&gt; ' example '&lt;SPAN&gt;Parameter.value&lt;/SPAN&gt;(&lt;SPAN&gt;"rs - 01:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Height"&lt;/SPAN&gt;)&lt;BR /&gt;'etc.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 11:20:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/make-assembly-via-excel/m-p/11561739#M30404</guid>
      <dc:creator>TechInventor20</dc:creator>
      <dc:date>2022-11-18T11:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Make assembly via excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/make-assembly-via-excel/m-p/11566615#M30405</link>
      <description>Goedemorgen,&lt;BR /&gt;&lt;BR /&gt;Creating the iMates shouldn't be an issue. That'll figure out with some tutorials. As I go along the daily business I can add those to all of my parts. The only issue I have is the iLogic code to place the parts in my assembly.&lt;BR /&gt;I've got several iLogic's running now but all of them I got from here and then the only thing what I needed to do is change some locations and names in them and then they work. But starting to write one is not happening with me</description>
      <pubDate>Mon, 21 Nov 2022 08:29:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/make-assembly-via-excel/m-p/11566615#M30405</guid>
      <dc:creator>berry.lejeune</dc:creator>
      <dc:date>2022-11-21T08:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: Make assembly via excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/make-assembly-via-excel/m-p/11566685#M30406</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9070414"&gt;@TechInventor20&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I changed some of the parameters in the code but I get a fault message on some of the lines (8-15)&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-inline" image-alt="Screenshot_465.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1142243iF8A1D9DCC029366E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_465.png" alt="Screenshot_465.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 09:01:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/make-assembly-via-excel/m-p/11566685#M30406</guid>
      <dc:creator>berry.lejeune</dc:creator>
      <dc:date>2022-11-21T09:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Make assembly via excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/make-assembly-via-excel/m-p/11566706#M30407</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Change this:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oComp&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ComponentOccurrence&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oComps&lt;/SPAN&gt; &lt;SPAN&gt;'Go true all components&lt;BR /&gt;&lt;BR /&gt;Dim checking_value as string = Left(oComp.name,2)&lt;BR /&gt;If checking_value = "rs" then&lt;BR /&gt;    If oComp.name = Headstone_excel then&lt;BR /&gt;         '"do nothing"&lt;BR /&gt;    Else&lt;BR /&gt;         Components.Delete(oComp &amp;amp; ":1")&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;         Dim&lt;/SPAN&gt; &lt;SPAN&gt;ass&lt;/SPAN&gt; = &lt;SPAN&gt;Components&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(Headstone_excel &amp;amp; ":1", &lt;SPAN&gt;File_locations &lt;/SPAN&gt; &amp;amp; Headstone_excel &amp;amp; ".ipt", &lt;SPAN&gt;position&lt;/SPAN&gt; := &lt;SPAN&gt;Nothing&lt;/SPAN&gt;, &lt;SPAN&gt;grounded&lt;/SPAN&gt; := &lt;SPAN&gt;False&lt;/SPAN&gt;, &lt;SPAN&gt;visible&lt;/SPAN&gt; := &lt;SPAN&gt;True&lt;/SPAN&gt;, &lt;SPAN&gt;appearance&lt;/SPAN&gt; := &lt;SPAN&gt;Nothing&lt;/SPAN&gt;)&lt;BR /&gt;    End if&lt;BR /&gt;Else&lt;BR /&gt;    &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;ass&lt;/SPAN&gt; = &lt;SPAN&gt;Components&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(Headstone_excel &amp;amp; ":1", &lt;SPAN&gt;File_locations &lt;/SPAN&gt; &amp;amp; Headstone_excel &amp;amp; ".ipt", &lt;SPAN&gt;position&lt;/SPAN&gt; := &lt;SPAN&gt;Nothing&lt;/SPAN&gt;, &lt;SPAN&gt;grounded&lt;/SPAN&gt; := &lt;SPAN&gt;False&lt;/SPAN&gt;, &lt;SPAN&gt;visible&lt;/SPAN&gt; := &lt;SPAN&gt;True&lt;/SPAN&gt;, &lt;SPAN&gt;appearance&lt;/SPAN&gt; := &lt;SPAN&gt;Nothing&lt;/SPAN&gt;)&lt;BR /&gt;End if&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oComp&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ComponentOccurrence&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oComps&lt;/SPAN&gt; &lt;SPAN&gt;'Go true all components&lt;BR /&gt;&lt;BR /&gt;Dim checking_value as string = Left(oComp.name,2)&lt;BR /&gt;If checking_value = "rs" then&lt;BR /&gt;    If oComp.name = Headstone_excel then&lt;BR /&gt;         '"do nothing"&lt;BR /&gt;    Else&lt;BR /&gt;         Components.Delete(oComp.name)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;         Dim&lt;/SPAN&gt; &lt;SPAN&gt;ass&lt;/SPAN&gt; = &lt;SPAN&gt;Components&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(Headstone_excel &amp;amp; ":1", &lt;SPAN&gt;File_locations &lt;/SPAN&gt; &amp;amp; Headstone_excel &amp;amp; ".ipt", &lt;SPAN&gt;position&lt;/SPAN&gt; := &lt;SPAN&gt;Nothing&lt;/SPAN&gt;, &lt;SPAN&gt;grounded&lt;/SPAN&gt; := &lt;SPAN&gt;False&lt;/SPAN&gt;, &lt;SPAN&gt;visible&lt;/SPAN&gt; := &lt;SPAN&gt;True&lt;/SPAN&gt;, &lt;SPAN&gt;appearance&lt;/SPAN&gt; := &lt;SPAN&gt;Nothing&lt;/SPAN&gt;)&lt;BR /&gt;    End if&lt;BR /&gt;Else&lt;BR /&gt;End if&lt;BR /&gt;Next&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 09:14:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/make-assembly-via-excel/m-p/11566706#M30407</guid>
      <dc:creator>TechInventor20</dc:creator>
      <dc:date>2022-11-21T09:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Make assembly via excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/make-assembly-via-excel/m-p/11566875#M30408</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9070414"&gt;@TechInventor20&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I changed a couple of small things because the code couldn't find my parts.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;Datasheet&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;"I:\Workspace\Bibliotheek\Gielkens\Templates grafstenen\Test excel\test.xlsx"&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;Sheet&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;"test"&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;Headstone_Excel&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;GoExcel&lt;/SPAN&gt;.&lt;SPAN&gt;CellValue&lt;/SPAN&gt;(&lt;SPAN&gt;Datasheet&lt;/SPAN&gt;, &lt;SPAN&gt;Sheet&lt;/SPAN&gt;, &lt;SPAN&gt;"F3"&lt;/SPAN&gt;)
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;File_locations&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;"I:\Workspace\Bibliotheek\Gielkens\Ruggen\"&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;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt; 
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oComps&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ComponentOccurrences&lt;/SPAN&gt; = &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;Occurrences&lt;/SPAN&gt; 
&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oComp&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ComponentOccurrence&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oComps&lt;/SPAN&gt; &lt;SPAN&gt;'Go true all components&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;checking_value&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;Left&lt;/SPAN&gt;(&lt;SPAN&gt;oComp&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt;,2)
&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;checking_value&lt;/SPAN&gt; = &lt;SPAN&gt;"Rs"&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
    &lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oComp&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt; = &lt;SPAN&gt;Headstone_Excel&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
         &lt;SPAN&gt;'"do nothing"&lt;/SPAN&gt;
    &lt;SPAN&gt;Else&lt;/SPAN&gt;
         &lt;SPAN&gt;Components&lt;/SPAN&gt;.&lt;SPAN&gt;Delete&lt;/SPAN&gt;(&lt;SPAN&gt;oComp&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt;)
         &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;ass&lt;/SPAN&gt; = &lt;SPAN&gt;Components&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;Headstone_Excel&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;":1"&lt;/SPAN&gt;, &lt;SPAN&gt;File_locations&lt;/SPAN&gt;  &amp;amp; &lt;SPAN&gt;Headstone_Excel&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;".ipt"&lt;/SPAN&gt;, &lt;SPAN&gt;position&lt;/SPAN&gt; := &lt;SPAN&gt;Nothing&lt;/SPAN&gt;, &lt;SPAN&gt;grounded&lt;/SPAN&gt; := &lt;SPAN&gt;False&lt;/SPAN&gt;, &lt;SPAN&gt;visible&lt;/SPAN&gt; := &lt;SPAN&gt;True&lt;/SPAN&gt;, &lt;SPAN&gt;appearance&lt;/SPAN&gt; := &lt;SPAN&gt;Nothing&lt;/SPAN&gt;)
    &lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
&lt;SPAN&gt;Else&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
&lt;SPAN&gt;Next&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Now just one more thing. When I let the code run it places my headstone from the library with the headstone i requested in my excel list&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there now a way that the headstone will come on a defined place in the assembly. Now the current headstone is deleted and the new one (defined in excel) is just put down without any constraints&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_469.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1142290i7E4CA044F63C063A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot_469.png" alt="Screenshot_469.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In my assembly the new headstone should just replace the existing one&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 10:29:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/make-assembly-via-excel/m-p/11566875#M30408</guid>
      <dc:creator>berry.lejeune</dc:creator>
      <dc:date>2022-11-21T10:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Make assembly via excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/make-assembly-via-excel/m-p/11566993#M30409</link>
      <description>&lt;P&gt;Then maybe this code will work the way you wan't it. I set the red part of the code off function and the green part is new.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;Datasheet&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;"I:\Workspace\Bibliotheek\Gielkens\Templates grafstenen\Test excel\test.xlsx"&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;Sheet&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;"test"&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;Headstone_Excel&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;GoExcel&lt;/SPAN&gt;.&lt;SPAN&gt;CellValue&lt;/SPAN&gt;(&lt;SPAN&gt;Datasheet&lt;/SPAN&gt;, &lt;SPAN&gt;Sheet&lt;/SPAN&gt;, &lt;SPAN&gt;"F3"&lt;/SPAN&gt;)
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;File_locations&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;"I:\Workspace\Bibliotheek\Gielkens\Ruggen\"&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;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt; 
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oComps&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ComponentOccurrences&lt;/SPAN&gt; = &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;Occurrences&lt;/SPAN&gt; 
&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oComp&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ComponentOccurrence&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oComps&lt;/SPAN&gt; &lt;SPAN&gt;'Go true all components&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;checking_value&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;Left&lt;/SPAN&gt;(&lt;SPAN&gt;oComp&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt;,2)
&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;checking_value&lt;/SPAN&gt; = &lt;SPAN&gt;"Rs"&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
    &lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oComp&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt; = &lt;SPAN&gt;Headstone_Excel&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
         &lt;SPAN&gt;'"do nothing"&lt;/SPAN&gt;
    &lt;SPAN&gt;Else&lt;/SPAN&gt;
         &lt;FONT color="#FF0000"&gt;'&lt;SPAN&gt;Components&lt;/SPAN&gt;.&lt;SPAN&gt;Delete&lt;/SPAN&gt;(&lt;SPAN&gt;oComp&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt;)
         '&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;ass&lt;/SPAN&gt; = &lt;SPAN&gt;Components&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;Headstone_Excel&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;":1"&lt;/SPAN&gt;, &lt;SPAN&gt;File_locations&lt;/SPAN&gt;  &amp;amp; &lt;SPAN&gt;Headstone_Excel&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;".ipt"&lt;/SPAN&gt;, &lt;SPAN&gt;position&lt;/SPAN&gt; := &lt;SPAN&gt;Nothing&lt;/SPAN&gt;, &lt;SPAN&gt;grounded&lt;/SPAN&gt; := &lt;SPAN&gt;False&lt;/SPAN&gt;, &lt;SPAN&gt;visible&lt;/SPAN&gt; := &lt;SPAN&gt;True&lt;/SPAN&gt;, &lt;SPAN&gt;appearance&lt;/SPAN&gt; := &lt;SPAN&gt;Nothing&lt;/SPAN&gt;)&lt;/FONT&gt; &lt;BR /&gt;         &lt;FONT color="#00FF00"&gt;Component.Replace(&lt;SPAN&gt;oComp&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt;, &lt;SPAN&gt;File_locations&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;Headstone_Excel&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;".ipt"&lt;/SPAN&gt;, True)&lt;/FONT&gt;&lt;BR /&gt;&lt;SPAN&gt;    End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
&lt;SPAN&gt;Else&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
&lt;SPAN&gt;Next&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Veel succes!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Groet&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 11:31:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/make-assembly-via-excel/m-p/11566993#M30409</guid>
      <dc:creator>TechInventor20</dc:creator>
      <dc:date>2022-11-21T11:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Make assembly via excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/make-assembly-via-excel/m-p/11574924#M30410</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9070414"&gt;@TechInventor20&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with the latest addition you gave me, the existing headstone and plate are automatically replaced in my model when I chang the excel sheet and they stay in place &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've got several variations of complete gravestons and will now incorperate these codes in all of them.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just one last thing (I hope&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;) Normally with design assistant I copy an existing assembly to a new project folder (with new names) and there I start to work on my base part with all the dimensions in.&lt;/P&gt;&lt;P&gt;I think with this system now, I will first make my complete assembly and then do via the design assistant a copy to the project folder, but will the excel file also copy to this new folder or will the link be broken?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 07:21:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/make-assembly-via-excel/m-p/11574924#M30410</guid>
      <dc:creator>berry.lejeune</dc:creator>
      <dc:date>2022-11-24T07:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Make assembly via excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/make-assembly-via-excel/m-p/11582023#M30411</link>
      <description>&lt;P&gt;What you could do is make a copy of the excel and put it in the same folder as the assembly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you could say that excel sheet is located at that place&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;Datasheet&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; &lt;BR /&gt;if Thisdoc.path&amp;nbsp;= "" then&lt;BR /&gt;Datasheet = &lt;SPAN&gt;"I:\Workspace\Bibliotheek\Gielkens\Templates grafstenen\Test excel\test.xlsx"&lt;BR /&gt;Else&lt;BR /&gt;Datasheet = Thisdoc.Path&lt;BR /&gt;End if&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 11:17:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/make-assembly-via-excel/m-p/11582023#M30411</guid>
      <dc:creator>TechInventor20</dc:creator>
      <dc:date>2022-11-28T11:17:43Z</dc:date>
    </item>
  </channel>
</rss>

