<?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: Apply elevation text to points/lines automatic from text in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/apply-elevation-text-to-points-lines-automatic-from-text/m-p/13323555#M66650</link>
    <description>&lt;P&gt;The code (ALTEXT_FORMULA is what you use to called it) you downloaded/copies is an add-on to ALTEXT (a for purchase, not free VLX that must be running first) from a few replies earlier.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pendean_0-1739805790522.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1467729i7C2AFB374DB27D52/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pendean_0-1739805790522.png" alt="pendean_0-1739805790522.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you actually purchase ALTEXT then install/run it? Here is the page again&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://sites.google.com/site/cadkits/home/altext" target="_blank"&gt;https://sites.google.com/site/cadkits/home/altext&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Feb 2025 15:23:20 GMT</pubDate>
    <dc:creator>pendean</dc:creator>
    <dc:date>2025-02-17T15:23:20Z</dc:date>
    <item>
      <title>Apply elevation text to points/lines automatic from text</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/apply-elevation-text-to-points-lines-automatic-from-text/m-p/10786806#M66642</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello, folks.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;I have a&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;question&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;regarding automatic extraction of text and apply to points/lines.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sometimes I get a drawing with text of elevation, points and lines. The biggest problem is that the points and lines doesn't have any Z value. That makes it painfully slow to not be able to extract the points/lines right away with correct Z value, so then I need do fill in every point with the elevation text.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I was&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;wondering&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;if there is a way to do it&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;automatic&lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;with&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;maybe&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;some lisp or some 3d&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;plug&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;in.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What I am looking for is something that would all elevation text and apply it to the nearest point and lines(if&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;there&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;are any).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So first step would be something like, put in&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;radius&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;around the points to search for text ex: 50 mm, and after that the plugin/lisp would apply the elevation text to&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;points&lt;/SPAN&gt;&lt;SPAN&gt;/lines that closest. If there would be clutter with points, I would just select all, reduce and move the text close to the point.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;I will attatch a dwg just for an example.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I saw a&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;demonstration&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;in&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Trimble&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;Business Center doing something like this. This would be a time saver if possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't code yet (learning now) or&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;else&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;I would have tried myself to figure it out.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Nov 2021 18:51:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/apply-elevation-text-to-points-lines-automatic-from-text/m-p/10786806#M66642</guid>
      <dc:creator>jocke.o92</dc:creator>
      <dc:date>2021-11-28T18:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Apply elevation text to points/lines automatic from text</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/apply-elevation-text-to-points-lines-automatic-from-text/m-p/10787063#M66643</link>
      <description>&lt;P&gt;Attached is your drawing converted to point blocks, I left your text and point objects in place so you can pan and compare.&amp;nbsp; This was done using &lt;A title="Civil Survey &amp;amp; GIS Tools for AutoCAD" href="https://www.dotsoft.com/mapworks.htm" target="_blank" rel="noopener"&gt;DotSoft's MapWorks&lt;/A&gt; (an AutoCAD Add-In) that provides numerous methods of reassembling points.&amp;nbsp; In this case your node was a point object, it could have been crossing line objects and it could have still handled it.&amp;nbsp; Thousands of points could have been processed in only a few seconds. Here is an example of the dialog.&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="capture.png" style="width: 227px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/994702i82F811B8D8892992/image-size/large?v=v2&amp;amp;px=999" role="button" title="capture.png" alt="capture.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Nov 2021 23:18:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/apply-elevation-text-to-points-lines-automatic-from-text/m-p/10787063#M66643</guid>
      <dc:creator>TerryDotson</dc:creator>
      <dc:date>2021-11-28T23:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Apply elevation text to points/lines automatic from text</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/apply-elevation-text-to-points-lines-automatic-from-text/m-p/10790558#M66644</link>
      <description>&lt;P data-unlink="true"&gt;You can also try &lt;A href="https://sites.google.com/site/cadkits/home/altext" target="_blank" rel="noopener"&gt;ALTEXT&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&amp;nbsp;use attached lsp file as its formula.&lt;/P&gt;
&lt;P&gt;Result dwg as in the attachment.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ALTEXT3.gif" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/995271iAB1B37FA2A8A4717/image-size/large?v=v2&amp;amp;px=999" role="button" title="ALTEXT3.gif" alt="ALTEXT3.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;;;; This is an example formula for ALTEXT.vlx
;;; Select POINT and LINE nearby TEXT objects and change their z value to the number value of the text object.
(defun ALTEXT_FORMULA (/ b0 Bint d0 d1 D-Min e0 e1 fc1 i1 MaxPoint MinPoint old-osnap P1 P2 s1 s2 sc1 vc1 vh2 vobj vw2 vx1 vy1)
  (setq D-Min 2.0) ;This value defines the range around text insert point 
  (if (equal (cdr (assoc 0 ALTEXT_BLK_ENT)) "TEXT")
    (progn
      (setq old-osnap (getvar "OSMODE"))
      (setvar "OSMODE" 0)
      (setq vobj (vlax-ename-&amp;gt;vla-object (cdar ALTEXT_BLK_ENT))) 
      (vla-getboundingbox vobj 'MinPoint 'MaxPoint)
      (setq
	MinPoint (trans (vlax-safearray-&amp;gt;list MinPoint) 0 1)
	MaxPoint (trans (vlax-safearray-&amp;gt;list MaxPoint) 0 1)
	)
      (vl-cmdf "._zoom" MinPoint MaxPoint)
      (vl-cmdf "._zoom" "0.8x")
      (setq vc1 (getvar "viewctr")
	    vx1 (car vc1)
	    vy1 (cadr vc1)
	    sc1 (getvar "screensize")
	    fc1 (/ (car sc1)(cadr sc1))
	    vh2 (/ (getvar "viewsize") 2.0)
	    vw2 (* vh2 fc1)
	    )
      
      (setq s1 (ssget "C" (list (- vx1 vw2) (- vy1 vh2)) (list (+ vx1 vw2) (+ vy1 vh2)) '((0 . "POINT"))))
      (if s1
	(progn
	  (repeat (setq i1 (sslength s1))
	    (setq i1 (1- i1))
	    (setq b0 (ssname s1 i1)
		  e0 (entget b0)
		  Bint (cdr (assoc 10 e0))
		  d1 (distance Bint (cdr (assoc 11 ALTEXT_BLK_ENT)))
		  )
	    (if (or (not d0) (&amp;lt; d1 d0))
	      (setq d0 d1
		    e1 e0
		    )
	      ) ;Find out the nearest point object
	    )
	  (entmod (subst (cons 10 (list (car Bint) (cadr Bint) (atof (vl-string-subst "." "," (cdr (assoc 1 ALTEXT_BLK_ENT)))))) (assoc 10 e1) e1))
	  (entupd (cdr (assoc -1 e1)))
	  )
	);Change point elevation
      
      (setq s2 (ssget "C" (list (- vx1 vw2) (- vy1 vh2)) (list (+ vx1 vw2) (+ vy1 vh2)) '((0 . "LINE"))))
      (if s2
	(progn
	  (repeat (setq i1 (sslength s2))
	    (setq i1 (1- i1))
	    (setq b0 (ssname s2 i1)
		  e0 (entget b0)
		  P1 (cdr (assoc 10 e0))
		  P2 (cdr (assoc 11 e0))
		  )
	    (if (&amp;lt; (distance P1 (cdr (assoc 11 ALTEXT_BLK_ENT))) D-Min)
	      (entmod (subst (cons 10 (list (car P1) (cadr P1) (atof (vl-string-subst "." "," (cdr (assoc 1 ALTEXT_BLK_ENT)))))) (assoc 10 e0) e0))
	      (entupd (cdr (assoc -1 e0)))
	      )
	    (if (&amp;lt; (distance P2 (cdr (assoc 11 ALTEXT_BLK_ENT))) D-Min)
	      (entmod (subst (cons 11 (list (car P2) (cadr P2) (atof (vl-string-subst "." "," (cdr (assoc 1 ALTEXT_BLK_ENT)))))) (assoc 11 e0) e0))
	      (entupd (cdr (assoc -1 e0)))
	      )
	    )
	  )
	);Change line elevation
      
      (vl-cmdf "._zoom" "p")
      (vl-cmdf "._zoom" "p")
      (setvar "OSMODE" old-osnap)
      nil
      )
    )
  )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 11:50:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/apply-elevation-text-to-points-lines-automatic-from-text/m-p/10790558#M66644</guid>
      <dc:creator>3wood</dc:creator>
      <dc:date>2021-11-30T11:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Apply elevation text to points/lines automatic from text</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/apply-elevation-text-to-points-lines-automatic-from-text/m-p/10809653#M66645</link>
      <description>&lt;P&gt;I tried out the demo and it worked good! This is a good solution. Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 18:00:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/apply-elevation-text-to-points-lines-automatic-from-text/m-p/10809653#M66645</guid>
      <dc:creator>jocke.o92</dc:creator>
      <dc:date>2021-12-08T18:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Apply elevation text to points/lines automatic from text</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/apply-elevation-text-to-points-lines-automatic-from-text/m-p/10809660#M66646</link>
      <description>This also work really good for me. I tried some examples of elevation data and it got good results. Thank you!</description>
      <pubDate>Wed, 08 Dec 2021 18:01:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/apply-elevation-text-to-points-lines-automatic-from-text/m-p/10809660#M66646</guid>
      <dc:creator>jocke.o92</dc:creator>
      <dc:date>2021-12-08T18:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Apply elevation text to points/lines automatic from text</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/apply-elevation-text-to-points-lines-automatic-from-text/m-p/13322861#M66647</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/540432"&gt;@3wood&lt;/a&gt;&amp;nbsp;its not working in AutoCAD 2022&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 08:22:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/apply-elevation-text-to-points-lines-automatic-from-text/m-p/13322861#M66647</guid>
      <dc:creator>shokitali1980</dc:creator>
      <dc:date>2025-02-17T08:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Apply elevation text to points/lines automatic from text</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/apply-elevation-text-to-points-lines-automatic-from-text/m-p/13323472#M66648</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2976541"&gt;@shokitali1980&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/540432"&gt;@3wood&lt;/a&gt;&amp;nbsp;its not working in AutoCAD 2022&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Elaborate with more details and information please: starting with how does it not work? Provide screenshots and more words please.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 14:41:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/apply-elevation-text-to-points-lines-automatic-from-text/m-p/13323472#M66648</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2025-02-17T14:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Apply elevation text to points/lines automatic from text</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/apply-elevation-text-to-points-lines-automatic-from-text/m-p/13323525#M66649</link>
      <description>I copied code and saved as a lisp file and its loaded successfully in&lt;BR /&gt;AutoCAD but when im entering command ALTEXT its not showing in AutoCAD&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Feb 2025 15:06:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/apply-elevation-text-to-points-lines-automatic-from-text/m-p/13323525#M66649</guid>
      <dc:creator>shokitali1980</dc:creator>
      <dc:date>2025-02-17T15:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Apply elevation text to points/lines automatic from text</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/apply-elevation-text-to-points-lines-automatic-from-text/m-p/13323555#M66650</link>
      <description>&lt;P&gt;The code (ALTEXT_FORMULA is what you use to called it) you downloaded/copies is an add-on to ALTEXT (a for purchase, not free VLX that must be running first) from a few replies earlier.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pendean_0-1739805790522.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1467729i7C2AFB374DB27D52/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pendean_0-1739805790522.png" alt="pendean_0-1739805790522.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you actually purchase ALTEXT then install/run it? Here is the page again&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://sites.google.com/site/cadkits/home/altext" target="_blank"&gt;https://sites.google.com/site/cadkits/home/altext&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 15:23:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/apply-elevation-text-to-points-lines-automatic-from-text/m-p/13323555#M66650</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2025-02-17T15:23:20Z</dc:date>
    </item>
  </channel>
</rss>

