<?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: Selected Osnaps turn off when running a script in Autocad 2021 in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/selected-osnaps-turn-off-when-running-a-script-in-autocad-2021/m-p/11956002#M36477</link>
    <description>&lt;P&gt;(defun set-osnaps ()&lt;BR /&gt;(setq osnaps '(end mid))&lt;BR /&gt;(foreach osnap osnaps&lt;BR /&gt;(command "_osnap" osnap "_on"))&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;(set-osnaps)&lt;/P&gt;</description>
    <pubDate>Thu, 11 May 2023 03:43:28 GMT</pubDate>
    <dc:creator>jayhar</dc:creator>
    <dc:date>2023-05-11T03:43:28Z</dc:date>
    <item>
      <title>Selected Osnaps turn off when running a script in Autocad 2021</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/selected-osnaps-turn-off-when-running-a-script-in-autocad-2021/m-p/11955717#M36475</link>
      <description>&lt;P&gt;Every time I run a script in a new drawing, the osnap selections completely disable. In the Object snap tab of Drafting Settings, it shows that Object Snap and Object Snap Tracking are both on, yet all of my individual selections have turned off. We have a third party plugin and I uninstalled it, tested and the issue is still happening so I don't believe it's the plug-in. Does anyone else experience this and know of a long term fix(lisp routine or system variable)? Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 23:50:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/selected-osnaps-turn-off-when-running-a-script-in-autocad-2021/m-p/11955717#M36475</guid>
      <dc:creator>meghan_morton1</dc:creator>
      <dc:date>2023-05-10T23:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Selected Osnaps turn off when running a script in Autocad 2021</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/selected-osnaps-turn-off-when-running-a-script-in-autocad-2021/m-p/11955731#M36476</link>
      <description>&lt;P&gt;It would be helpful to share this script.&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 23:59:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/selected-osnaps-turn-off-when-running-a-script-in-autocad-2021/m-p/11955731#M36476</guid>
      <dc:creator>RobDraw</dc:creator>
      <dc:date>2023-05-10T23:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Selected Osnaps turn off when running a script in Autocad 2021</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/selected-osnaps-turn-off-when-running-a-script-in-autocad-2021/m-p/11956002#M36477</link>
      <description>&lt;P&gt;(defun set-osnaps ()&lt;BR /&gt;(setq osnaps '(end mid))&lt;BR /&gt;(foreach osnap osnaps&lt;BR /&gt;(command "_osnap" osnap "_on"))&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;(set-osnaps)&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 03:43:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/selected-osnaps-turn-off-when-running-a-script-in-autocad-2021/m-p/11956002#M36477</guid>
      <dc:creator>jayhar</dc:creator>
      <dc:date>2023-05-11T03:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: Selected Osnaps turn off when running a script in Autocad 2021</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/selected-osnaps-turn-off-when-running-a-script-in-autocad-2021/m-p/11956788#M36478</link>
      <description>Why not just use (setvar "OSMODE" 3) ?</description>
      <pubDate>Thu, 11 May 2023 11:41:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/selected-osnaps-turn-off-when-running-a-script-in-autocad-2021/m-p/11956788#M36478</guid>
      <dc:creator>apjones</dc:creator>
      <dc:date>2023-05-11T11:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: Selected Osnaps turn off when running a script in Autocad 2021</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/selected-osnaps-turn-off-when-running-a-script-in-autocad-2021/m-p/11956845#M36479</link>
      <description>&lt;P&gt;Thank you. I've tried that and my selections won't stick. The script I'm running is proprietary as it's from a customer but it is essentially an exhibition layout from a third party application and is a series of polylines and text. As soon as they generate in my drawing, all of my selected osnaps turn off so I keep turning them back on manually.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 12:08:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/selected-osnaps-turn-off-when-running-a-script-in-autocad-2021/m-p/11956845#M36479</guid>
      <dc:creator>meghan_morton1</dc:creator>
      <dc:date>2023-05-11T12:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Selected Osnaps turn off when running a script in Autocad 2021</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/selected-osnaps-turn-off-when-running-a-script-in-autocad-2021/m-p/11956860#M36480</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3976341"&gt;@meghan_morton1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;... my selections won't stick. The script I'm running is proprietary .... As soon as they generate in my drawing, all of my selected osnaps turn off so I keep turning them back on manually.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Then it's pretty clear that the proprietary script is what's turning them off, and it should be edited to remember the OSMODE value and restore it when it's done.&amp;nbsp; If it's actually a Script, or if it's an .lsp file, you should find a (setvar 'osmode ...) entry in there somewhere, or an OSNAP command, or something.&amp;nbsp; If it's in some compiled format that you can't edit, ask the source to make it work as it should.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 12:16:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/selected-osnaps-turn-off-when-running-a-script-in-autocad-2021/m-p/11956860#M36480</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2023-05-11T12:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Selected Osnaps turn off when running a script in Autocad 2021</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/selected-osnaps-turn-off-when-running-a-script-in-autocad-2021/m-p/11956934#M36481</link>
      <description>&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3976341"&gt;@meghan_morton1&lt;/a&gt; Are you aware scripts (and LISP) and other customization's can and often do turn off or reset Osnaps to avoid possible conflicts with hat they might do (or make it work even better)?&lt;BR /&gt;&lt;BR /&gt;And a handful of commands in AutoCAD can also turn off running osnaps.&lt;BR /&gt;&lt;BR /&gt;SO... Ask the script creator all about it since you cannot share here: there is nothing unusual about that, it's done more often than not, unless you can prove otherwise by sharing it here (which you state that's not possible).&lt;BR /&gt;&lt;BR /&gt;Now you know.</description>
      <pubDate>Thu, 11 May 2023 12:47:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/selected-osnaps-turn-off-when-running-a-script-in-autocad-2021/m-p/11956934#M36481</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2023-05-11T12:47:06Z</dc:date>
    </item>
  </channel>
</rss>

