<?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: Conditional control of the assembly component presence with iLogic in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/conditional-control-of-the-assembly-component-presence-with/m-p/12147049#M155972</link>
    <description>&lt;P&gt;Just a quick related note about an old automotive industry technique that you may, or may not already be aware of.&amp;nbsp; When they wanted to make a configurable assembly, once they have the 'master' assembly the way they want it, with every main type of part and sub assembly in place, they would then work backwards to transfer each component's position &amp;amp; orientation from the origin of the assembly, and duplicate that within the parts and sub assemblies, so that the part would be that exact same position and orientation from its own origin.&amp;nbsp; Then when they want to switch one type of part or sub assembly out for another, they are all constrained to the origin in the exact same way.&amp;nbsp; That system may be awkward/challenging to use/maintain in some scenarios, but works pretty good in others.&amp;nbsp; Never any 'faces don't match' problems.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Aug 2023 15:47:05 GMT</pubDate>
    <dc:creator>WCrihfield</dc:creator>
    <dc:date>2023-08-03T15:47:05Z</dc:date>
    <item>
      <title>Conditional control of the assembly component presence with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/conditional-control-of-the-assembly-component-presence-with/m-p/12146974#M155971</link>
      <description>&lt;P&gt;I'd like to know how to control&amp;nbsp;(place/delete) assembly component by means of iLogic.&lt;/P&gt;&lt;P&gt;Let's take standard scissors.iam (see attached, saved with Inventor 2022.5) as a simplest sample.&lt;/P&gt;&lt;P&gt;I've added 'Spring_Exist' parameter (Boolean).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What would be the minimal iLogic-rule code to add/remove Scissors_spring component based on the value of my parameter?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS:&lt;BR /&gt;I don't interested in old-school methods (like switching Visibility On/Off, Enabled/Disabled, Suppress/Unsuppress).&lt;BR /&gt;&lt;BR /&gt;PPS:&lt;BR /&gt;I do see the relevant sample BrewMain-Drawing-ModelState.zip at&amp;nbsp;&lt;A href="https://www.autodesk.com/support/technical/article/caas/tsarticles/ts/3gnm93P9sPAWE6vndk7fjq.html" target="_blank"&gt;https://www.autodesk.com/support/technical/article/caas/tsarticles/ts/3gnm93P9sPAWE6vndk7fjq.html&lt;/A&gt;&amp;nbsp;but I'd like a simpler one.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 15:23:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/conditional-control-of-the-assembly-component-presence-with/m-p/12146974#M155971</guid>
      <dc:creator>Maxim-CADman77</dc:creator>
      <dc:date>2023-08-03T15:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional control of the assembly component presence with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/conditional-control-of-the-assembly-component-presence-with/m-p/12147049#M155972</link>
      <description>&lt;P&gt;Just a quick related note about an old automotive industry technique that you may, or may not already be aware of.&amp;nbsp; When they wanted to make a configurable assembly, once they have the 'master' assembly the way they want it, with every main type of part and sub assembly in place, they would then work backwards to transfer each component's position &amp;amp; orientation from the origin of the assembly, and duplicate that within the parts and sub assemblies, so that the part would be that exact same position and orientation from its own origin.&amp;nbsp; Then when they want to switch one type of part or sub assembly out for another, they are all constrained to the origin in the exact same way.&amp;nbsp; That system may be awkward/challenging to use/maintain in some scenarios, but works pretty good in others.&amp;nbsp; Never any 'faces don't match' problems.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 15:47:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/conditional-control-of-the-assembly-component-presence-with/m-p/12147049#M155972</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2023-08-03T15:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional control of the assembly component presence with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/conditional-control-of-the-assembly-component-presence-with/m-p/12147102#M155973</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/572109"&gt;@Maxim-CADman77&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the attached zip file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;First step is to remove the adaptivity of the spring.&lt;/LI&gt;
&lt;LI&gt;Next delete the constraints on the spring and replace them ( not sure why I had to do that, but I did)&lt;/LI&gt;
&lt;LI&gt;Then create a rule and right click on the sprig and use Capture Current State as shown .&amp;nbsp;
&lt;UL&gt;
&lt;LI&gt;That will create the code and the named entities in the spring&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A href="http://inventortrenches.blogspot.com" target="_blank" rel="noopener"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&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="Curtis_Waguespack_0-1691077799390.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1248832i6177E06DC897CE7F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Curtis_Waguespack_0-1691077799390.png" alt="Curtis_Waguespack_0-1691077799390.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Spring_Exist&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;

	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;scissor_spring_1&lt;/SPAN&gt; = &lt;SPAN&gt;Components&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"scissor_spring:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"scissor_spring.ipt"&lt;/SPAN&gt;)

	&lt;SPAN&gt;Constraints&lt;/SPAN&gt;.&lt;SPAN&gt;AddInsert&lt;/SPAN&gt;(&lt;SPAN&gt;"Insert:2"&lt;/SPAN&gt;, &lt;SPAN&gt;"scissor_spring:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Edge0"&lt;/SPAN&gt;, &lt;SPAN&gt;"blade_main:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Edge0"&lt;/SPAN&gt;, &lt;SPAN&gt;axesOpposed&lt;/SPAN&gt; := &lt;SPAN&gt;False&lt;/SPAN&gt;)
	&lt;SPAN&gt;Constraints&lt;/SPAN&gt;.&lt;SPAN&gt;AddMate&lt;/SPAN&gt;(&lt;SPAN&gt;"Mate:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"scissor_spring:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Edge1"&lt;/SPAN&gt;, &lt;SPAN&gt;"blade_main:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Face0"&lt;/SPAN&gt;)
&lt;SPAN&gt;Else&lt;/SPAN&gt;
	&lt;SPAN&gt;Try&lt;/SPAN&gt; : &lt;SPAN&gt;Component&lt;/SPAN&gt;.&lt;SPAN&gt;InventorComponent&lt;/SPAN&gt;(&lt;SPAN&gt;"scissor_spring:1"&lt;/SPAN&gt;).&lt;SPAN&gt;Delete&lt;/SPAN&gt; : &lt;SPAN&gt;Catch&lt;/SPAN&gt; : &lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Try&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 16:01:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/conditional-control-of-the-assembly-component-presence-with/m-p/12147102#M155973</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2023-08-03T16:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional control of the assembly component presence with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/conditional-control-of-the-assembly-component-presence-with/m-p/12147189#M155974</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I believe that to make "new workflow" bullet-proof the named geometry should be used for constraining, right?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 16:34:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/conditional-control-of-the-assembly-component-presence-with/m-p/12147189#M155974</guid>
      <dc:creator>Maxim-CADman77</dc:creator>
      <dc:date>2023-08-03T16:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional control of the assembly component presence with iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/conditional-control-of-the-assembly-component-presence-with/m-p/12147299#M155977</link>
      <description>&lt;P&gt;Definitely.&amp;nbsp; Assigning names to Face, Edge, &amp;amp; Vertex objects in all the parts that will be going into your configuration type assemblies is a pretty effective and useful process that many have been using for years now, when your plan includes mating those types of entities together within the assembly, rather than WorkPlane, WorkAxis, &amp;amp; WorkPoint type geometry.&amp;nbsp; But letting the 'capture current state' tool assign the names may not be the best way to do it.&amp;nbsp; That is great for quick, simple stuff, but in larger, more complex assemblies, you will want to put in the 'preparation' efforts ahead of time.&amp;nbsp; Currently, only the part environment has a user interface tool for assigning names (right-click face, select 'Assign Name' from the right-click menu), but there are also other tools for similar functionality within the context of assemblies.&amp;nbsp; Sometimes you may not want to 'edit' the existing model files, or the model files may be ReadOnly (for one reason or another), so assigning names within the parts may not be an option.&amp;nbsp; There are add-ins that can help with the assembly side naming, but some of us have our own simple iLogic or VBA based tools that get the job done too.&amp;nbsp; However, I do still try to use the origin planes of the model files as much as possible, because they are simply the best option in many situations.&amp;nbsp; But I also rename my origin planes to more useful names, so I will know which ones are for what later on.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 17:05:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/conditional-control-of-the-assembly-component-presence-with/m-p/12147299#M155977</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2023-08-03T17:05:42Z</dc:date>
    </item>
  </channel>
</rss>

