<?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 Help to control sketch constraints with ilogic in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/help-to-control-sketch-constraints-with-ilogic/m-p/6723527#M68358</link>
    <description>&lt;P&gt;Hi all,&lt;span class="lia-inline-image-display-wrapper lia-image-align-right" image-alt="2016-12-02_09-57-26.png" style="width: 285px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/298365i02B104DA3F689427/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2016-12-02_09-57-26.png" alt="2016-12-02_09-57-26.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a part with a bore that escapes the part at different heights. Depending on user unput parameter "Option", I suppress one of the hole featuers. As you can see in the figure to the right, the height at which the horizontal bore escapes is controlled by two sketch points. There is a horizontal constraint between the sketch points and the "middle line" of each horizontal bore.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering if it is possible to only model 1 of the horizontal bores, and control which sketch point the middle line has the horizontal constraint to using iLogic. So, if the user insert 1, then the horizontal bore escapes at height 35 mm, and if the user inserts option 2, it jumps up to height 75 mm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have found some information about creating sketch and constraints in ilogic, but I can't figure out how to access already existing constraints, and control them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached the part.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please note that I know this exact problem could be solved by simply controlling the height of one work point and let the sketch follow. But in my "real" part, I only have the work points from my layout sketch to work with, so it is not a solution for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help here is much appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;espen&lt;/P&gt;</description>
    <pubDate>Fri, 02 Dec 2016 09:13:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-12-02T09:13:02Z</dc:date>
    <item>
      <title>Help to control sketch constraints with ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/help-to-control-sketch-constraints-with-ilogic/m-p/6723527#M68358</link>
      <description>&lt;P&gt;Hi all,&lt;span class="lia-inline-image-display-wrapper lia-image-align-right" image-alt="2016-12-02_09-57-26.png" style="width: 285px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/298365i02B104DA3F689427/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2016-12-02_09-57-26.png" alt="2016-12-02_09-57-26.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a part with a bore that escapes the part at different heights. Depending on user unput parameter "Option", I suppress one of the hole featuers. As you can see in the figure to the right, the height at which the horizontal bore escapes is controlled by two sketch points. There is a horizontal constraint between the sketch points and the "middle line" of each horizontal bore.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering if it is possible to only model 1 of the horizontal bores, and control which sketch point the middle line has the horizontal constraint to using iLogic. So, if the user insert 1, then the horizontal bore escapes at height 35 mm, and if the user inserts option 2, it jumps up to height 75 mm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have found some information about creating sketch and constraints in ilogic, but I can't figure out how to access already existing constraints, and control them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached the part.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please note that I know this exact problem could be solved by simply controlling the height of one work point and let the sketch follow. But in my "real" part, I only have the work points from my layout sketch to work with, so it is not a solution for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help here is much appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;espen&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 09:13:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/help-to-control-sketch-constraints-with-ilogic/m-p/6723527#M68358</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-02T09:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Help to control sketch constraints with ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/help-to-control-sketch-constraints-with-ilogic/m-p/6725036#M68381</link>
      <description>&lt;P&gt;So, like you said, it would be way easier if you could just vary the dimension as a parameter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could you&amp;nbsp;create 2 constraints; 1 for either position and always have 1 suppressed and the other active?&amp;nbsp;Then use an iLogic rule to check the input&amp;nbsp;parameter, and change the suppression of the constraints based upon the result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another (worse) way:&amp;nbsp;How about putting a couple of reference dimensions on your points (The .75 and .35 dimensions you have there), and naming them in the parameter screen? Then, you could switch which parameter gets used when the Option changes.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 20:26:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/help-to-control-sketch-constraints-with-ilogic/m-p/6725036#M68381</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-02T20:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help to control sketch constraints with ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/help-to-control-sketch-constraints-with-ilogic/m-p/6727276#M68393</link>
      <description>&lt;P&gt;This is what I want to do, but I don't know how I can access and change sketch constraints. Do you know how to do this?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2016 06:54:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/help-to-control-sketch-constraints-with-ilogic/m-p/6727276#M68393</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-05T06:54:54Z</dc:date>
    </item>
  </channel>
</rss>

