<?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: Calling a Lisp using Function Keys in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/calling-a-lisp-using-function-keys/m-p/12190903#M25080</link>
    <description>We have a guy in our mechanical department that sets up AutoCAD installations/updates, but he's not doing anything more than running the start up exe. I don't believe our IT department does anything regarding AutoCAD outside of making sure our Vault server is operational.&lt;BR /&gt;&lt;BR /&gt;In the load example you provided, will the (load"dothis") actually run the command, or is that going around manually loading the lisp in the APPLOAD menu?</description>
    <pubDate>Wed, 23 Aug 2023 12:37:45 GMT</pubDate>
    <dc:creator>schmidtjBEEVY</dc:creator>
    <dc:date>2023-08-23T12:37:45Z</dc:date>
    <item>
      <title>Calling a Lisp using Function Keys</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/calling-a-lisp-using-function-keys/m-p/12190768#M25074</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My company recently upgraded to using AutoCAD 2023 products, and it seems to have messed up my Object Snaps (I specifically use AutoCAD Electrical). If I open a drawing and press F3, instead of remembering what I typically have set for my object snaps, a dialog box pops up prompting me to select what Object Snaps I want enabled. I couldn't find a way to set my preferences in the options menu, so I wrote a lisp to do it. To call my lisp I have been typing "F3" instead of hitting the F3 key. I was wondering if anyone could tell me how to swap the F3 key from its usual function to calling my lisp?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advanced,&lt;/P&gt;&lt;P&gt;JD&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 11:50:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/calling-a-lisp-using-function-keys/m-p/12190768#M25074</guid>
      <dc:creator>schmidtjBEEVY</dc:creator>
      <dc:date>2023-08-23T11:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a Lisp using Function Keys</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/calling-a-lisp-using-function-keys/m-p/12190814#M25075</link>
      <description>&lt;P&gt;Usually when you don’t have any running osnaps preset then hitting F3 will bring up the osnap setting window&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.google.com/search?q=autocad+redefine+f3+keyboard+shortcut&amp;amp;client=safari&amp;amp;sca_esv=559361602&amp;amp;channel=iphone_bm&amp;amp;sxsrf=AB5stBjH99gKP9tK9yrkcbxYXOdjl3bVSg%3A1692791986486&amp;amp;source=hp&amp;amp;ei=svTlZPXZG_CYptQPwbau8A8&amp;amp;oq=autocad+redefine+F3+key&amp;amp;gs_lp=EhFtb2JpbGUtZ3dzLXdpei1ocBoCGAMiF2F1dG9jYWQgcmVkZWZpbmUgRjMga2V5KgIIATIFECEYoAEyCBAhGKABGIsDMggQIRigARiLAzIIECEYqwIYiwMyBRAhGKsCMgUQIRirAkigcFDxB1j7X3ABeACQAQCYAbEBoAGgGKoBBDAuMjO4AQHIAQD4AQGoAg_CAgcQIxjqAhgnwgIKECMYigUY6gIYJ8ICBBAjGCfCAhEQLhiABBixAxiDARjHARjRA8ICCxAAGIAEGLEDGIMBwgILEC4YigUYsQMYgwHCAhEQLhiDARjHARixAxjRAxiABMICCBAAGIAEGLEDwgIIEC4YgAQYsQPCAgsQABiABBixAxjJA8ICCBAAGIoFGJIDwgIHECMYigUYJ8ICGhAuGIAEGLEDGIMBGMcBGK8BGJgFGJ4FGJkFwgIXEC4YgAQYsQMYxwEYrwEYmAUYngUYmQXCAggQABiABBjJA8ICBRAAGIAEwgIGEAAYFhgewgIIECEYFhgeGB0&amp;amp;sclient=mobile-gws-wiz-hp#imgrc=SgVp8jH_CzkYMM&amp;amp;imgdii=Q7XMwkK4R8uLBM" target="_blank"&gt;https://www.google.com/search?q=autocad+redefine+f3+keyboard+shortcut&amp;amp;client=safari&amp;amp;sca_esv=559361602&amp;amp;channel=iphone_bm&amp;amp;sxsrf=AB5stBjH99gKP9tK9yrkcbxYXOdjl3bVSg%3A1692791986486&amp;amp;source=hp&amp;amp;ei=svTlZPXZG_CYptQPwbau8A8&amp;amp;oq=autocad+redefine+F3+key&amp;amp;gs_lp=EhFtb2JpbGUtZ3dzLXdpei1ocBoCGAMiF2F1dG9jYWQgcmVkZWZpbmUgRjMga2V5KgIIATIFECEYoAEyCBAhGKABGIsDMggQIRigARiLAzIIECEYqwIYiwMyBRAhGKsCMgUQIRirAkigcFDxB1j7X3ABeACQAQCYAbEBoAGgGKoBBDAuMjO4AQHIAQD4AQGoAg_CAgcQIxjqAhgnwgIKECMYigUY6gIYJ8ICBBAjGCfCAhEQLhiABBixAxiDARjHARjRA8ICCxAAGIAEGLEDGIMBwgILEC4YigUYsQMYgwHCAhEQLhiDARjHARixAxjRAxiABMICCBAAGIAEGLEDwgIIEC4YgAQYsQPCAgsQABiABBixAxjJA8ICCBAAGIoFGJIDwgIHECMYigUYJ8ICGhAuGIAEGLEDGIMBGMcBGK8BGJgFGJ4FGJkFwgIXEC4YgAQYsQMYxwEYrwEYmAUYngUYmQXCAggQABiABBjJA8ICBRAAGIAEwgIGEAAYFhgewgIIECEYFhgeGB0&amp;amp;sclient=mobile-gws-wiz-hp#imgrc=SgVp8jH_CzkYMM&amp;amp;imgdii=Q7XMwkK4R8uLBM&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Try this to reassign function keys&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/How-to-assign-keyboard-function-keys-to-AutoCAD-commands.html" target="_blank"&gt;https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/How-to-assign-keyboard-function-keys-to-AutoCAD-commands.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 12:07:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/calling-a-lisp-using-function-keys/m-p/12190814#M25075</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2023-08-23T12:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a Lisp using Function Keys</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/calling-a-lisp-using-function-keys/m-p/12190854#M25076</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1137264"&gt;@paullimapa&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Usually when you don’t have any running osnaps preset then hitting F3 will bring up the osnap setting window&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;For whatever reason if I close and then re-open a drawing, or open a drawing from my project manager that hasn't been opened yet in my current instance of acade, something seems to wipe away my presets. One of my coworkers that also uses acade has been having a similar issue, except his seems to get wiped just toggling the osnap menu on/off.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the links on how to reassign the F keys, I think I have the general concept down, but I don't understand how to get the new command I made to be tied to running the lisp. Do I need to put the function call into the macro field?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;JD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 12:21:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/calling-a-lisp-using-function-keys/m-p/12190854#M25076</guid>
      <dc:creator>schmidtjBEEVY</dc:creator>
      <dc:date>2023-08-23T12:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a Lisp using Function Keys</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/calling-a-lisp-using-function-keys/m-p/12190869#M25077</link>
      <description>&lt;P&gt;IMHO this happens only if you try to turn on osnaps, but no osnap mode is checked to turn on - OSMODE is 16384. Just set some modes on, close the ACAD and reopen it.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 12:24:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/calling-a-lisp-using-function-keys/m-p/12190869#M25077</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2023-08-23T12:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a Lisp using Function Keys</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/calling-a-lisp-using-function-keys/m-p/12190885#M25078</link>
      <description>&lt;P&gt;That’s very odd. I wonder if it’s a setting that launches at startup which resets AutoCAD? Do you have an IT department that sets up your AutoCAD?&lt;/P&gt;&lt;P&gt;And yes just enter the new command you want in the macro line. Make sure the lisp is loaded first. So if your new lisp command is called dothis.lsp then the macro line should look something like this:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;^C^C(load"dothis");dothis&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 12:30:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/calling-a-lisp-using-function-keys/m-p/12190885#M25078</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2023-08-23T12:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a Lisp using Function Keys</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/calling-a-lisp-using-function-keys/m-p/12190888#M25079</link>
      <description>Thanks, that totally worked, Beekee. I'm kind of shocked that this was the solution tho. I figured ACAD would've set up a more user friendly way to configure this.</description>
      <pubDate>Wed, 23 Aug 2023 12:31:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/calling-a-lisp-using-function-keys/m-p/12190888#M25079</guid>
      <dc:creator>schmidtjBEEVY</dc:creator>
      <dc:date>2023-08-23T12:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a Lisp using Function Keys</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/calling-a-lisp-using-function-keys/m-p/12190903#M25080</link>
      <description>We have a guy in our mechanical department that sets up AutoCAD installations/updates, but he's not doing anything more than running the start up exe. I don't believe our IT department does anything regarding AutoCAD outside of making sure our Vault server is operational.&lt;BR /&gt;&lt;BR /&gt;In the load example you provided, will the (load"dothis") actually run the command, or is that going around manually loading the lisp in the APPLOAD menu?</description>
      <pubDate>Wed, 23 Aug 2023 12:37:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/calling-a-lisp-using-function-keys/m-p/12190903#M25080</guid>
      <dc:creator>schmidtjBEEVY</dc:creator>
      <dc:date>2023-08-23T12:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a Lisp using Function Keys</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/calling-a-lisp-using-function-keys/m-p/12190955#M25081</link>
      <description>&lt;P&gt;No you don’t enter that code on the command line but in the macro field as you modify the F3 key using CUI command. &amp;nbsp;Read through the link I provided earlier and see if you can follow that along to reassign Function keys.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 12:54:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/calling-a-lisp-using-function-keys/m-p/12190955#M25081</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2023-08-23T12:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a Lisp using Function Keys</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/calling-a-lisp-using-function-keys/m-p/12190976#M25082</link>
      <description>&lt;P&gt;This is what my CUI looks like after trying to tie my lisp to F3, but I don't think I did it right. When I press F3 after applying my changes, it still runs the regular osnap toggle function. I read through the links you sent, and I'm not sure what I messed up on.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="schmidtjBEEVY_0-1692795365673.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1256947i9D5877DED49AD61F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="schmidtjBEEVY_0-1692795365673.png" alt="schmidtjBEEVY_0-1692795365673.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Edit: I highlighted the regular toggle osnaps to show there was nothing calling it.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 13:01:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/calling-a-lisp-using-function-keys/m-p/12190976#M25082</guid>
      <dc:creator>schmidtjBEEVY</dc:creator>
      <dc:date>2023-08-23T13:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a Lisp using Function Keys</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/calling-a-lisp-using-function-keys/m-p/12191004#M25083</link>
      <description>&lt;P&gt;I'm not sure if this discussion is just theoretical anymore... but I would not recommend changing the F3 setting. You will never write a lisp as good as the default macro.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to set some default osmode, use the acaddoc.lsp&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 13:08:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/calling-a-lisp-using-function-keys/m-p/12191004#M25083</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2023-08-23T13:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a Lisp using Function Keys</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/calling-a-lisp-using-function-keys/m-p/12191098#M25084</link>
      <description>My intention the entire time was to change the F3 setting, I didn't think any of the discussion thus far has been theoretical. However, I hadn't considered setting a default with the acaddoc, that is probably the best solution for my problem.&lt;BR /&gt;&lt;BR /&gt;Thanks Beekee,&lt;BR /&gt;-JD</description>
      <pubDate>Wed, 23 Aug 2023 13:35:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/calling-a-lisp-using-function-keys/m-p/12191098#M25084</guid>
      <dc:creator>schmidtjBEEVY</dc:creator>
      <dc:date>2023-08-23T13:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a Lisp using Function Keys</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/calling-a-lisp-using-function-keys/m-p/12191160#M25085</link>
      <description>&lt;P&gt;first you have to add your new command into the CUI. Follow section under:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Create command using AutoCAD CUI (AutoCAD Custom User Interface)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.cad-notes.com/make-your-own-commands-in-autocad/#Create_command_using_AutoCAD_CUI_AutoCAD_Custom_User_Interface" target="_blank" rel="noopener"&gt;Make Your Own Commands In AutoCAD | CADnotes (cad-notes.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It should end up looking something like this:&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paullimapa_1-1692798527047.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1256991i88531F214FD40E62/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paullimapa_1-1692798527047.png" alt="paullimapa_1-1692798527047.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Once you're successful with adding your new command then you'll need to add that onto the CUI's&amp;nbsp;&lt;STRONG&gt;Keyboard Shortcuts section&lt;/STRONG&gt;.&amp;nbsp; Follow along this example:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/OARX/2023/ENU/?guid=GUID-9970E91B-A4F5-405C-99C1-46AD804A8858" target="_blank" rel="noopener"&gt;AutoCAD 2023 Developer and ObjectARX Help | To Customize Shortcut Keys | Autodesk&lt;/A&gt;&lt;/P&gt;&lt;P&gt;When you're successful then your CUI view should look like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paullimapa_2-1692798621167.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1256993i3A5E820A5243DFE9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paullimapa_2-1692798621167.png" alt="paullimapa_2-1692798621167.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 13:51:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/calling-a-lisp-using-function-keys/m-p/12191160#M25085</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2023-08-23T13:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a Lisp using Function Keys</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/calling-a-lisp-using-function-keys/m-p/12191237#M25086</link>
      <description>Thanks for the information, Paul!</description>
      <pubDate>Wed, 23 Aug 2023 14:19:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/calling-a-lisp-using-function-keys/m-p/12191237#M25086</guid>
      <dc:creator>schmidtjBEEVY</dc:creator>
      <dc:date>2023-08-23T14:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a Lisp using Function Keys</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/calling-a-lisp-using-function-keys/m-p/12191242#M25087</link>
      <description>&lt;P&gt;You are welcome…cheers!!!&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 14:20:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/calling-a-lisp-using-function-keys/m-p/12191242#M25087</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2023-08-23T14:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a Lisp using Function Keys</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/calling-a-lisp-using-function-keys/m-p/12196086#M25088</link>
      <description>&lt;P&gt;Sounds like way more effort than this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun C:15 ()(setvar "osmode" 15359))   ; sets all snaps on
(defun C:47 ()(setvar "osmode" 47)(setvar "AUNITS" 0))
(defun C:99 ()(setvar "osmode" 99))
(defun C:8 ()(setvar "osmode" 8))
(defun C:9 ()(setvar "osmode" 9))
(defun C:0 ()(setvar "osmode" 0)) ; osnaps off&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Can use any type of command you want for your preferred osnaps like "zzz" just used numbers as it was simple.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 08:39:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/calling-a-lisp-using-function-keys/m-p/12196086#M25088</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2023-08-25T08:39:51Z</dc:date>
    </item>
  </channel>
</rss>

