Weed Text

Weed Text

AndyWalker
Explorer Explorer
1,289 Views
5 Replies
Message 1 of 6

Weed Text

AndyWalker
Explorer
Explorer

Does anyone know of a way to weed text? I have thousands of individual text boxes (which actually show depth values for contours) I'd like to try delete every second value in a line for example. Basically to thin out Any ideas

0 Likes
1,290 Views
5 Replies
Replies (5)
Message 2 of 6

Pointdump
Consultant
Consultant

Andy,
Please post a Screen Shot, or even better, your drawing, to better explain the situation.
Dave

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2027
0 Likes
Message 3 of 6

troma
Mentor
Mentor

Sounds like a custom type of job.
Maybe ask over here: https://forums.autodesk.com/t5/autocad-customization/ct-p/AutoCADTopic1


Mark Green

Working on Civil 3D in Canada

0 Likes
Message 4 of 6

tcorey
Mentor
Mentor

It's crude, but this LISP does what you're asking.

(defun c:WeedText ( / texts len incr ctr tx )
(vl-load-com)
(prompt "\nSelect text objects: ")
(setq texts (ssget)
	  len (sslength texts)
	  incr (getint "Deletion increment: ")
	  ctr incr)
	  
	  
	  (while (< ctr len)
			   (setq tx (ssname texts ctr))
			   (vl-cmdf "Erase" tx "")
			   (setq ctr (+ incr ctr))
			   )
(princ)
)


Tim Corey
MicroCAD Training and Consulting, Inc.
Redding, CA
Autodesk Platinum Reseller

New knowledge is the most valuable commodity on earth. -- Kurt Vonnegut
0 Likes
Message 5 of 6

Joe-Bouza
Mentor
Mentor

Welcome back 👍

Joe Bouza
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

Message 6 of 6

troma
Mentor
Mentor

@Joe-Bouza wrote:

Welcome back 👍


Thanks @Joe-Bouza  😁

I was searching for an answer to a problem and thought I should try to help someone else while I'm here.

So I accidentally posted a reply to a question that's over 9 months old! Oops. Maybe it was useful.

 

I drop in from time to time but I can't promise to be here every day.


Mark Green

Working on Civil 3D in Canada