<?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: Setting up hotkeys. in AutoCAD Electrical Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-electrical-forum/setting-up-hotkeys/m-p/13417463#M213</link>
    <description>&lt;P&gt;-&lt;/P&gt;</description>
    <pubDate>Wed, 09 Apr 2025 18:07:25 GMT</pubDate>
    <dc:creator>arshdeepsingh404</dc:creator>
    <dc:date>2025-04-09T18:07:25Z</dc:date>
    <item>
      <title>Setting up hotkeys.</title>
      <link>https://forums.autodesk.com/t5/autocad-electrical-forum/setting-up-hotkeys/m-p/13414518#M209</link>
      <description>&lt;P&gt;Hello, I am confused. I do not understand the reasons why I cannot set up hotkeys.&lt;BR /&gt;In the screenshot below you can see that the Shortcut Keys folder is empty. I can only add new Temporary overrides.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="oleh_m_0-1744107928952.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1486928iC8384431A8A6C6DE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="oleh_m_0-1744107928952.png" alt="oleh_m_0-1744107928952.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I assign something in Temporary override to Shift+q or Shift+1. I get text in the command line and not the command execution!&lt;BR /&gt;But this contradicts all the tutorials that I watch on YouTube.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to switch between two modes:&lt;BR /&gt;F9 SNAPMODE - Snap to drawing grid&lt;BR /&gt;F3 OSNAP&lt;BR /&gt;Chatgpt wrote me a script for this:&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;(defun c:toggleSnapModes ()&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;(if (= (getvar "OSMODE") 0)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;(progn&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;(setvar "OSMODE" 167)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;(setvar "SNAPMODE" 0)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;(princ "\nObject Snap ON , Snap Mode OFF.")&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;(progn&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;(setvar "OSMODE" 0)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;(setvar "SNAPMODE" 1)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;(princ "\nObject Snap OFF., Snap ModeON.")&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;(princ)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;How can I assign this script to run when pressing Shift+q&lt;/P&gt;</description>
      <pubDate>Tue, 08 Apr 2025 10:43:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-electrical-forum/setting-up-hotkeys/m-p/13414518#M209</guid>
      <dc:creator>oleh_m</dc:creator>
      <dc:date>2025-04-08T10:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up hotkeys.</title>
      <link>https://forums.autodesk.com/t5/autocad-electrical-forum/setting-up-hotkeys/m-p/13416089#M210</link>
      <description>&lt;P&gt;ChatGPT has written you a lisp, not a script. You can run it by loading the lisp and typing the command togglesnapmodes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;there are many resources you can read for assistance on this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.google.com/search?q=how+to+load+a+run+a+lisp&amp;amp;rlz=1C1GCEA_enGB1120GB1120&amp;amp;oq=how+to+load+a+run+a+lisp&amp;amp;gs_lcrp=EgZjaHJvbWUyBggAEEUYOTIHCAEQABiABDIHCAIQABiABDIHCAMQABiABDIHCAQQABiABDIHCAUQABiABDIHCAYQABiABDIHCAcQABiABDIHCAgQABiABDIHCAkQABiABNIBCDQwMDNqMGo3qAIAsAIA&amp;amp;sourceid=chrome&amp;amp;ie=UTF-8" target="_blank"&gt;https://www.google.com/search?q=how+to+load+a+run+a+lisp&amp;amp;rlz=1C1GCEA_enGB1120GB1120&amp;amp;oq=how+to+load+a+run+a+lisp&amp;amp;gs_lcrp=EgZjaHJvbWUyBggAEEUYOTIHCAEQABiABDIHCAIQABiABDIHCAMQABiABDIHCAQQABiABDIHCAUQABiABDIHCAYQABiABDIHCAcQABiABDIHCAgQABiABDIHCAkQABiABNIBCDQwMDNqMGo3qAIAsAIA&amp;amp;sourceid=chrome&amp;amp;ie=UTF-8&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sorry, I can't help with shortkeys&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 05:56:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-electrical-forum/setting-up-hotkeys/m-p/13416089#M210</guid>
      <dc:creator>james.mcmillanNYR6A</dc:creator>
      <dc:date>2025-04-09T05:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up hotkeys.</title>
      <link>https://forums.autodesk.com/t5/autocad-electrical-forum/setting-up-hotkeys/m-p/13416353#M211</link>
      <description>&lt;P&gt;Thank you for your attention to my question.&lt;BR /&gt;But the main problem is that I can't assign hot keys.&lt;BR /&gt;I also need to run this code by pressing hot keys, which I can't achieve.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 08:21:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-electrical-forum/setting-up-hotkeys/m-p/13416353#M211</guid>
      <dc:creator>oleh_m</dc:creator>
      <dc:date>2025-04-09T08:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up hotkeys.</title>
      <link>https://forums.autodesk.com/t5/autocad-electrical-forum/setting-up-hotkeys/m-p/13417414#M212</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I don't have experience with AutoLISP expressions so I am not sure if this will help. But to assign a hotkey, you have to go to the Command List below and drag the command (such as Trim) to the shortcut keys button you had right-clicked.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Niklas_BalkHJBPA_3-1744219441922.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1487581iC6297D3D2A2D06B7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Niklas_BalkHJBPA_3-1744219441922.png" alt="Niklas_BalkHJBPA_3-1744219441922.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then in the "properties" tab on the right in the "Access" row, type the keybind you want for that.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Niklas_BalkHJBPA_1-1744219368593.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1487579i234DA5A7E5C3CB0C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Niklas_BalkHJBPA_1-1744219368593.png" alt="Niklas_BalkHJBPA_1-1744219368593.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Niklas_BalkHJBPA_2-1744219399749.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1487580i704D0A0A2CD959E3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Niklas_BalkHJBPA_2-1744219399749.png" alt="Niklas_BalkHJBPA_2-1744219399749.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Again I'm not sure if this applies to LISP expressions but give it a shot and let me know if it worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 17:24:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-electrical-forum/setting-up-hotkeys/m-p/13417414#M212</guid>
      <dc:creator>Niklas_BalkHJBPA</dc:creator>
      <dc:date>2025-04-09T17:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up hotkeys.</title>
      <link>https://forums.autodesk.com/t5/autocad-electrical-forum/setting-up-hotkeys/m-p/13417463#M213</link>
      <description>&lt;P&gt;-&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 18:07:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-electrical-forum/setting-up-hotkeys/m-p/13417463#M213</guid>
      <dc:creator>arshdeepsingh404</dc:creator>
      <dc:date>2025-04-09T18:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up hotkeys.</title>
      <link>https://forums.autodesk.com/t5/autocad-electrical-forum/setting-up-hotkeys/m-p/13417470#M214</link>
      <description>&lt;P&gt;The AutoLISP programs are not available as commands in the CUI to add shortcuts by default.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check out my blog where I explain how to automatically load AutoLISP program as a command into AutoCAD and add it to the ribbon.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once you have the AutoLISP program assigned to an AutoCAD command, you can assign shortcut keys to it like Niklas&amp;nbsp;pointed out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.autodesk.com/blogs/autocad/how-to-add-custom-autolisp-commands-into-the-autocad-ribbon/" target="_blank" rel="noopener"&gt;https://www.autodesk.com/blogs/autocad/how-to-add-custom-autolisp-commands-into-the-autocad-ribbon/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 18:09:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-electrical-forum/setting-up-hotkeys/m-p/13417470#M214</guid>
      <dc:creator>arshdeepsingh404</dc:creator>
      <dc:date>2025-04-09T18:09:53Z</dc:date>
    </item>
  </channel>
</rss>

