<?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: Fuzz factor in calculations in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/fuzz-factor-in-calculations/m-p/7069282#M120366</link>
    <description>&lt;P&gt;Good point! Agreed. The OP would need to determine just how big the crossing needs to be and it might be better to use a rectangle to compensate for the space possibility like you mentioned. If all the text was at 0 angle that would be a bit easier to deal with.&lt;/P&gt;</description>
    <pubDate>Mon, 08 May 2017 14:53:06 GMT</pubDate>
    <dc:creator>SeeMSixty7</dc:creator>
    <dc:date>2017-05-08T14:53:06Z</dc:date>
    <item>
      <title>Fuzz factor in calculations</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/fuzz-factor-in-calculations/m-p/7068031#M120362</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope somebody could help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have some closed plines. Each pline vertex has an associated id text. This text has an insertion point "coincident" with the pline vertex, except they may differ in the 4th decimal.&lt;/P&gt;&lt;P&gt;I want to get the text associated with each vertex with the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(defun findTextWithInsertionPoint (pt &amp;nbsp;)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;(ssget "_X" (list (cons 0 "TEXT")(cons 10 pt) ))&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it doesn´t work because coordinates differ in the 4th decimal or less.&lt;/P&gt;&lt;P&gt;Is there a system variable or something else that specifies a fuzz factor, so that points are considered same if they differ less than fuzz factor?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example: &amp;nbsp; &amp;nbsp;(equal expr1 expr2 [fuzz]) &amp;nbsp; &amp;nbsp; would consider expr1 and expr2 the same if they differ up to fuzz value.&lt;/P&gt;&lt;PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2017 05:21:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/fuzz-factor-in-calculations/m-p/7068031#M120362</guid>
      <dc:creator>scadcam</dc:creator>
      <dc:date>2017-05-08T05:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Fuzz factor in calculations</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/fuzz-factor-in-calculations/m-p/7068368#M120363</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could just collect all the potentially interesting texts with SSGET, and go through them to pick the correct one yourself using EQUAL.&lt;/P&gt;
&lt;P&gt;- undocumented, but it also works for lists in additional to single numbers, so no need to compare each coordinate separately.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2017 09:07:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/fuzz-factor-in-calculations/m-p/7068368#M120363</guid>
      <dc:creator>martti.halminen</dc:creator>
      <dc:date>2017-05-08T09:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Fuzz factor in calculations</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/fuzz-factor-in-calculations/m-p/7068954#M120364</link>
      <description>&lt;P&gt;If you know that it is within the ten thousandths place, you could just use a crossing selection instead of a point. use the polar function to calculate a square that the point of the pline vertex. Use something like half the expected text height as your distance. some thing like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;;;assuming the myvertexpoint is a vertex point and&lt;/P&gt;
&lt;P&gt;;;your text height is typically 1/2" in height&lt;/P&gt;
&lt;P&gt;(setq rectpt1 (polar myvertexpoint (* PI 0.25) (* mytxtheight 0.5))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rectpt2 (polar myvertextpoint (*PI 1.25) (* mytxtheight 0.5))&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then use those two points in your selection set that specifies "TEXT" and crossing selection filters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck,&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2017 13:16:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/fuzz-factor-in-calculations/m-p/7068954#M120364</guid>
      <dc:creator>SeeMSixty7</dc:creator>
      <dc:date>2017-05-08T13:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Fuzz factor in calculations</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/fuzz-factor-in-calculations/m-p/7069014#M120365</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1092040"&gt;@SeeMSixty7&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;....&amp;nbsp;use a crossing selection instead of a point. use the polar function to calculate a square that the point of the pline vertex. Use something like half the expected text height as your distance. some thing like&lt;/P&gt;
&lt;P&gt;....&amp;nbsp;(polar myvertexpoint (* PI 0.25) (* mytxtheight 0.5))&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I was thinking along the same lines, but the size you would need that crossing window to be would depend on the &lt;EM&gt;nature of the anticipated Text content&lt;/EM&gt; and/or &lt;EM&gt;justification&lt;/EM&gt;.&amp;nbsp; For example, if it might ever have &lt;EM&gt;spaces&lt;/EM&gt;, a window sized in that way could &lt;EM&gt;miss&lt;/EM&gt; selecting the Text [utterly arbitrary content here, just as an example -- blue is the Polyline, white is the crossing window whose corners are from a (polar) function like the above, red Text is middle-center justified around the vertex]:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FindText.PNG" style="width: 314px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/353713i699A21BF810CE95B/image-size/large?v=v2&amp;amp;px=999" role="button" title="FindText.PNG" alt="FindText.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2017 13:43:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/fuzz-factor-in-calculations/m-p/7069014#M120365</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2017-05-08T13:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Fuzz factor in calculations</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/fuzz-factor-in-calculations/m-p/7069282#M120366</link>
      <description>&lt;P&gt;Good point! Agreed. The OP would need to determine just how big the crossing needs to be and it might be better to use a rectangle to compensate for the space possibility like you mentioned. If all the text was at 0 angle that would be a bit easier to deal with.&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2017 14:53:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/fuzz-factor-in-calculations/m-p/7069282#M120366</guid>
      <dc:creator>SeeMSixty7</dc:creator>
      <dc:date>2017-05-08T14:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Fuzz factor in calculations</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/fuzz-factor-in-calculations/m-p/7069477#M120367</link>
      <description>&lt;P&gt;Thanks for the replies.&lt;/P&gt;&lt;P&gt;I was in a hurry and had to do it the hard way using equal with fuzz factor to compare pline vertex with insertion point.&lt;/P&gt;&lt;P&gt;So, I assume there is no such "fuzz factor" for this, though it would be nice to have it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2017 15:51:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/fuzz-factor-in-calculations/m-p/7069477#M120367</guid>
      <dc:creator>scadcam</dc:creator>
      <dc:date>2017-05-08T15:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Fuzz factor in calculations</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/fuzz-factor-in-calculations/m-p/7069954#M120368</link>
      <description>&lt;P&gt;I like&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/569672"&gt;@martti.halminen&lt;/a&gt;'s idea the best.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a selection set of the candidate plines, and another selection set of the candidate texts.&lt;/P&gt;
&lt;P&gt;For each vertex of each pline, find the text that is &lt;EM&gt;&lt;STRONG&gt;closest&lt;/STRONG&gt;&lt;/EM&gt; to the vertex. &amp;nbsp;I am thinking that a draftsman might have moved any of the texts slightly for readability, so a small fuzz factor may not yield any finds. &amp;nbsp;In fact, you wouldn't know what size fuzz factor to use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you need the code?&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2017 18:36:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/fuzz-factor-in-calculations/m-p/7069954#M120368</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2017-05-08T18:36:33Z</dc:date>
    </item>
  </channel>
</rss>

