<?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: Apparent Intersection randomly not working in LISP program in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/apparent-intersection-randomly-not-working-in-lisp-program/m-p/6021009#M134818</link>
    <description>&lt;P&gt;I thought I had used (command "_OSMODE" 0) right before the if statement, but after double checking I had a 1 instead of a 0. I changed it to 0 and it worked fine. I also tried using "_none" and it worked as well. Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 03 Feb 2016 01:55:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-02-03T01:55:01Z</dc:date>
    <item>
      <title>Apparent Intersection randomly not working in LISP program</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/apparent-intersection-randomly-not-working-in-lisp-program/m-p/6020212#M134816</link>
      <description>&lt;P&gt;I've been teaching myself LISP over the past couple months, and I am writing a program that will automatically place ordinate dimensions on multiple lines at once. Currently I have it set up so the user is first prompted to select a point for the UCS. Almost all of our parts have chamfers on the zero corner, so I usually use Ctrl+Right Click to&amp;nbsp;use&amp;nbsp;Apparent Intersection, but sometimes when I run the program and use Ctrl+Right Click+Apparent Intersection, it will place the UCS at the endpoint of one of the lines instead of the intersection. This only happens sometimes, maybe 5-10% of the time, while other times it works correctly. It's in an IF statement so if the user presses ENTER without selecting a point it will use the current UCS. Anybody have any ideas on whats going on?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(if (setq ZERO (getpoint "\nSelect origin or &amp;lt;ENTER&amp;gt;: "))
	(command "_.UCS" "N" ZERO "")
	(setq ZERO '(0.0 0.0 0.0))
)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 17:34:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/apparent-intersection-randomly-not-working-in-lisp-program/m-p/6020212#M134816</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-02T17:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Apparent Intersection randomly not working in LISP program</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/apparent-intersection-randomly-not-working-in-lisp-program/m-p/6020299#M134817</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;...&amp;nbsp;I have it set up so the user is first prompted to select a point for the UCS. .... when I run the program and use Ctrl+Right Click+Apparent Intersection, it will place the UCS at the endpoint of one of the lines instead of the intersection. ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(if (setq ZERO (getpoint "\nSelect origin or &amp;lt;ENTER&amp;gt;: "))
	(command "_.UCS" "N" ZERO "")
	(setq ZERO '(0.0 0.0 0.0))
)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Might you have any running &lt;STRONG&gt;Object snap mode(s)&lt;/STRONG&gt; on?&amp;nbsp; If you use the APParent INTersection mode, that's what&amp;nbsp;will go into the ZERO variable&amp;nbsp;regardless of any running Osnap mode(s).&amp;nbsp; But when that is &lt;EM&gt;used in the UCS command&lt;/EM&gt;, any running Osnap mode(s) &lt;EM&gt;will&lt;/EM&gt; go into effect if any&amp;nbsp;Osnappable points are within reach of the Aperture box size.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;... "_.UCS" "N" &lt;FONT color="#0000ff"&gt;&lt;STRONG&gt;"_none"&lt;/STRONG&gt;&lt;/FONT&gt; ZERO ...&lt;/P&gt;
&lt;P&gt;or if this is part of something longer for which maybe it's appropriate for other reasons, have the routine turn Osnap off before it gets to this point.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Whenever something doesn't happen as expected in a &lt;EM&gt;positional&lt;/EM&gt; way, &lt;EM&gt;especially&lt;/EM&gt; when it does &lt;EM&gt;sometimes&lt;/EM&gt; but not always, Object Snap is the first thing to look into.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 18:28:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/apparent-intersection-randomly-not-working-in-lisp-program/m-p/6020299#M134817</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2016-02-02T18:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Apparent Intersection randomly not working in LISP program</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/apparent-intersection-randomly-not-working-in-lisp-program/m-p/6021009#M134818</link>
      <description>&lt;P&gt;I thought I had used (command "_OSMODE" 0) right before the if statement, but after double checking I had a 1 instead of a 0. I changed it to 0 and it worked fine. I also tried using "_none" and it worked as well. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 01:55:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/apparent-intersection-randomly-not-working-in-lisp-program/m-p/6021009#M134818</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-03T01:55:01Z</dc:date>
    </item>
  </channel>
</rss>

