<?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: How to create a fillet between two curved surface in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-create-a-fillet-between-two-curved-surface/m-p/11835720#M4176</link>
    <description>&lt;P&gt;Thanks so much for your answer! I will try&lt;/P&gt;</description>
    <pubDate>Tue, 21 Mar 2023 08:43:46 GMT</pubDate>
    <dc:creator>ione_ianniruberto</dc:creator>
    <dc:date>2023-03-21T08:43:46Z</dc:date>
    <item>
      <title>How to create a fillet between two curved surface</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-create-a-fillet-between-two-curved-surface/m-p/11834461#M4173</link>
      <description>&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="immagineper forum.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1191024i00FE28D9EDFD19A6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="immagineper forum.png" alt="immagineper forum.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Hi, i have this porblem i want to write a code that create a fillet on the edge marked in the figure. Thi can be easily done seletcting the edge in the user interface, but I have no idea how to achive this writing a python code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would really appreciate some help. Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 17:36:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-create-a-fillet-between-two-curved-surface/m-p/11834461#M4173</guid>
      <dc:creator>ione_ianniruberto</dc:creator>
      <dc:date>2023-03-20T17:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a fillet between two curved surface</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-create-a-fillet-between-two-curved-surface/m-p/11835141#M4174</link>
      <description>&lt;P&gt;In this case, creating the fillet with the API is relatively easy, but the tricky part is identifying the edge you want to fillet. Interactively, as a user familiar with the geometry, it's very easy to click on the desired edge. But how would you describe to someone else that doesn't know anything about the model which edge should be filleted? That's essentially what you need to do in your program; figure out some rules that result in finding the desired edge and then write the code using those rules.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe something like finding a cylinder or a certain diameter that is the furthest of any others in the negative X direction, and then finding the edge of the cylinder that is not a circle. That logic is based on the topology or the ability to get the edges of a face, and the faces that an edge connects. It also uses geometry to find cylinders of a certain radius and their position in space.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another approach is to find the edge that is at a specific X,Y,Z location in space. Likely, you don't have this information, but in cases where you do, that can be an efficient way to find geometry.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a link to a class I presented several years ago that goes into more detail about this.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.autodesk.com/autodesk-university/class/Understanding-Geometry-and-B-Rep-Inventor-and-Fusion-360-2018" target="_blank"&gt;https://www.autodesk.com/autodesk-university/class/Understanding-Geometry-and-B-Rep-Inventor-and-Fusion-360-2018&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once you've found the edge you should be able to use code like that shown in this sample to create the fillet.&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-7105bf44-52db-4067-8d7a-afd73c24e954" target="_blank"&gt;https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-7105bf44-52db-4067-8d7a-afd73c24e954&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 00:03:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-create-a-fillet-between-two-curved-surface/m-p/11835141#M4174</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2023-03-21T00:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a fillet between two curved surface</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-create-a-fillet-between-two-curved-surface/m-p/11835189#M4175</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13518021"&gt;@ione_ianniruberto&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The easiest way to have the user select in a script is to use the UserInterface.selectEntity method.&lt;/P&gt;
&lt;P&gt;Here is a sample that lets the user select an edge to create a fillet.&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;# Fusion360API Python script

import traceback
import adsk.core as core
import adsk.fusion as fusion

def run(context):
    ui = core.UserInterface.cast(None)
    try:
        app: core.Application = core.Application.get()
        ui = app.userInterface

        msg: str = 'Select Edge'
        selFilter: str = 'Edges'
        sel: core.Selection = selectEnt(msg, selFilter)
        if not sel:
            return

        edge: fusion.BRepEdge = sel.entity
        create_fillet(edge)

    except:
        if ui:
            ui.messageBox('Failed:\n{}'.format(traceback.format_exc()))


def create_fillet(edge: fusion.BRepEdge) -&amp;gt; fusion.FilletFeature:
    edgeCollection: core.ObjectCollection = core.ObjectCollection.create()
    edgeCollection.add(edge)

    comp: fusion.Component = edge.body.parentComponent
    filletFeats: fusion.FilletFeatures = comp.features.filletFeatures
    filletIpt: fusion.FilletFeatureInput = filletFeats.createInput()
    filletIpt.edgeSetInputs.addConstantRadiusEdgeSet(
        edgeCollection,
        core.ValueInput.createByReal(1),
        True
    )

    return filletFeats.add(filletIpt)


def selectEnt(
    msg: str,
    filterStr: str
) -&amp;gt; core.Selection:

    try:
        app: core.Application = core.Application.get()
        ui: core.UserInterface = app.userInterface
        sel = ui.selectEntity(msg, filterStr)
        return sel
    except:
        return None&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;Or is your question about how to have the API automatically find the edges?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 00:32:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-create-a-fillet-between-two-curved-surface/m-p/11835189#M4175</guid>
      <dc:creator>kandennti</dc:creator>
      <dc:date>2023-03-21T00:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a fillet between two curved surface</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-create-a-fillet-between-two-curved-surface/m-p/11835720#M4176</link>
      <description>&lt;P&gt;Thanks so much for your answer! I will try&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 08:43:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-create-a-fillet-between-two-curved-surface/m-p/11835720#M4176</guid>
      <dc:creator>ione_ianniruberto</dc:creator>
      <dc:date>2023-03-21T08:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a fillet between two curved surface</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-create-a-fillet-between-two-curved-surface/m-p/11835723#M4177</link>
      <description>&lt;P&gt;Thanks for your answer! yes I would like to auotmate the process through an API code&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 08:45:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-create-a-fillet-between-two-curved-surface/m-p/11835723#M4177</guid>
      <dc:creator>ione_ianniruberto</dc:creator>
      <dc:date>2023-03-21T08:45:44Z</dc:date>
    </item>
  </channel>
</rss>

