The Hurricane Forum
The Hurricane Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 AutoCAD
 Lisp & Other Handy Files
 CHTEXT.LSP (Change Text)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

BK
Super User

36 Posts

Posted - March 29 2003 :  09:58:58 AM  Show Profile  Visit BK's Homepage  Reply with Quote
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

JMM
Starting Member

2 Posts

Posted - July 18 2007 :  3:48:14 PM  Show Profile  Visit JMM's Homepage  Reply with Quote
Why doesn't Autocad recognize "cht" as a command? I successfully loaded chtext.lsp.
Go to Top of Page

Admin
Administrator



626 Posts

Posted - July 18 2007 :  4:24:30 PM  Show Profile  Visit Admin's Homepage  Reply with Quote
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

Hurricane for AutoCAD
http://www.74mph.com
FAQ at
http://www.74mph.com/faq/faq.html
Tutorials at
http://www.74mph.com/tutorials.html
Go to Top of Page

JMM
Starting Member

2 Posts

Posted - July 26 2007 :  07:41:36 AM  Show Profile  Visit JMM's Homepage  Reply with Quote
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
Go to Top of Page

n/a
deleted

112 Posts

Posted - August 01 2007 :  8:19:50 PM  Show Profile  Reply with Quote
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.

Steve Bubendorf
Go to Top of Page

Sherman
New Member

12 Posts

Posted - June 21 2008 :  11:58:32 PM  Show Profile  Visit Sherman's Homepage  Reply with Quote
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
Go to Top of Page

faris
Starting Member

Congo, Democratic Republic of
1 Posts

Posted - January 03 2014 :  02:10:06 AM  Show Profile  Reply with Quote
It would also be useful to specify a specific block by name to search, as this would speed up the processing no end.


faris
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Hurricane Forum © 2009 - 2018 Go To Top Of Page
This page was generated in 0.05 seconds. Snitz Forums 2000