<?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: Shaded/Wireframe Shortcut Macro in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/shaded-wireframe-shortcut-macro/m-p/6053758#M20318</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately there was no API to support setting shortcut key. I would like to recommend you log a request in our ideastation and then our product management team could review the requirement and other users could also vote on that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://forums.autodesk.com/t5/ideastation-request-a-feature-or/idb-p/125" target="_blank"&gt;http://forums.autodesk.com/t5/ideastation-request-a-feature-or/idb-p/125&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Marshal&lt;/P&gt;</description>
    <pubDate>Wed, 24 Feb 2016 05:35:45 GMT</pubDate>
    <dc:creator>marshaltu</dc:creator>
    <dc:date>2016-02-24T05:35:45Z</dc:date>
    <item>
      <title>Shaded/Wireframe Shortcut Macro</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/shaded-wireframe-shortcut-macro/m-p/6051958#M20317</link>
      <description>&lt;DIV class="lia-message-heading lia-component-message-header"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-message-body"&gt;&lt;DIV class="lia-message-body-content"&gt;Could someone please help me with a Macros to toggle between Shaded view and Wireframe view with a shortcut key?&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-message-body-content"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/219861iA20C90565C9E5D59/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="wireframe.png" title="wireframe.png" /&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 23 Feb 2016 08:29:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/shaded-wireframe-shortcut-macro/m-p/6051958#M20317</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-23T08:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Shaded/Wireframe Shortcut Macro</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/shaded-wireframe-shortcut-macro/m-p/6053758#M20318</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately there was no API to support setting shortcut key. I would like to recommend you log a request in our ideastation and then our product management team could review the requirement and other users could also vote on that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://forums.autodesk.com/t5/ideastation-request-a-feature-or/idb-p/125" target="_blank"&gt;http://forums.autodesk.com/t5/ideastation-request-a-feature-or/idb-p/125&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Marshal&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2016 05:35:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/shaded-wireframe-shortcut-macro/m-p/6053758#M20318</guid>
      <dc:creator>marshaltu</dc:creator>
      <dc:date>2016-02-24T05:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Shaded/Wireframe Shortcut Macro</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/shaded-wireframe-shortcut-macro/m-p/6054656#M20319</link>
      <description>&lt;P&gt;As Marshal said, Fusion doesn't currently support custom shortcut keys, from either from the user-interface or the API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's not a shortcut key, but I wrote a simple add-in that creates a new button next to the "Display Settings" command that toggles the display between wireframe and shaded.&amp;nbsp; You can get the add-in &lt;U&gt;&lt;A href="http://modthemachine.typepad.com/ToggleVisualStyle.zip" target="_self"&gt;here&lt;/A&gt;&lt;/U&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG title="ToggleDisplay.png" alt="ToggleDisplay.png" src="https://forums.autodesk.com/t5/image/serverpage/image-id/220216iACA4E13998BB0522/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After a bit of research it looks like it might be possible to catch the keyboard events at a low level and react to that, which would essentally allow you to implement shortcut keys on your own.&amp;nbsp; Here's one post I found that discusses this, (&lt;A href="http://stackoverflow.com/questions/9817531/applying-low-level-keyboard-hooks-with-python-and-setwindowshookexa).&amp;nbsp;" target="_blank"&gt;http://stackoverflow.com/questions/9817531/applying-low-level-keyboard-hooks-with-python-and-setwindowshookexa).&amp;nbsp;&lt;/A&gt; However, this is Windows specific.&amp;nbsp; There were also some posts for OSX, but it looks like it would have to be a different implementation for Windows and Mac.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2016 16:14:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/shaded-wireframe-shortcut-macro/m-p/6054656#M20319</guid>
      <dc:creator>ekinsb</dc:creator>
      <dc:date>2016-02-24T16:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Shaded/Wireframe Shortcut Macro</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/shaded-wireframe-shortcut-macro/m-p/6055950#M20320</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/116141"&gt;@ekinsb﻿&lt;/a&gt;&lt;SPAN&gt;!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Perfect, it can be used with autohotkey and gives the wanted result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Autohotkey code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;F1::
IfWinActive, Autodesk Fusion 360&amp;nbsp;
{
&amp;nbsp; Send, s
&amp;nbsp; SendInput toggle{Enter}
&amp;nbsp; return
}&lt;/PRE&gt;&lt;P&gt;By pressing F1 it toogle view.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for your add-in, I accepted your post as&amp;nbsp;solution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sure it requires a builtin customizable shortcut feature in fusion 360.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 11:16:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/shaded-wireframe-shortcut-macro/m-p/6055950#M20320</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-25T11:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: Shaded/Wireframe Shortcut Macro</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/shaded-wireframe-shortcut-macro/m-p/6335850#M20321</link>
      <description>&lt;P&gt;Hi Brian,&lt;/P&gt;&lt;P&gt;Is it possible to create an Add-In for Inventor to toggle the display settings?&lt;/P&gt;&lt;P&gt;If so, could you please show an example?&lt;/P&gt;&lt;P&gt;Thanks a lot, Lian&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 20:50:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/shaded-wireframe-shortcut-macro/m-p/6335850#M20321</guid>
      <dc:creator>lian_xie</dc:creator>
      <dc:date>2016-05-18T20:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Shaded/Wireframe Shortcut Macro</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/shaded-wireframe-shortcut-macro/m-p/6547006#M20322</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;İ have a problem like this.&lt;/P&gt;&lt;P&gt;I want to display a sphere at wireframe mode but the program does not do it as desired. &amp;nbsp;when I want to the sphere more detailed, program displays just a &amp;nbsp;circle. How can I solve this problem?&lt;/P&gt;&lt;P&gt;Please help me, thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2016 14:26:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/shaded-wireframe-shortcut-macro/m-p/6547006#M20322</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-07T14:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Shaded/Wireframe Shortcut Macro</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/shaded-wireframe-shortcut-macro/m-p/6547022#M20323</link>
      <description>&lt;P&gt;okey, i &amp;nbsp;solved it. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2016 14:31:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/shaded-wireframe-shortcut-macro/m-p/6547022#M20323</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-07T14:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Shaded/Wireframe Shortcut Macro</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/shaded-wireframe-shortcut-macro/m-p/7265722#M20324</link>
      <description>&lt;P&gt;Brian,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a great Add In. However, I am wanting to be able to toggle between "Shaded" and "Shaded with Wireframe". I tried to modify your Add in to but to no avail. I just don't have the coding knowledge. Would it be too much to ask for you to modify and post a version that would accomplish that task.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Micheal&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2017 14:31:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/shaded-wireframe-shortcut-macro/m-p/7265722#M20324</guid>
      <dc:creator>polygrinder</dc:creator>
      <dc:date>2017-07-31T14:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: Shaded/Wireframe Shortcut Macro</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/shaded-wireframe-shortcut-macro/m-p/7835704#M20325</link>
      <description>&lt;P&gt;What is the icon at the end? It looks like a white sideways christmas tree.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 18:40:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/shaded-wireframe-shortcut-macro/m-p/7835704#M20325</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-07T18:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Shaded/Wireframe Shortcut Macro</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/shaded-wireframe-shortcut-macro/m-p/8295852#M20326</link>
      <description>&lt;P&gt;In case you're still wondering about turning on hidden edges with Brian's add-in, change the if statement in MyCommandCreatedHandler.notify to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;        if currentStyle == 2:
            # Set to wireframe.
            app.activeViewport.visualStyle = 1
        else:
            # Set to shaded with visible edges.
            app.activeViewport.visualStyle = 2 # Is actually shaded with visible edges only.&lt;/PRE&gt;&lt;P&gt;The comments might be completely meaningless, as the docs are wrong and this was figured out with trial and error. Broken docs here:&amp;nbsp;&lt;A href="https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-b821dca0-874b-49ca-8c37-59f7b22bfc6f" target="_blank"&gt;https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-b821dca0-874b-49ca-8c37-59f7b22bfc6f&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 04:35:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/shaded-wireframe-shortcut-macro/m-p/8295852#M20326</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-27T04:35:48Z</dc:date>
    </item>
  </channel>
</rss>

