<?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 Display &amp;quot;PROPERTIES&amp;quot; box using a Fusion 360 Python command in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/display-quot-properties-quot-box-using-a-fusion-360-python/m-p/10142376#M9285</link>
    <description>&lt;P&gt;Can anybody help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to display the "PROPERTIES" box using a Fusion 360 Python command?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see the attached picture.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Darren&lt;/P&gt;</description>
    <pubDate>Tue, 09 Mar 2021 15:26:42 GMT</pubDate>
    <dc:creator>isocam</dc:creator>
    <dc:date>2021-03-09T15:26:42Z</dc:date>
    <item>
      <title>Display "PROPERTIES" box using a Fusion 360 Python command</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/display-quot-properties-quot-box-using-a-fusion-360-python/m-p/10142376#M9285</link>
      <description>&lt;P&gt;Can anybody help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to display the "PROPERTIES" box using a Fusion 360 Python command?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see the attached picture.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Darren&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 15:26:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/display-quot-properties-quot-box-using-a-fusion-360-python/m-p/10142376#M9285</guid>
      <dc:creator>isocam</dc:creator>
      <dc:date>2021-03-09T15:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Display "PROPERTIES" box using a Fusion 360 Python command</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/display-quot-properties-quot-box-using-a-fusion-360-python/m-p/10142485#M9286</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/84538"&gt;@isocam&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this.&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;# Fusion360API Python script
import adsk.core, adsk.fusion, traceback

def run(context):
    ui = None
    try:
        app = adsk.core.Application.get()
        ui = app.userInterface
        des = app.activeProduct
        root = des.rootComponent

        # select brepbody
        sels = ui.activeSelections
        sels.add(root.bRepBodies[0])

        # show props - textcommands
        app.executeTextCommand(u'Commands.Start FusionPropertiesCommand')
    except:
        if ui:
            ui.messageBox('Failed:\n{}'.format(traceback.format_exc()))&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 09 Mar 2021 15:56:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/display-quot-properties-quot-box-using-a-fusion-360-python/m-p/10142485#M9286</guid>
      <dc:creator>kandennti</dc:creator>
      <dc:date>2021-03-09T15:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Display "PROPERTIES" box using a Fusion 360 Python command</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/display-quot-properties-quot-box-using-a-fusion-360-python/m-p/10142967#M9287</link>
      <description>&lt;P&gt;Unfortunately, I don't see a good solution for this.&amp;nbsp; Typically, when you just need to start a command you can execute it directly.&amp;nbsp; This is what's demonstrated in the previous post.&amp;nbsp; The recommended way to execute a command through the API is to get the command definition, using the ID of the command and then execute it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;cmdDef = ui.commandDefinitions.itemById('FusionPropertiesCommand')
cmdDef.execute()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will work for any command but what you're doing is the equivalent of clicking the button in the user interface to start the command and you can't do anything to control the command after that.&amp;nbsp; Some commands are context-sensitive, so when they're executed they'll work with whatever is currently active or selected.&amp;nbsp; In those cases, you need to make sure the context is correct before executing the command.&lt;BR /&gt;&lt;BR /&gt;The Properties command shows the properties for the component you select in the browser when you run the command.&amp;nbsp; I wasn't able to find a way to set the context so the Properties command would display for a particular component.&amp;nbsp; In fact, when I directly run the Properties command, the dialog is displayed with no data.&amp;nbsp; Probably because it doesn't know which component to display information for.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 18:59:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/display-quot-properties-quot-box-using-a-fusion-360-python/m-p/10142967#M9287</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2021-03-09T18:59:40Z</dc:date>
    </item>
  </channel>
</rss>

