<?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: getting a text entity at a point in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getting-a-text-entity-at-a-point/m-p/10717171#M129020</link>
    <description>&lt;P&gt;You might be right but we don't really know whether the OP cared about whether the text was entirely within the window or not.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Oct 2021 12:30:10 GMT</pubDate>
    <dc:creator>dbroad</dc:creator>
    <dc:date>2021-10-27T12:30:10Z</dc:date>
    <item>
      <title>getting a text entity at a point</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getting-a-text-entity-at-a-point/m-p/6536710#M129005</link>
      <description>&lt;P&gt;Is there any way using 'ssget' that I can get a text entity at a non-specific point?&amp;nbsp; Like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(ssget "X" '((0 . "TEXT")(11 318.03737793 9.13950144 0.0)))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or will I have to retrieve all texts in the drawing, and do a compare?&amp;nbsp; Like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(and (= (cdr (assoc 0 ent1)) "TEXT") (equal (cdr (assoc 11 ent1)) '(318.03737793 9.13950144 0.0) 1e-8))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 14:28:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getting-a-text-entity-at-a-point/m-p/6536710#M129005</guid>
      <dc:creator>kpennell</dc:creator>
      <dc:date>2016-09-01T14:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: getting a text entity at a point</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getting-a-text-entity-at-a-point/m-p/6536817#M129006</link>
      <description>&lt;P&gt;With coordinates like that, I suspect the latter will be needed, because&amp;nbsp;AutoCAD really "knows" where it is to far more decimal places than that, and those extras [unless they happen to all be zeros] will mean it's &lt;EM&gt;not&lt;/EM&gt; exactly where those rounded-off values indicate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you draw with &lt;EM&gt;Snap turned on&lt;/EM&gt;, and if it were at, for instance [with Snap at 1/8" in Imperial units]:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(11 318.0 9.125 0.0)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then it would probably be able to find that, because there would be nothing in further-out decimal places to&amp;nbsp;make the &lt;EM&gt;true&lt;/EM&gt; coordinate values different from those shown.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 14:57:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getting-a-text-entity-at-a-point/m-p/6536817#M129006</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2016-09-01T14:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: getting a text entity at a point</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getting-a-text-entity-at-a-point/m-p/6536850#M129007</link>
      <description>I think you can specify a point. Just place it outside the filter and skip the DXF code, as in (ssget "X" pt '((0 . "TEXT")))</description>
      <pubDate>Thu, 01 Sep 2016 15:08:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getting-a-text-entity-at-a-point/m-p/6536850#M129007</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2016-09-01T15:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: getting a text entity at a point</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getting-a-text-entity-at-a-point/m-p/6536911#M129008</link>
      <description>Considering what Kent advised, you may have to use (ssget "_C" p1 p2 '((0 . "TEXT"))) where p1 is slightly below and to the left of the PIQ and p2 is slightly up and to the right.</description>
      <pubDate>Thu, 01 Sep 2016 15:30:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getting-a-text-entity-at-a-point/m-p/6536911#M129008</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2016-09-01T15:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: getting a text entity at a point</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getting-a-text-entity-at-a-point/m-p/6536999#M129009</link>
      <description>&lt;P&gt;I tried the point outside the filter, but I got a "too many argument" error message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I went with the ssget "C" approach and is working fine.&amp;nbsp; Too bad though, would have been neat.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 15:52:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getting-a-text-entity-at-a-point/m-p/6536999#M129009</guid>
      <dc:creator>kpennell</dc:creator>
      <dc:date>2016-09-01T15:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: getting a text entity at a point</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getting-a-text-entity-at-a-point/m-p/6537201#M129010</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3930636"&gt;@john.uhden&lt;/a&gt; wrote:&lt;BR /&gt;....&amp;nbsp;you may have to use (ssget "_C" p1 p2 '((0 . "TEXT"))) where p1 is slightly below and to the left of the PIQ and p2 is slightly up and to the right.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;There's a risk in that approach, depending on whether any &lt;EM&gt;drawn element&lt;/EM&gt; of the Text content actually gets close enough to the point you're searching around:&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="TextSSGET.PNG" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/269115i05556FF6559E4950/image-size/large?v=v2&amp;amp;px=999" role="button" title="TextSSGET.PNG" alt="TextSSGET.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's a selected-gripped-highlighted piece of Middle-justified Text, with the insertion-point grip showing in the middle.&amp;nbsp; A crossing window&amp;nbsp;built around that point for (ssget) to search with would &lt;EM&gt;not&lt;/EM&gt; find that Text if the window's corners are too close to the point itself, since it relies on &lt;EM&gt;drawn elements&lt;/EM&gt; crossing the window, and won't "see" the insertion point if that's all that falls inside the window.&amp;nbsp; The same would be true if that were Left-justified and looking around the grip at the bottom left, and would also be possible with other combinations of justification and content.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So if you do it that way, you should probably use a window about the size of the Text height if you know what that will be, but even then there could be times when it would miss, such as possibly the above if there&amp;nbsp;happened to be&amp;nbsp;more than one&amp;nbsp;space there [affected by the font, etc.].&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 16:58:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getting-a-text-entity-at-a-point/m-p/6537201#M129010</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2016-09-01T16:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: getting a text entity at a point</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getting-a-text-entity-at-a-point/m-p/6537474#M129011</link>
      <description>&lt;P&gt;This is a sample of the approach using point filters instead of "c"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(setq ss (ssget	"x"
		'((0 . "text")
		  (-4 . "&amp;lt;AND")
		  (-4 . "&amp;gt;,&amp;gt;,*")
		  (10 1.0 1.0 0.0)
		  (-4 . "&amp;lt;,&amp;lt;,*")
		  (10 3.0 3.0 0.0)
		  (-4 . "AND&amp;gt;")
		 )
	 )
)&lt;/PRE&gt;
&lt;P&gt;This would get any text whose insertion point had &amp;nbsp;1&amp;lt;x&amp;lt;3 and 1&amp;lt;y&amp;lt;3 where z is not tested. &amp;nbsp;I am not sure whether this would find objects in multiple layouts or not but would be independent of zoom. &amp;nbsp;This would be for left justified text. &amp;nbsp;For any other text justification, the 11 code would need to be used.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 19:03:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getting-a-text-entity-at-a-point/m-p/6537474#M129011</guid>
      <dc:creator>dbroad</dc:creator>
      <dc:date>2016-09-01T19:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: getting a text entity at a point</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getting-a-text-entity-at-a-point/m-p/6537726#M129012</link>
      <description>I should have defined what "slightly" meant.. I guess it wouldn't be too bad to use a large crossing box since we typically tend not to overlap text.&lt;BR /&gt;&lt;BR /&gt;This is a situation where I would bloat my own code to report any failures...&lt;BR /&gt;(or&lt;BR /&gt;(setq ss (ssget etc.))&lt;BR /&gt;(prompt "\nFailed to select any whatevers")&lt;BR /&gt;)</description>
      <pubDate>Thu, 01 Sep 2016 20:45:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getting-a-text-entity-at-a-point/m-p/6537726#M129012</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2016-09-01T20:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: getting a text entity at a point</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getting-a-text-entity-at-a-point/m-p/10715511#M129013</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/411413"&gt;@dbroad&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I love your idea which basically solved my issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Although, in order to make my custom command more robust, i wondered if it could be possible to account for a OCS different than WCS, given that the supplied Insertion point is in WCS while DXF code 10 represents Entity's OCS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of course it could be processed after the (ssget "X" ...) statement, in a loop, but I would like to avoid that and would prefer the tweek to be inside the ssget statement direcly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 19:38:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getting-a-text-entity-at-a-point/m-p/10715511#M129013</guid>
      <dc:creator>1LandSurveyor</dc:creator>
      <dc:date>2021-10-26T19:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: getting a text entity at a point</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getting-a-text-entity-at-a-point/m-p/10715601#M129014</link>
      <description>&lt;P&gt;I've forgotten everything I thought I knew about OCS but I think you can use the TRANS function to translate to and from OCS to other coordinate systems if you have the object ename.&amp;nbsp; I don't know how that would work if&amp;nbsp; the object wasn't already selected though.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 20:28:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getting-a-text-entity-at-a-point/m-p/10715601#M129014</guid>
      <dc:creator>dbroad</dc:creator>
      <dc:date>2021-10-26T20:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: getting a text entity at a point</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getting-a-text-entity-at-a-point/m-p/10715650#M129015</link>
      <description>That is what i thought as well but i was just making sure...&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Tue, 26 Oct 2021 20:55:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getting-a-text-entity-at-a-point/m-p/10715650#M129015</guid>
      <dc:creator>1LandSurveyor</dc:creator>
      <dc:date>2021-10-26T20:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: getting a text entity at a point</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getting-a-text-entity-at-a-point/m-p/10715827#M129016</link>
      <description>&lt;P&gt;Hi, Doug.&lt;/P&gt;
&lt;P&gt;I've gotta lotta old code where I used trans quite a bit, but I also have forgotten when to use it.&lt;/P&gt;
&lt;P&gt;Anyway, as far as the OP's dilema, I think I would get all kinda technical and ssget all the text candidates and post-process them by determining which of them has the closest center of its bounding box to the pick point, or use my older&amp;nbsp;@Anonymous function to find within which boundingbox the point falls, the latter of the two probably being more reliable.&amp;nbsp; And if it falls within more than one boundingbox then report and maybe sssetfirst the ones found.&lt;/P&gt;
&lt;P&gt;I think there are just too many "holes" and justification variations in text to ssget them reliably with a coordinate filter.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 22:28:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getting-a-text-entity-at-a-point/m-p/10715827#M129016</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2021-10-26T22:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: getting a text entity at a point</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getting-a-text-entity-at-a-point/m-p/10715846#M129017</link>
      <description>&lt;P&gt;Here is what i came up&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;			(setq FoundOBJ (ssget "_A" (list 
				(cons -4 "&amp;lt;XOR")
					(cons -4 "&amp;lt;AND") (cons 0 "*TEXT") (cons -4 "=,=,*") (cons 11 eInsPt2D)
							(cons -4 "/=") (cons 72 0) (cons -4 "/=") (cons 73 0)  (cons -4 "AND&amp;gt;")
					(cons -4 "&amp;lt;AND") (cons -4 "=,=,*") (cons 10 eInsPt2D) (cons -4 "AND&amp;gt;")
				(cons -4 "XOR&amp;gt;")
				(cons 0 cType) 
				(cons 8 cLayer))))
			&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;The rest of my routine specifies :&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &lt;EM&gt;cType&lt;/EM&gt; being either *TEXT, POINT or INSERT&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &lt;EM&gt;cLayer&lt;/EM&gt; being a layer filter&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;EM&gt;eInsPt2D&lt;/EM&gt; being a picked WCS point (the insertion point of selected reference entities in my case).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Works super great with all types of text justification.&lt;/P&gt;&lt;P&gt;Its only limitation i found is regarding objects with OCS &amp;lt;&amp;gt;WCS as told earlier... but that's fairly rare for Texts&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 22:44:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getting-a-text-entity-at-a-point/m-p/10715846#M129017</guid>
      <dc:creator>1LandSurveyor</dc:creator>
      <dc:date>2021-10-26T22:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: getting a text entity at a point</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getting-a-text-entity-at-a-point/m-p/10715888#M129018</link>
      <description>NICE!!&lt;BR /&gt;That's because you are a land surveyor. &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;BR /&gt;You know what they say...&lt;BR /&gt;"Old surveyors never die, they just lose their bearings." &lt;span class="lia-unicode-emoji" title=":nerd_face:"&gt;🤓&lt;/span&gt;&lt;BR /&gt;(A Uhden original)</description>
      <pubDate>Tue, 26 Oct 2021 23:17:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getting-a-text-entity-at-a-point/m-p/10715888#M129018</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2021-10-26T23:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: getting a text entity at a point</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getting-a-text-entity-at-a-point/m-p/10717166#M129019</link>
      <description>&lt;P&gt;Glad you found what you need.&amp;nbsp; Even though ctype includes points and blocks, however, it will never find them.&amp;nbsp; As far as optimization goes, the selection might be faster if you put the layer and object type filters first but narrow the object type filter to *text.&amp;nbsp; In addition, "=" is a very unforgiving attribute.&amp;nbsp; Also, its only going to find a single text entity since you've narrowed the window to a single point.&amp;nbsp; I would've preferred to use&amp;nbsp; (ssget ":S+." (list '(0 . "*text")(cons 8 clayer) pollsibly followed by either (cons 10 einspt2d)) or&amp;nbsp;&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-lisp"&gt;&lt;CODE&gt;(cons -4 "&amp;lt;XOR")
					(cons -4 "&amp;lt;AND") (cons 0 "*TEXT") (cons -4 "=,=,*") (cons 11 eInsPt2D)
							(cons -4 "/=") (cons 72 0) (cons -4 "/=") (cons 73 0)  (cons -4 "AND&amp;gt;")
					(cons -4 "&amp;lt;AND") (cons -4 "=,=,*") (cons 10 eInsPt2D) (cons -4 "AND&amp;gt;")
				(cons -4 "XOR&amp;gt;")&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;)) if you really need it.&amp;nbsp; As long as the text entity is on the screen, it should find the text entity with either the 10 or 11 code.&amp;nbsp; I'd have to test it a lot to be sure though.&amp;nbsp; &amp;nbsp;"=" eliminates the forgiveness of the pickbox.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 12:29:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getting-a-text-entity-at-a-point/m-p/10717166#M129019</guid>
      <dc:creator>dbroad</dc:creator>
      <dc:date>2021-10-27T12:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: getting a text entity at a point</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getting-a-text-entity-at-a-point/m-p/10717171#M129020</link>
      <description>&lt;P&gt;You might be right but we don't really know whether the OP cared about whether the text was entirely within the window or not.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 12:30:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getting-a-text-entity-at-a-point/m-p/10717171#M129020</guid>
      <dc:creator>dbroad</dc:creator>
      <dc:date>2021-10-27T12:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: getting a text entity at a point</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getting-a-text-entity-at-a-point/m-p/10718287#M129021</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/411413"&gt;@dbroad&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Glad you found what you need.&amp;nbsp; Even though ctype includes points and blocks, however, it will never find them.&amp;nbsp;&amp;nbsp;&lt;FONT color="#FF0000"&gt;It does find them. I wonder why you say this. Have I missed something?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as optimization goes, the selection might be faster if you put the layer and object type filters first but narrow the object type filter to *text.&amp;nbsp; &lt;FONT color="#FF0000"&gt;Thanks for that, i didn't know how to arrange filters for optimization.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition, "=" is a very unforgiving attribute. &lt;FONT color="#FF0000"&gt;You are right, there is no fuzz allowed. You need to know exactly its position first. In my case, my goal was to find the text by pre-selecting a block, another text or a point at the same exact location.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, its only going to find a single text entity since you've narrowed the window to a single point. &lt;FONT color="#FF0000"&gt;Well, from what i tested, a (ssget "A" or "X"...) will find all entities respecting the filters. Multiple objects can have the same exact insertion points and thus will be found...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would've preferred to use&amp;nbsp; (ssget ":S+." (list '(0 . "*text")(cons 8 clayer) pollsibly followed by either (cons 10 einspt2d)) or&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(cons -4 "&amp;lt;XOR")
					(cons -4 "&amp;lt;AND") (cons 0 "*TEXT") (cons -4 "=,=,*") (cons 11 eInsPt2D)
							(cons -4 "/=") (cons 72 0) (cons -4 "/=") (cons 73 0)  (cons -4 "AND&amp;gt;")
					(cons -4 "&amp;lt;AND") (cons -4 "=,=,*") (cons 10 eInsPt2D) (cons -4 "AND&amp;gt;")
				(cons -4 "XOR&amp;gt;")&lt;/PRE&gt;&lt;P&gt;)) if you really need it.&amp;nbsp; As long as the text entity is on the screen, it should find the text entity with either the 10 or 11 code.&amp;nbsp; I'd have to test it a lot to be sure though.&amp;nbsp; &amp;nbsp;"=" eliminates the forgiveness of the pickbox. &lt;FONT color="#FF0000"&gt;Again, my solution using (ssget "A" ...) would find them all, even not in the screen.&lt;/FONT&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;After reading the original post, he was clearly looking for a «non-specific point»... so yes, my solution should be adjusted topermit this by adding even more position filters as the equivalent of a crossing window. (just like the code in your first post).&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 19:22:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getting-a-text-entity-at-a-point/m-p/10718287#M129021</guid>
      <dc:creator>1LandSurveyor</dc:creator>
      <dc:date>2021-10-27T19:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: getting a text entity at a point</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getting-a-text-entity-at-a-point/m-p/10718493#M129022</link>
      <description>&lt;P&gt;Sorry. I didn't read the XOR closely enough.&amp;nbsp; Only the first element of the XOR has a object type filter.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 20:29:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getting-a-text-entity-at-a-point/m-p/10718493#M129022</guid>
      <dc:creator>dbroad</dc:creator>
      <dc:date>2021-10-27T20:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: getting a text entity at a point</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getting-a-text-entity-at-a-point/m-p/10718812#M129023</link>
      <description>BTW, my idea of using a boundingbox vacuums.</description>
      <pubDate>Thu, 28 Oct 2021 00:04:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getting-a-text-entity-at-a-point/m-p/10718812#M129023</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2021-10-28T00:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: getting a text entity at a point</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getting-a-text-entity-at-a-point/m-p/10719029#M129024</link>
      <description>&lt;P&gt;My $0.05 I would use a 4 point rectang say around insert pt then ssget "F" PTS&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do this 4 times but add 1st point to end so closes, with relevant x or -x etc&lt;/P&gt;&lt;P&gt;(setq p2 (mapcar '+ p1 (list X Y 0.0)))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 03:03:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/getting-a-text-entity-at-a-point/m-p/10719029#M129024</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2021-10-28T03:03:11Z</dc:date>
    </item>
  </channel>
</rss>

