<?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: Adding Coincident constraints in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/adding-coincident-constraints/m-p/9567690#M14461</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5741855"&gt;@BrianEkins&lt;/a&gt;&amp;nbsp;, thanks for your comment.&lt;/P&gt;&lt;P&gt;though you are right about the API not having the ability to infer from mouse movement, there are still some cases where I expected constraints to be created and they where not.&amp;nbsp;&lt;/P&gt;&lt;P&gt;one such case is when I use&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;sketch.sketchCurves.sketchLines.addThreePointRectangle(p1,p2,p3)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I would expect some sort of constraints to be applied to the generated lines (perpendicularity&amp;nbsp;IMHO)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;but this does not seem to be the case.&lt;BR /&gt;I would have at least expected some comment on the documentation of addThreePointRectangle &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;and perhaps some guidelines as to how to actually create an actual rectangle and not only 4 lines that are temporarily&amp;nbsp;arranged in a rectangular shape. (if i use&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit;"&gt;sketch.sketchDimensions.addDistanceDimension to add length to the first two lines the shape becomes a trapezoid &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: inherit;"&gt;anyway , I will try to go based on whats in this thread to add the appropriate constraints.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 08 Jun 2020 18:34:05 GMT</pubDate>
    <dc:creator>epeleg</dc:creator>
    <dc:date>2020-06-08T18:34:05Z</dc:date>
    <item>
      <title>Adding Coincident constraints</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/adding-coincident-constraints/m-p/8660548#M14456</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The reference manual states:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H1 class="api"&gt;GeometricConstraints.addCoincident Method&lt;/H1&gt;
&lt;P class="api"&gt;Parent Object: &lt;A href="http://help.autodesk.com/cloudhelp/ENU/Fusion-360-API/files/GeometricConstraints.htm" target="_blank"&gt;GeometricConstraints&lt;/A&gt;&lt;/P&gt;
&lt;H2 class="api"&gt;Description&lt;/H2&gt;
&lt;P class="api"&gt;Creates a new coincident constraint between two entities. The first argument is a sketch point. The second argument is a sketch curve or point.&lt;BR /&gt;&lt;BR /&gt;Defined in namespace "adsk.fusion" and the header file is "adsk/fusion/Sketch/GeometricConstraints.h".&lt;/P&gt;
&lt;H2 class="api"&gt;Syntax&lt;/H2&gt;
&lt;P&gt;returnValue = geometricConstraints_var.addCoincident(point, entity)&lt;/P&gt;
&lt;P&gt;But when I run this&lt;/P&gt;
&lt;P&gt;CCC = CC.addCoincident(shank, intersectShank[1]) &amp;nbsp; &amp;nbsp; I get an error stating the add.Coincident needs 3 arguments only 2 given.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to set coincident between a cure and project point. &amp;nbsp;What am I doing wrong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;InterectShanks[1] is a projected point.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers, Stephen&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="tabs" class="ui-custom-tabs"&gt;
&lt;DIV id="Python" class="api-code" aria-hidden="false"&gt;
&lt;DIV class="ui-table-wrap"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 15 Mar 2019 03:30:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/adding-coincident-constraints/m-p/8660548#M14456</guid>
      <dc:creator>StephenCim-001</dc:creator>
      <dc:date>2019-03-15T03:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Coincident constraints</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/adding-coincident-constraints/m-p/8660657#M14457</link>
      <description>&lt;P&gt;Did you check if the parameter types are correct?&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="parameter types.PNG" style="width: 666px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/614192i01CE6A4279497D32/image-size/large?v=v2&amp;amp;px=999" role="button" title="parameter types.PNG" alt="parameter types.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 06:19:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/adding-coincident-constraints/m-p/8660657#M14457</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-15T06:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Coincident constraints</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/adding-coincident-constraints/m-p/8675812#M14458</link>
      <description>&lt;P&gt;I had to add multiple constraints to get it to behave the way I wanted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;first I drew a line , then added a circle by 2 points , using the line end points.&lt;/P&gt;
&lt;P&gt;Then added 2 coincident constraints between the line endpoints and circle&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then I needed to add a midpoint constraint between the line and projected point.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This kept the line and circle locked to the projected point.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then to finish off I needed to add a vertical constraint to the line to stop it from rotating has I changed it's length and finally a coincident constraint between the circle centre and projected point to keep the circle in place.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I don't need to add all these constraints when I'm working with the GUI interface ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers, Stephen&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2019 22:06:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/adding-coincident-constraints/m-p/8675812#M14458</guid>
      <dc:creator>StephenCim-001</dc:creator>
      <dc:date>2019-03-21T22:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Coincident constraints</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/adding-coincident-constraints/m-p/8676088#M14459</link>
      <description>&lt;P&gt;When you draw a sketch using the UI, it uses your mouse movements to infer the creation of some constraints and automatically creates them.&amp;nbsp; The API doesn't have this inference information so you have to explicitly create each one.&amp;nbsp; In the end, it's all the same sketch geometry and constraints regardless of if it's created by the UI or the API.&amp;nbsp; Once it's created, Fusion doesn't how it was created.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2019 01:54:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/adding-coincident-constraints/m-p/8676088#M14459</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2019-03-22T01:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Coincident constraints</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/adding-coincident-constraints/m-p/8676396#M14460</link>
      <description>&lt;P&gt;Thanks for the info Brian, make sense &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2019 07:47:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/adding-coincident-constraints/m-p/8676396#M14460</guid>
      <dc:creator>StephenCim-001</dc:creator>
      <dc:date>2019-03-22T07:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Coincident constraints</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/adding-coincident-constraints/m-p/9567690#M14461</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5741855"&gt;@BrianEkins&lt;/a&gt;&amp;nbsp;, thanks for your comment.&lt;/P&gt;&lt;P&gt;though you are right about the API not having the ability to infer from mouse movement, there are still some cases where I expected constraints to be created and they where not.&amp;nbsp;&lt;/P&gt;&lt;P&gt;one such case is when I use&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;sketch.sketchCurves.sketchLines.addThreePointRectangle(p1,p2,p3)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I would expect some sort of constraints to be applied to the generated lines (perpendicularity&amp;nbsp;IMHO)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;but this does not seem to be the case.&lt;BR /&gt;I would have at least expected some comment on the documentation of addThreePointRectangle &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;and perhaps some guidelines as to how to actually create an actual rectangle and not only 4 lines that are temporarily&amp;nbsp;arranged in a rectangular shape. (if i use&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit;"&gt;sketch.sketchDimensions.addDistanceDimension to add length to the first two lines the shape becomes a trapezoid &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: inherit;"&gt;anyway , I will try to go based on whats in this thread to add the appropriate constraints.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 08 Jun 2020 18:34:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/adding-coincident-constraints/m-p/9567690#M14461</guid>
      <dc:creator>epeleg</dc:creator>
      <dc:date>2020-06-08T18:34:05Z</dc:date>
    </item>
  </channel>
</rss>

