PDA

View Full Version : Editi text in place with macro



koletutor
12th Jan 2012, 11:06 am
Hello,

I'm trying to create button with macro to edit existing text in place, with predefined text with macro ....
For example, existing text is "Old text", and I want this text (or whatever I select) to edit in place with click on macro button to change it to "New text".

Thank you in advance ... :)

ReMark
12th Jan 2012, 11:49 am
Couldn't that be handled with Find & Replace just as well?

koletutor
12th Jan 2012, 11:57 am
Yes it can, but if you have buttons with predefined text it would be much faster ...

ReMark
12th Jan 2012, 12:01 pm
Give us a real world example.

Old text =

New text =

Are you doing this to correct text in a large number of drawings?

koletutor
12th Jan 2012, 01:11 pm
OK,

Old text = Any text

New text = Hello

If created like button macro (^C^C_CommandToEditTextWithReplacingTextWithHello ) it would be nice to work for opened drawing and single picked text.

ReMark
12th Jan 2012, 01:28 pm
You're a funny guy.

Are you doing this to correct text in a large number of drawings?

How many of these change text macro buttons are you going to need?

koletutor
12th Jan 2012, 01:30 pm
For start only one :)

ReMark
12th Jan 2012, 01:32 pm
Alright. I see you don't want to answer the question I put to you twice so I'm moving on. One of the programmers will help you out. Bye.

ReMark
12th Jan 2012, 02:38 pm
Replace text elements using a lisp routine.

http://cadtips.cadalyst.com/notestext/replace-text-elements

Search and replace text.

http://cadtips.cadalyst.com/notestext/search-and-replace

Replace text string.

http://cadtips.cadalyst.com/notestext/replace-text-strings

designerstuart
12th Jan 2012, 03:15 pm
i knew you couldn't stay away long remark ;)

ReMark
12th Jan 2012, 03:20 pm
Drawn to the flame like a moth. My singed wings prove it.

designerstuart
12th Jan 2012, 04:13 pm
also, the link in this thread (http://www.cadtutor.net/forum/showthread.php?64510-button-to-find-and-replace) might help
(http://www.cadtutor.net/forum/showthread.php?64510-button-to-find-and-replace)

koletutor
12th Jan 2012, 04:24 pm
Thank you for helping me out, ReMark and designerstuart :)

designerstuart
12th Jan 2012, 04:59 pm
You're welcome. a while back i had to find out exactly the same thing as you!