<?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: Is there a lisp that can merge text with point as z (elevation) value in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-there-a-lisp-that-can-merge-text-with-point-as-z-elevation/m-p/11717631#M35024</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12447174"&gt;@inaamazmi&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have a drawing in which elevation is written as text with points... i want to add these texts to their respective point.&amp;nbsp; if there is a lisp..please provide me&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT size="3"&gt;And place the text exactly how it looks now as an attribute?&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 31 Jan 2023 04:57:45 GMT</pubDate>
    <dc:creator>pbejse</dc:creator>
    <dc:date>2023-01-31T04:57:45Z</dc:date>
    <item>
      <title>Is there a lisp that can merge text with point as z (elevation) value</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-there-a-lisp-that-can-merge-text-with-point-as-z-elevation/m-p/11717613#M35023</link>
      <description>&lt;P&gt;I have a drawing in which elevation is written as text with points... i want to add these texts to their respective point.&amp;nbsp; if there is a lisp..please provide me&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 04:41:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-there-a-lisp-that-can-merge-text-with-point-as-z-elevation/m-p/11717613#M35023</guid>
      <dc:creator>inaamazmi</dc:creator>
      <dc:date>2023-01-31T04:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a lisp that can merge text with point as z (elevation) value</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-there-a-lisp-that-can-merge-text-with-point-as-z-elevation/m-p/11717631#M35024</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12447174"&gt;@inaamazmi&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have a drawing in which elevation is written as text with points... i want to add these texts to their respective point.&amp;nbsp; if there is a lisp..please provide me&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT size="3"&gt;And place the text exactly how it looks now as an attribute?&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 04:57:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-there-a-lisp-that-can-merge-text-with-point-as-z-elevation/m-p/11717631#M35024</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2023-01-31T04:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a lisp that can merge text with point as z (elevation) value</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-there-a-lisp-that-can-merge-text-with-point-as-z-elevation/m-p/11717642#M35025</link>
      <description>&lt;P&gt;No..i just need these text as z value of respective points&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 05:13:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-there-a-lisp-that-can-merge-text-with-point-as-z-elevation/m-p/11717642#M35025</guid>
      <dc:creator>inaamazmi</dc:creator>
      <dc:date>2023-01-31T05:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a lisp that can merge text with point as z (elevation) value</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-there-a-lisp-that-can-merge-text-with-point-as-z-elevation/m-p/11717724#M35026</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12447174"&gt;@inaamazmi&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;No..i just need these text as z value of respective points&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Determining what MTEXT goes with what&amp;nbsp; POINT entity is going to be tricky on some areas, some are clusterd too close together, distance between them also varies that it may require a fuzz value to capture the adjacent TEXT per point. But its certainly doable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 06:21:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-there-a-lisp-that-can-merge-text-with-point-as-z-elevation/m-p/11717724#M35026</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2023-01-31T06:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a lisp that can merge text with point as z (elevation) value</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-there-a-lisp-that-can-merge-text-with-point-as-z-elevation/m-p/11717778#M35027</link>
      <description>&lt;P&gt;not all together... select one text and one point and merge them&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 06:59:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-there-a-lisp-that-can-merge-text-with-point-as-z-elevation/m-p/11717778#M35027</guid>
      <dc:creator>inaamazmi</dc:creator>
      <dc:date>2023-01-31T06:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a lisp that can merge text with point as z (elevation) value</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-there-a-lisp-that-can-merge-text-with-point-as-z-elevation/m-p/11717783#M35028</link>
      <description>&lt;P&gt;i have a lisp that convert mtext to point but the problem is it takes the XY coordinate from the Mtext location..if anyone can modify it to select the point for XY then it will solve my problem&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the lisp is here&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(defun c:txt2pt (/ Point i ss ent pt)&lt;/P&gt;&lt;P&gt;(defun Point (pt) (entmakex (list (cons 0 "POINT") (cons 10 pt))))&lt;/P&gt;&lt;P&gt;(if (setq i -1 ss (ssget '((0 . "TEXT,MTEXT"))))&lt;BR /&gt;(while (setq ent (ssname ss (setq i (1+ i))))&lt;BR /&gt;(setq pt (cdr (assoc 10 (entget ent))))&lt;/P&gt;&lt;P&gt;(Point (list (car pt) (cadr pt)&lt;BR /&gt;(cond ((distof (cdr (assoc 1 (entget ent))))) (0.0))))))&lt;/P&gt;&lt;P&gt;(princ))&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 07:05:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-there-a-lisp-that-can-merge-text-with-point-as-z-elevation/m-p/11717783#M35028</guid>
      <dc:creator>inaamazmi</dc:creator>
      <dc:date>2023-01-31T07:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a lisp that can merge text with point as z (elevation) value</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-there-a-lisp-that-can-merge-text-with-point-as-z-elevation/m-p/11717912#M35029</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12447174"&gt;@inaamazmi&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;i have a lisp that convert mtext to point but the problem is it takes the XY coordinate from the Mtext location..if anyone can modify it to select the point for XY then it will solve my problem&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT size="3"&gt;If you are wanting something simple&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;(Defun c:demo ( / pfz data mt pt str cpt)
(While
  	(and (setq pfz (ssget  '((0 . "POINT,MTEXT"))))
	     ( = (sslength pfz ) 2 )
	  	(setq data (mapcar '(lambda (d)
			   	(list (Cdr  (assoc 0 (cdr (entget d)) ))(vlax-ename-&amp;gt;vla-object d)))
			  	(vl-remove-if 'listp (mapcar 'cadr (ssnamex pfz)))))
	      (setq mt (cadr (assoc "MTEXT" data)))
	      (setq pt (cadr (assoc "POINT" data)))
	      (setq str (vla-get-textstring mt))
	      (numberp (setq str (read str)))
	     )
	      (setq cpt (vlax-get pt 'Coordinates ))
	      (vlax-put pt 'Coordinates (list (Car cpt)(cadr cpt) str))
	      )
	)
&lt;/PRE&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Select by pair, one MTEXT and one POINT entity.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;It will continue to prompt until you stop selecting pairs or the selecion is invalid&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;HTH&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 08:39:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-there-a-lisp-that-can-merge-text-with-point-as-z-elevation/m-p/11717912#M35029</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2023-01-31T08:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a lisp that can merge text with point as z (elevation) value</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-there-a-lisp-that-can-merge-text-with-point-as-z-elevation/m-p/11717923#M35030</link>
      <description>&lt;P&gt;Thank you its working &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 08:19:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/is-there-a-lisp-that-can-merge-text-with-point-as-z-elevation/m-p/11717923#M35030</guid>
      <dc:creator>inaamazmi</dc:creator>
      <dc:date>2023-01-31T08:19:25Z</dc:date>
    </item>
  </channel>
</rss>

