<?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: Revolve Profile from a Sketch Script in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/revolve-profile-from-a-sketch-script/m-p/13639770#M36</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/17365111"&gt;@michwisn9898&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You can refer to the Revolve feature example mentioned below for more details :&lt;BR /&gt;&lt;A href="https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-407f1b28-fd08-11e4-a671-3417ebd3d5be" target="_blank" rel="noopener"&gt;https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-407f1b28-fd08-11e4-a671-3417ebd3d5be&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 20 May 2025 08:11:59 GMT</pubDate>
    <dc:creator>RohitMane_</dc:creator>
    <dc:date>2025-05-20T08:11:59Z</dc:date>
    <item>
      <title>Revolve Profile from a Sketch Script</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/revolve-profile-from-a-sketch-script/m-p/13632100#M35</link>
      <description>&lt;P&gt;Hello I am trying to create a script that will&amp;nbsp; select multiple profiles from a single sketch and revolve around an axis (Max Y or Min Y).&amp;nbsp;&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="Fig 1. Single Sketch, Multiple Profiles" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1533738iF58E99AF97FDDBF3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Fig1.PNG" alt="Fig 1. Single Sketch, Multiple Profiles" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Fig 1. Single Sketch, Multiple Profiles&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then will create two different bodies as:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fig 2, Separate bodies created" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1533742iD8149BC1852DB470/image-size/large?v=v2&amp;amp;px=999" role="button" title="fig 2.PNG" alt="Fig 2, Separate bodies created" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Fig 2, Separate bodies created&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This should create separate bodies from the profile.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have already created the code, however I am having issues with the revolve aspect of the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;"""This file acts as the main module for this script."""

import traceback
import adsk.core
import adsk.fusion
# import adsk.cam

# Initialize the global variables for the Application and UserInterface objects.
app = adsk.core.Application.get()
ui  = app.userInterface


def run(_context: str):
    """This function is called by Fusion when the script is run."""

    try:

        design = app.activeProduct
        rootComp = design.rootComponent

        profiles = adsk.core.ObjectCollection.create()

        while 1: 
            selection = ui.selectEntity("Select Profiles","Profiles")
            if selection:
                ui.messageBox("Selected")
                profiles.add(selection.entity)
                revolves = rootComp.features.revolveFeatures
                #Take profile revolve around a selected plane
                #Create new body
                #Name body (i.e A1, A2, ... , Z10)

            else:
                #break if shortcut is hit
                break


        if profiles.count &amp;gt; 0:
            ui.messageBox(str(profiles))

        
    except:  #pylint:disable=bare-except
        ui.messageBox("Failed")
        # Write the error message to the TEXT COMMANDS window.
        app.log(f'Failed:\n{traceback.format_exc()}')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I could pointed in the right direction that would be great. Thank you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much help is appreciated!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 14:08:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/revolve-profile-from-a-sketch-script/m-p/13632100#M35</guid>
      <dc:creator>michwisn9898</dc:creator>
      <dc:date>2025-05-15T14:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Revolve Profile from a Sketch Script</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/revolve-profile-from-a-sketch-script/m-p/13639770#M36</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/17365111"&gt;@michwisn9898&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You can refer to the Revolve feature example mentioned below for more details :&lt;BR /&gt;&lt;A href="https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-407f1b28-fd08-11e4-a671-3417ebd3d5be" target="_blank" rel="noopener"&gt;https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-407f1b28-fd08-11e4-a671-3417ebd3d5be&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 08:11:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/revolve-profile-from-a-sketch-script/m-p/13639770#M36</guid>
      <dc:creator>RohitMane_</dc:creator>
      <dc:date>2025-05-20T08:11:59Z</dc:date>
    </item>
  </channel>
</rss>

