<?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 Merge profiles in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/merge-profiles/m-p/7010741#M18309</link>
    <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am wondering, is it possible to merge profiles, to make one profile?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, I have draw some complicated geometry sketch via code, and&amp;nbsp;in fufure I will work only with whole sketch (I don't need inner lines).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May be it is possible to delete all inner lines (or modify them to the constructions lines), or some like that?&lt;/P&gt;&lt;P&gt;Right now I use such code:&lt;/P&gt;&lt;PRE&gt;profs = adsk.core.ObjectCollection.create()
        
    for prof in sketch.profiles:
        profs.add(prof)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works, but this is not what exactly I need.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Merge.JPG" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/343757iBA0D36333757613C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Merge.JPG" alt="Merge.JPG" /&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>Tue, 11 Apr 2017 23:47:12 GMT</pubDate>
    <dc:creator>copypastestd</dc:creator>
    <dc:date>2017-04-11T23:47:12Z</dc:date>
    <item>
      <title>Merge profiles</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/merge-profiles/m-p/7010741#M18309</link>
      <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am wondering, is it possible to merge profiles, to make one profile?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, I have draw some complicated geometry sketch via code, and&amp;nbsp;in fufure I will work only with whole sketch (I don't need inner lines).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May be it is possible to delete all inner lines (or modify them to the constructions lines), or some like that?&lt;/P&gt;&lt;P&gt;Right now I use such code:&lt;/P&gt;&lt;PRE&gt;profs = adsk.core.ObjectCollection.create()
        
    for prof in sketch.profiles:
        profs.add(prof)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works, but this is not what exactly I need.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Merge.JPG" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/343757iBA0D36333757613C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Merge.JPG" alt="Merge.JPG" /&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>Tue, 11 Apr 2017 23:47:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/merge-profiles/m-p/7010741#M18309</guid>
      <dc:creator>copypastestd</dc:creator>
      <dc:date>2017-04-11T23:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Merge profiles</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/merge-profiles/m-p/7013385#M18310</link>
      <description>&lt;P&gt;Profiles represent closed areas within a sketch. &amp;nbsp;The creation of profiles doesn't change the sketch in any way. &amp;nbsp;It's common that the curves in a profile will not have a 1-to-1 correspondence with the sketch entities. &amp;nbsp;In the example show below I drew two overlapping circles. &amp;nbsp;This results in three profiles with each one defined by two arcs. &amp;nbsp;The arcs don't exist in the sketch but were calculated as a result of the profile analysis. &amp;nbsp;The API provides access to each of these arcs as a ProfileCurve object along with the real sketch circle that it&amp;nbsp;was extracted from. I think you could do some geometric analysis to find all of the profile curves that are geometrically identical to another profile curve and ignore those. &amp;nbsp;That should leave you with the outer shape. &amp;nbsp;There isn't a simple way to geometrically compare them so it would take a fair amount of code to implement something like that.&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-center" image-alt="Profiles.png" style="width: 300px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/344179i819F3B710AB0C695/image-dimensions/300x207?v=v2" width="300" height="207" role="button" title="Profiles.png" alt="Profiles.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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 21:15:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/merge-profiles/m-p/7013385#M18310</guid>
      <dc:creator>ekinsb</dc:creator>
      <dc:date>2017-04-12T21:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Merge profiles</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/merge-profiles/m-p/7034801#M18311</link>
      <description>&lt;P&gt;Tnx for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was thinking about some algoritm which find all inner lines and trim them from sketch.&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="trim.jpg" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/348108i58A320F992E2A40D/image-size/large?v=v2&amp;amp;px=999" role="button" title="trim.jpg" alt="trim.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Apr 2017 00:40:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/merge-profiles/m-p/7034801#M18311</guid>
      <dc:creator>copypastestd</dc:creator>
      <dc:date>2017-04-22T00:40:42Z</dc:date>
    </item>
  </channel>
</rss>

