<?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: Manually turn snaps on during command, automatically turn off after 1 use in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manually-turn-snaps-on-during-command-automatically-turn-off/m-p/8867591#M87264</link>
    <description>&lt;P&gt;@Anonymous&amp;nbsp; hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes you can do this with CUI command (no lisp is needed but you need to explore cui more)&lt;/P&gt;&lt;P&gt;in CUI dialog on the upper left pane go to Keyboard Shortcuts \&amp;nbsp; Shortcut Keys&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;moshe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jun 2019 04:43:54 GMT</pubDate>
    <dc:creator>Moshe-A</dc:creator>
    <dc:date>2019-06-24T04:43:54Z</dc:date>
    <item>
      <title>Manually turn snaps on during command, automatically turn off after 1 use</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manually-turn-snaps-on-during-command-automatically-turn-off/m-p/8867580#M87263</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used to use the following snap customisations at my previous job and I'd like to customise my AutoCAD at my new job:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;All snaps are off by default&lt;/LI&gt;&lt;LI&gt;During a command for either 2D or 3D I can press either:&lt;BR /&gt;'F3' - Quadrant, Perpendicular, Tangent snaps&lt;BR /&gt;'F4' - Endpoint, Midpoint, Center, Intersection snaps&lt;BR /&gt;'F5' - Nearest snap&lt;/LI&gt;&lt;LI&gt;Once I have used the snap by clicking my mouse, snaps are automatically turned off again. If I am in the middle of a command, e.g. 'polyline', I will have to click F4 after each mouse button press to activate the snaps again.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Do I need to create lisps for my 'F3', 'F4' &amp;amp; 'F5' keys? Or can this be done within AutoCAD (which I've tried but failed).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Hamish&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2019 04:25:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manually-turn-snaps-on-during-command-automatically-turn-off/m-p/8867580#M87263</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-24T04:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Manually turn snaps on during command, automatically turn off after 1 use</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manually-turn-snaps-on-during-command-automatically-turn-off/m-p/8867591#M87264</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp; hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes you can do this with CUI command (no lisp is needed but you need to explore cui more)&lt;/P&gt;&lt;P&gt;in CUI dialog on the upper left pane go to Keyboard Shortcuts \&amp;nbsp; Shortcut Keys&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;moshe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2019 04:43:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manually-turn-snaps-on-during-command-automatically-turn-off/m-p/8867591#M87264</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2019-06-24T04:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Manually turn snaps on during command, automatically turn off after 1 use</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manually-turn-snaps-on-during-command-automatically-turn-off/m-p/8868945#M87265</link>
      <description>&lt;P&gt;If your command is invoked by autolisp then just insert the desired snap override into your command sequence.&amp;nbsp; It will remain active for the next selection only but if the command is repeated the overrides will be used again at that point in your sequence.&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;PRE&gt;(WHILE ...
&amp;nbsp; ...
&amp;nbsp; (COMMAND "LINE" "qua,per,tan" ...)
&amp;nbsp; ...
)

&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Also, you can preset the OSMODE in your code prior to any point input.&amp;nbsp; e.g.&lt;/P&gt;&lt;PRE&gt;(DEFUN C:XYZ ()
  (SETQ preXYZ_osmode (GETVAR "OSMODE"))
  (SETVAR "OSMODE" 1285); set the different osmodes via the dialog and then run (GETVAR "OSMODE") to see the integer for that setting... or look it up in OSMODE help.
  &amp;lt;... function ...&amp;gt;
  (SETVAR "OSMODE" preXYZ_osmode)
  (PRINC)
)&lt;/PRE&gt;&lt;P&gt;You can also switch your OSMODE between the original and temporary settings you need as many times as necessary and for as many different settings as required within your code.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2019 17:03:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/manually-turn-snaps-on-during-command-automatically-turn-off/m-p/8868945#M87265</guid>
      <dc:creator>hencoop</dc:creator>
      <dc:date>2019-06-24T17:03:02Z</dc:date>
    </item>
  </channel>
</rss>

