<?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 Mirror and offset bug? in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/mirror-and-offset-bug/m-p/6779160#M18755</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ran into a weird behaviour trying to offset a closed loop. The profile is symmetric around the two sketch axis and consists of lines, arcs and splines in one quarter of the coordinate system which then get mirrored around the two axis. If I try to offset the profile the usual way it always offsets to the outside never to the inside no matter what direction point I choose.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;profileOutline = sketchOutline.profiles.item(0)   
for loop in profileOutline.profileLoops:
    if loop.isOuter:
       loopOutline = loop
       break
            
curvesProfile=adsk.core.ObjectCollection.create()
for curve in loopOutline.profileCurves:        
   curvesProfile.add(curve.sketchEntity)

#Origin is in the profile, other points give the same result        
dirPoint = adsk.core.Point3D.create(0,0,0)
sketchOutline.offset(curvesProfile,dirPoint,2.0)&lt;/PRE&gt;&lt;P&gt;I guess it has something to do with an internal Fusion bug combining offset and mirroring. Through the UI I cannot chain select the hole profile, only the part which I created by hand but not the mirrors thereof.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried a workaround by offsetting each curve segment by itself. The offset is in the right direction but the offsetted curves are not joined proper. Either they intersect or there are small open segments so I dont get a closed loop. Is there any fix planned for this problem or is there a known workaround so one gets a closed curve from the offset?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Hannes&lt;/P&gt;</description>
    <pubDate>Tue, 03 Jan 2017 10:26:13 GMT</pubDate>
    <dc:creator>h.nm</dc:creator>
    <dc:date>2017-01-03T10:26:13Z</dc:date>
    <item>
      <title>Mirror and offset bug?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/mirror-and-offset-bug/m-p/6779160#M18755</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ran into a weird behaviour trying to offset a closed loop. The profile is symmetric around the two sketch axis and consists of lines, arcs and splines in one quarter of the coordinate system which then get mirrored around the two axis. If I try to offset the profile the usual way it always offsets to the outside never to the inside no matter what direction point I choose.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;profileOutline = sketchOutline.profiles.item(0)   
for loop in profileOutline.profileLoops:
    if loop.isOuter:
       loopOutline = loop
       break
            
curvesProfile=adsk.core.ObjectCollection.create()
for curve in loopOutline.profileCurves:        
   curvesProfile.add(curve.sketchEntity)

#Origin is in the profile, other points give the same result        
dirPoint = adsk.core.Point3D.create(0,0,0)
sketchOutline.offset(curvesProfile,dirPoint,2.0)&lt;/PRE&gt;&lt;P&gt;I guess it has something to do with an internal Fusion bug combining offset and mirroring. Through the UI I cannot chain select the hole profile, only the part which I created by hand but not the mirrors thereof.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried a workaround by offsetting each curve segment by itself. The offset is in the right direction but the offsetted curves are not joined proper. Either they intersect or there are small open segments so I dont get a closed loop. Is there any fix planned for this problem or is there a known workaround so one gets a closed curve from the offset?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Hannes&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2017 10:26:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/mirror-and-offset-bug/m-p/6779160#M18755</guid>
      <dc:creator>h.nm</dc:creator>
      <dc:date>2017-01-03T10:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Mirror and offset bug?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/mirror-and-offset-bug/m-p/6782655#M18756</link>
      <description>&lt;P&gt;Can you post the code that creates the sketch or at least a design that has a sketch that demonstrates the problem? &amp;nbsp;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 17:27:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/mirror-and-offset-bug/m-p/6782655#M18756</guid>
      <dc:creator>ekinsb</dc:creator>
      <dc:date>2017-01-04T17:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Mirror and offset bug?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/mirror-and-offset-bug/m-p/7556116#M18757</link>
      <description>&lt;P&gt;I found the (maybe?) bug. Assume you have an open loop and the mirror line is at the endpoints of that loop, like in the following picture.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto 2017-11-19 um 11.18.54.png" style="width: 200px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/428234iB1011A66E4295897/image-size/small?v=v2&amp;amp;px=200" role="button" title="Bildschirmfoto 2017-11-19 um 11.18.54.png" alt="Bildschirmfoto 2017-11-19 um 11.18.54.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If you mirror such a profile you get a closed profile but Fusion also seems mirror the endpoints and does not merge them. You end up with two points at the mirror line rather than just one.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto 2017-11-19 um 11.19.19.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/428235iBAF900FB6A9C2D90/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bildschirmfoto 2017-11-19 um 11.19.19.png" alt="Bildschirmfoto 2017-11-19 um 11.19.19.png" /&gt;&lt;/span&gt;(how it is supposed to be)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto 2017-11-19 um 11.19.28.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/428236i56F74AB5A91B8F94/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bildschirmfoto 2017-11-19 um 11.19.28.png" alt="Bildschirmfoto 2017-11-19 um 11.19.28.png" /&gt;&lt;/span&gt;(at the endpoints)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;This seems to break the offset chain. You can't select the whole profile to offset.&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="Bildschirmfoto 2017-11-19 um 11.28.13.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/428237i916938321735FF69/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bildschirmfoto 2017-11-19 um 11.28.13.png" alt="Bildschirmfoto 2017-11-19 um 11.28.13.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A workaround is to drag one of the problematic points a little bit away and right back to where it was. This merges the two points into one and you now can select the whole profile to offset.&lt;/P&gt;&lt;P&gt;If this behavior is intended could someone explain it? If not, this should be fixed in the mirror algorhitm I guess.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Hannes&lt;/P&gt;</description>
      <pubDate>Sun, 19 Nov 2017 10:33:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/mirror-and-offset-bug/m-p/7556116#M18757</guid>
      <dc:creator>h.nm</dc:creator>
      <dc:date>2017-11-19T10:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Mirror and offset bug?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/mirror-and-offset-bug/m-p/7556855#M18758</link>
      <description>&lt;P&gt;I'm not surprised by the behavior you're describing. Profiles in Fusion are based on the positions of geometry and do not rely on constraints at all.&amp;nbsp; For example, I could draw four lines to create a rectangular shape where each line is completely independent of the others except that their end points happen to be at the same coordinate. A nice rectangular profile will be calculated and available to use as input for features, but the lines are completely independent of each other and an operation, like offset, would only use the single selected line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is another example to better illustrate this.&amp;nbsp; I've drawn four lines that having nothing to do with each other except that they happen to overlap.&amp;nbsp; Even though the end points are completely different, Fusion 360 is still able to find a profile and allow you to use it in your design.&amp;nbsp; If you wanted to offset that profile shape, you can't because it doesn't even exist as sketch geometry but is just computed as a result of the profile computation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="LinesIntersect.png" style="width: 302px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/428377iFD2A0418B7E554D3/image-dimensions/302x225?v=v2" width="302" height="225" role="button" title="LinesIntersect.png" alt="LinesIntersect.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your case, the three lines are being mirrored and because the end points of the lines happen to connect geometrically a profile can be calculated. Here's a variation of your example that better helps to illustrate this.&amp;nbsp; I have the three connected lines and the mirror line.&amp;nbsp; In this case, the mirrored lines end up overlapping so the end points don't connect.&amp;nbsp; However, the desired profile is still found, but it's more obvious in this case why offsetting the entire shape wouldn't be expected to work.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="LineMirror.png" style="width: 160px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/428383i07D693051B6E4DBA/image-size/large?v=v2&amp;amp;px=999" role="button" title="LineMirror.png" alt="LineMirror.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Nov 2017 22:22:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/mirror-and-offset-bug/m-p/7556855#M18758</guid>
      <dc:creator>ekinsb</dc:creator>
      <dc:date>2017-11-19T22:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Mirror and offset bug?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/mirror-and-offset-bug/m-p/7847383#M18759</link>
      <description>&lt;P&gt;Ekinsb's explanation makes sense, but how do you ultimately make an entity chain with its mirror?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've had luck with a workaround if the lines or arcs being mirrored are not collinear&amp;nbsp;or tangential to their mirrored entities by using the extend and trim tools.&amp;nbsp; However,&amp;nbsp; if the entities are perpendicular to the mirror entity then the extend and trim trick doesn't work the same way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="iframe-container"&gt;&lt;IFRAME width="640" height="590" src="https://screencast.autodesk.com/Embed/Timeline/1021055e-3cfb-4567-9e0f-c1985ecb264f" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 20:25:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/mirror-and-offset-bug/m-p/7847383#M18759</guid>
      <dc:creator>peplinski.john</dc:creator>
      <dc:date>2018-03-12T20:25:32Z</dc:date>
    </item>
  </channel>
</rss>

