<?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: Executing Fusion command depending on context from external script in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/executing-fusion-command-depending-on-context-from-external/m-p/11630499#M8481</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;have u get it Running?&amp;nbsp;&lt;BR /&gt;i‘m new to touch panel and would like to add the functions from 3d connexion space mouse pro.&lt;/P&gt;</description>
    <pubDate>Mon, 19 Dec 2022 20:36:30 GMT</pubDate>
    <dc:creator>m.tozzi91</dc:creator>
    <dc:date>2022-12-19T20:36:30Z</dc:date>
    <item>
      <title>Executing Fusion command depending on context from external script</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/executing-fusion-command-depending-on-context-from-external/m-p/10459999#M8479</link>
      <description>&lt;P&gt;After looking through the API documentation and viewing many video's I was encouraged to write my questions to this forum. Here we go: sorry that I could not easily locate this information.&lt;BR /&gt;&lt;BR /&gt;I am looking for a way to add a configurable keyboard (Touch Portal, see &lt;A href="https://www.touch-portal.com/" target="_blank"&gt;https://www.touch-portal.com/&lt;/A&gt; ) for Fusion 360. You more or less would get the LCD buttons on a tablet, much like a 3Dconnexion Spacemouse Enterprise (though better, as for Fusion this mouse does not change buttons on context, like it does for NX e.g.).&lt;BR /&gt;&lt;BR /&gt;I already extracted the necessary icons (thousands of .png files) from the runtime resources, so I can build pages with buttons.&lt;BR /&gt;&lt;BR /&gt;For this to work I need two functionalities:&lt;BR /&gt;- Awareness of the context that fusion 360 is in to know which commands are applicable: solid/surface/mesh/sheet metal/sketch and&amp;nbsp; Create/prepare/modify/assemble/assemble/construct&lt;BR /&gt;&lt;BR /&gt;- A manner to execute an external script or means to send keystrokes to Fusion 360 to execute a command "as if" a shortcut key is pressed. Touch portal CAN send keystrokes to Fusion: shortcuts work, but many commands will not have shortcuts.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;for the first: creating a file on disk whenever the context changes would be nice, e.g. when a transition occurs between Solid and sketch (but also surface/mesh/sheet metal tools). Where could this be integrated in the scripting environment?&lt;BR /&gt;&lt;BR /&gt;for the second: Could I send a keystroke to Fusion upon which a script is executed? Ideally taking into account parameters that I provide? If a parameter cannot be provided, I could provide the command to use in a text file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There was a way to "list" all possible commands from a script, but I need to locate this again. I link to this would be helpful.&lt;BR /&gt;&lt;BR /&gt;Any hints and tips would be appreciated. Once finished I will make this available for anyone to use (no guarantees on timing though).&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="ruudrademaker_0-1626026289121.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/939950i65836D75824A7A4D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ruudrademaker_0-1626026289121.png" alt="ruudrademaker_0-1626026289121.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jul 2021 18:00:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/executing-fusion-command-depending-on-context-from-external/m-p/10459999#M8479</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-11T18:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Executing Fusion command depending on context from external script</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/executing-fusion-command-depending-on-context-from-external/m-p/10460354#M8480</link>
      <description>-edit- I found that I could list all Control ID's through the sample script.&lt;BR /&gt;Line 7234: Control ID: FusionCreateNewComponentCommand&lt;BR /&gt;Line 7247: Control ID: SketchCreate&lt;BR /&gt;Line 7260: Control ID: TSplineBaseFeatureCreationCommand&lt;BR /&gt;Line 7273: Control ID: PushDeriveCommand&lt;BR /&gt;Line 7286: Control ID: SeparatorAfter_PushDeriveCommand&lt;BR /&gt;Line 7290: Control ID: Extrude&lt;BR /&gt;Line 7303: Control ID: Revolve&lt;BR /&gt;&lt;BR /&gt;etc.... So I assume I can easily run these commands, provided I can trigger the python script to tun from external.&lt;BR /&gt;</description>
      <pubDate>Sun, 11 Jul 2021 23:02:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/executing-fusion-command-depending-on-context-from-external/m-p/10460354#M8480</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-11T23:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Executing Fusion command depending on context from external script</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/executing-fusion-command-depending-on-context-from-external/m-p/11630499#M8481</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;have u get it Running?&amp;nbsp;&lt;BR /&gt;i‘m new to touch panel and would like to add the functions from 3d connexion space mouse pro.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2022 20:36:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/executing-fusion-command-depending-on-context-from-external/m-p/11630499#M8481</guid>
      <dc:creator>m.tozzi91</dc:creator>
      <dc:date>2022-12-19T20:36:30Z</dc:date>
    </item>
  </channel>
</rss>

