<?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 collinear constraint to a line with a sketch axis in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/adding-collinear-constraint-to-a-line-with-a-sketch-axis/m-p/11732118#M4488</link>
    <description>&lt;P&gt;The UI is automatically doing the projection. If you do it through the UI and then turn off the display of the construction geometry, you'll see the sketch curve that was created. The API doesn't provide this shortcut like the command does.&lt;/P&gt;</description>
    <pubDate>Mon, 06 Feb 2023 06:34:03 GMT</pubDate>
    <dc:creator>BrianEkins</dc:creator>
    <dc:date>2023-02-06T06:34:03Z</dc:date>
    <item>
      <title>Adding collinear constraint to a line with a sketch axis</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/adding-collinear-constraint-to-a-line-with-a-sketch-axis/m-p/11732099#M4485</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've got a sketch line and would like to constraint it to be collinear with the X axis in the sketch. I can easily do that in the&amp;nbsp;Fusion 360 UI, however I can't figure out how to do it using the Python API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm aware of the&amp;nbsp;addCollinear() method, which accepts two&amp;nbsp;&lt;SPAN&gt;SketchLines&lt;/SPAN&gt;. However, I'm not sure how to retrieve the sketch's X axis in the first place. Do you know how to get the axis, and then would I be able to pass it to&amp;nbsp;addCollinear() along with my sketch line or should I use a different method?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Julien&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 06:18:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/adding-collinear-constraint-to-a-line-with-a-sketch-axis/m-p/11732099#M4485</guid>
      <dc:creator>jphalip</dc:creator>
      <dc:date>2023-02-06T06:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Adding collinear constraint to a line with a sketch axis</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/adding-collinear-constraint-to-a-line-with-a-sketch-axis/m-p/11732105#M4486</link>
      <description>&lt;P&gt;Do you mean one of the component's construction axes? A sketch only has a point at it's origin, but nothing for it's axes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Assuming you mean a construction axis, you'll need to use the Sketch.project method to project it into the sketch, which will create a sketch line that you can use for the constraint.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 06:24:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/adding-collinear-constraint-to-a-line-with-a-sketch-axis/m-p/11732105#M4486</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2023-02-06T06:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Adding collinear constraint to a line with a sketch axis</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/adding-collinear-constraint-to-a-line-with-a-sketch-axis/m-p/11732109#M4487</link>
      <description>&lt;P&gt;Oh I see, yes I mean the construction axis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's interesting, so in the UI I can select "Collinear", then the line, and then the axis. It doesn't seem to create a projection. But perhaps as you suggest the projection is required when using the API. I'll give that a try. Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 06:27:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/adding-collinear-constraint-to-a-line-with-a-sketch-axis/m-p/11732109#M4487</guid>
      <dc:creator>jphalip</dc:creator>
      <dc:date>2023-02-06T06:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Adding collinear constraint to a line with a sketch axis</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/adding-collinear-constraint-to-a-line-with-a-sketch-axis/m-p/11732118#M4488</link>
      <description>&lt;P&gt;The UI is automatically doing the projection. If you do it through the UI and then turn off the display of the construction geometry, you'll see the sketch curve that was created. The API doesn't provide this shortcut like the command does.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 06:34:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/adding-collinear-constraint-to-a-line-with-a-sketch-axis/m-p/11732118#M4488</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2023-02-06T06:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: Adding collinear constraint to a line with a sketch axis</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/adding-collinear-constraint-to-a-line-with-a-sketch-axis/m-p/11732148#M4489</link>
      <description>&lt;P&gt;Ok that makes sense, thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 06:48:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/adding-collinear-constraint-to-a-line-with-a-sketch-axis/m-p/11732148#M4489</guid>
      <dc:creator>jphalip</dc:creator>
      <dc:date>2023-02-06T06:48:51Z</dc:date>
    </item>
  </channel>
</rss>

