<?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: Problem with subassembly's in mainassembly (selction multivalue) in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/problem-with-subassembly-s-in-mainassembly-selction-multivalue/m-p/10014439#M120137</link>
    <description>&lt;P&gt;WCrihfield, &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had a good think About the code i made and your comments.&lt;/P&gt;&lt;P&gt;the assembly will be Placed in the inventor library so delete of none chosen subassembly’s is not the right option. The two options that are not chosen have be available in case i have to switch the one of the other options. So i Will have to supress those options.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jan 2021 22:59:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-01-19T22:59:17Z</dc:date>
    <item>
      <title>Problem with subassembly's in mainassembly (selction multivalue)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/problem-with-subassembly-s-in-mainassembly-selction-multivalue/m-p/10012846#M120112</link>
      <description>&lt;PRE&gt;&lt;SPAN&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;i wrote the code below of this text. The function should be:&lt;BR /&gt;Slotkeuze is a multivalue parameter and selects the users input of Forty, Fifty or Sixt.&lt;BR /&gt;The user can make a selection.&lt;BR /&gt;In the assembly are three IAM-files, (Forty, Fifty and Sixty).&lt;BR /&gt;The problem is that if i run the rule two of the assembly's are deleted from the file.&lt;BR /&gt;I don't know why this happens, hopefully someone can explain me why this is happening.&lt;BR /&gt;&lt;BR /&gt;Thanks, Joop&lt;BR /&gt;&lt;BR /&gt;The code is:&lt;BR /&gt;&lt;BR /&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;SlotKeuze&lt;/SPAN&gt; = &lt;SPAN&gt;"Forty"&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;componentA&lt;/SPAN&gt; = &lt;SPAN&gt;Components&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"Forty:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Forty.iam"&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;Components&lt;/SPAN&gt;.&lt;SPAN&gt;Delete&lt;/SPAN&gt;(&lt;SPAN&gt;"Fifty:1"&lt;/SPAN&gt;)
	&lt;SPAN&gt;Components&lt;/SPAN&gt;.&lt;SPAN&gt;Delete&lt;/SPAN&gt;(&lt;SPAN&gt;"Sixty:1"&lt;/SPAN&gt;)

	&lt;SPAN&gt;ElseIf&lt;/SPAN&gt; &lt;SPAN&gt;SlotKeuze&lt;/SPAN&gt; = &lt;SPAN&gt;"Fifty"&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;componentA&lt;/SPAN&gt; = &lt;SPAN&gt;Components&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"Fifty:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Fifty.iam"&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;Components&lt;/SPAN&gt;.&lt;SPAN&gt;Delete&lt;/SPAN&gt;(&lt;SPAN&gt;"Forty:1"&lt;/SPAN&gt;)
	&lt;SPAN&gt;Components&lt;/SPAN&gt;.&lt;SPAN&gt;Delete&lt;/SPAN&gt;(&lt;SPAN&gt;"Sixty:1"&lt;/SPAN&gt;)

	&lt;SPAN&gt;ElseIf&lt;/SPAN&gt; &lt;SPAN&gt;SlotKeuze&lt;/SPAN&gt; = &lt;SPAN&gt;"Sixty"&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;componentA&lt;/SPAN&gt; = &lt;SPAN&gt;Components&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"Sixty:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Sixty.iam"&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;Components&lt;/SPAN&gt;.&lt;SPAN&gt;Delete&lt;/SPAN&gt;(&lt;SPAN&gt;"Forty:1"&lt;/SPAN&gt;)
	&lt;SPAN&gt;Components&lt;/SPAN&gt;.&lt;SPAN&gt;Delete&lt;/SPAN&gt;(&lt;SPAN&gt;"Fifty:1"&lt;/SPAN&gt;)

&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Jan 2021 14:28:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/problem-with-subassembly-s-in-mainassembly-selction-multivalue/m-p/10012846#M120112</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-19T14:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with subassembly's in mainassembly (selction multivalue)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/problem-with-subassembly-s-in-mainassembly-selction-multivalue/m-p/10012941#M120114</link>
      <description>&lt;P&gt;I'm not sure what you are asking.&amp;nbsp; It looks like your code is designed so that, when you select one of the three available options, it will add the selected sub-assembly to the main assembly, then delete the other two sub-assemblies from the main assembly.&amp;nbsp; If you don't want it to delete the other two sub-assemblies, just delete the two lines of code following the Add line for each iteration of the If statement.&amp;nbsp; Or do you want to Suppress the other two sub-assemblies, instead of delete them?&lt;/P&gt;&lt;P&gt;What exactly are you trying to do?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 15:00:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/problem-with-subassembly-s-in-mainassembly-selction-multivalue/m-p/10012941#M120114</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2021-01-19T15:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with subassembly's in mainassembly (selction multivalue)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/problem-with-subassembly-s-in-mainassembly-selction-multivalue/m-p/10014439#M120137</link>
      <description>&lt;P&gt;WCrihfield, &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had a good think About the code i made and your comments.&lt;/P&gt;&lt;P&gt;the assembly will be Placed in the inventor library so delete of none chosen subassembly’s is not the right option. The two options that are not chosen have be available in case i have to switch the one of the other options. So i Will have to supress those options.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 22:59:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/problem-with-subassembly-s-in-mainassembly-selction-multivalue/m-p/10014439#M120137</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-19T22:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with subassembly's in mainassembly (selction multivalue)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/problem-with-subassembly-s-in-mainassembly-selction-multivalue/m-p/10015067#M120147</link>
      <description>&lt;P&gt;@Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are putting these assemblies in library folder and always want to reuse them based on selection, I think it is good to delete them from the Inventor assembly rather than suppressing them because when you suppress them you will have to create a custom Level of detail, also You need to do a workaround to get the right bill on materials if you suppress, if you simple use delete (just like you have now) it will show right BOM without any workaround.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another thing, just to note, when you use Component.Delete("Forty:1") as you have now, it will just delete that from Inventor assembly and not from your library folder, but whenever it has to add it, it will automatically add in the assembly from the same path.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my opinion, I would recommend if you are always going to reuse these three assemblies, in all the designs, make sure you use the delete workflow (It is called managing components in iLogic) and not suppress them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this will be helpful. Please shout out in case you have any more confusion.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 06:28:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/problem-with-subassembly-s-in-mainassembly-selction-multivalue/m-p/10015067#M120147</guid>
      <dc:creator>dutt.thakar</dc:creator>
      <dc:date>2021-01-20T06:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with subassembly's in mainassembly (selction multivalue)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/problem-with-subassembly-s-in-mainassembly-selction-multivalue/m-p/10015288#M120148</link>
      <description>&lt;P&gt;@Anonymous&lt;/a&gt;.Catar,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ween the assembly is placed in the library and will be placed in a project then i alwaar want to have the option to chosen fifty op sixty ween i at time of placememt i die chosen for forty.&lt;/P&gt;&lt;P&gt;And the Bill of materials should also reflect the name of the chosen option.&lt;/P&gt;&lt;P&gt;so in other Words if i placed the assembly in the library then the options Will not be delete after placement and selection? Now i am understanding why the two options i did not chose were deleted.&lt;/P&gt;&lt;P&gt;is it always necessary to make a level of detail if you are using ilogic?&lt;/P&gt;&lt;P&gt;if i want to Place subassembly’s (which have ruilen and a from) in the main assembly, is it possible to use these rules in the main assembly? And how Can i call them info the main assembly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 08:37:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/problem-with-subassembly-s-in-mainassembly-selction-multivalue/m-p/10015288#M120148</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-20T08:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with subassembly's in mainassembly (selction multivalue)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/problem-with-subassembly-s-in-mainassembly-selction-multivalue/m-p/10015377#M120149</link>
      <description>&lt;P&gt;@Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am barely able to understand what you are trying to say, please try to convey clearly what you are trying to achieve.&lt;/P&gt;&lt;P&gt;Whatever I understand I will try to answer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First of all, it is not necessary to create a level of details whenever you are planning to use iLogic, if you are thinking to suppress any components inside the assembly, either with iLogic or without it you will be forced by Inventor to create it, so in case of suppression yes it is mandatory.&amp;nbsp; so if you are copying the assemblies forty, fifty, and sixty, in each of your projects in different folders then, you can place all three at once, and use suppress with ilogic based on your selection, and for that, you need to create a Level of detail. If you want to use suppress you can use Component.IsActive("Forty:1") = True/False instead of Component.Delete. In this approach, if you want your BOM just to show the one that is selected, you either need to change its BOM Structure to reference or you can create a View representation and use it for correct BOM because suppression always refers to the only MASTER level of detail in BOM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the other hand assume that you have these assemblies, Forty, fifty, and sixty and you are saving them in one location, and for each project you always use them from these parts (it means you are not copying them for a new project, you always use them from the same location), in that case, you do not need a level of detail, because what you have now will work properly and they will always be placed from the same path based on your selection and always show correct BOM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this makes it a bit more clear.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 09:32:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/problem-with-subassembly-s-in-mainassembly-selction-multivalue/m-p/10015377#M120149</guid>
      <dc:creator>dutt.thakar</dc:creator>
      <dc:date>2021-01-20T09:32:29Z</dc:date>
    </item>
  </channel>
</rss>

