The Hurricane Forum
The Hurricane Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 AutoCAD
 Lisp & Other Handy Files
 CHTEXT.LSP (Change Text)

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

   Attach a File

Check here to subscribe to this topic.
   

T O P I C    R E V I E W
BK Posted - March 29 2003 : 09:58:58 AM
This is AutoDesk's CHTEXT.LSP which they don't seem to include in new versions of AutoCAD.

Download Attachment: chtext.zip
6.58 KB

Bill
http://www.74mph.com
Hurricane for AutoCAD
6   L A T E S T    R E P L I E S    (Newest First)
faris Posted - January 03 2014 : 02:10:06 AM
It would also be useful to specify a specific block by name to search, as this would speed up the processing no end.


faris
Sherman Posted - June 21 2008 : 11:58:32 PM
Thanks.

With APPLOAD, I added the CHT command. It is asking for "strings"

I want to find the word "GROUND" and replace it with "Robot"

This is the dialog on the command line I'm getting:
---------------
Verifying the selected entities -- please wait.
53 text entities found.
Height/Justification/Location/Rotation/Style/Text/Undo/Width: t

Search and replace text. Individually/Retype/<Globally>:g

Match string : GROUND

New string : Robot
Changed 0 text lines.

Height/Justification/Location/Rotation/Style/Text/Undo/Width:

--------------------

It is not changing the text....and it is telling me that the text is not changed. What needs to be corrected, so I can find and replace a word?

Also, does this CHT command work on all text? I'm trying to change an text attribute in a block.

Thanks
n/a Posted - August 01 2007 : 8:19:50 PM
JMM,
I wonder if there aren't two copies of chtext.lsp on your computer. It looks to me like the one being loaded by your appload command cannot possibly be the one posted by BK. You state "I'm not getting the same response as you." The response that you refer to should be coming directly out of the lisp routine, and should be the one Bill posted, if you are using the chtext.lsp posted by BK.

I would try using BK's post. Drag the lisp file from Windows Explorer or your desktop into AutoCAD window to load it. That way you should be certain of which file is actually being loaded. You should get the same response as Bill that way, and hopefully the CHT command will work for you then.
JMM Posted - July 26 2007 : 07:41:36 AM
Bill,
I don't believe I have another lisp routine that also has CHT defined.

It's interesting. I'm using the APPLOAD command, and I receive:
Command: appload
chtext.lsp successfully loaded.
Command:
Command:

I'm not getting the same response as you.

In my Load/unload applications window under my "loaded applications" tab, I see chtext.lsp listed but it is grayed-out.

Jim
Admin Posted - July 18 2007 : 4:24:30 PM
Hi JMM,

Not sure what you might be doing wrong... if I use the APPLOAD command, I get the following... and then I can type CHT, and it calls the lisp as expected.

Command:
 c:CHText loaded.  Start command with CHT.
Command:
Command: cht

Change text, Version 1.02, (c) 1990-1994 by Autodesk, Inc.
Select text to change...


Do you have another lisp routine that also has CHT defined?

Regards,
Bill
JMM Posted - July 18 2007 : 3:48:14 PM
Why doesn't Autocad recognize "cht" as a command? I successfully loaded chtext.lsp.

The Hurricane Forum © 2009 - 2021 Go To Top Of Page
This page was generated in 0.19 seconds. Snitz Forums 2000