Add Prefix to existing text in AutoCAD LT

Add Prefix to existing text in AutoCAD LT

rravgeotec
Contributor Contributor
7,489 Views
6 Replies
Message 1 of 7

Add Prefix to existing text in AutoCAD LT

rravgeotec
Contributor
Contributor

Hello Everyone,

 

I not familiar with Macro and Lisp and tried to search a lot of macros to add prefix and suffix in the existing text. But, not get much success. Please help to give me a macro to add a prefix in the existing text.

 

regards

Ravi

0 Likes
Accepted solutions (4)
7,490 Views
6 Replies
Replies (6)
Message 2 of 7

steven-g
Mentor
Mentor
Accepted solution

That isn't going to be an option in LT, first, there is no Lisp in LT so that option doesn't exist. The next problem is that Macros don't work with any command that opens a dialogue box and the 'mtedit' command opens the mtext editor which as far as macros go is a dialogue box. But if all the text items are the same then the 'find/replace' command will work, no need for a macro. If the text items all start with different values then I'm afraid it is down to manual editing one by one.

Message 3 of 7

cadffm
Consultant
Consultant
Accepted solution

>But, not get much success

 

That's because of: There is no command to do that.

(and Lisp is not available in LT Version?

Sebastian

0 Likes
Message 4 of 7

rravgeotec
Contributor
Contributor

thank you for the reply. just last question!!

I do not want to open any editor. just want to add "XXX" (could be any three alphabets) in the existing coordinate (number). i.e.   

43.20 --> XXX43.20

56.52 --> 56.52XXX

 

"XXX" will be in macro. no problem, if it's work only for "TEXT".

I google and found we have a macro to add prefix with increment number.

 

0 Likes
Message 5 of 7

cadffm
Consultant
Consultant
Accepted solution

@cadffm wrote:

There is no command to do that.


 

Sebastian

0 Likes
Message 6 of 7

pendean
Community Legend
Community Legend
Accepted solution

Explore here https://knowledge.autodesk.com/support/autocad/learn-explore/caas/CloudHelp/cloudhelp/2016/ENU/AutoC...

 

Not perfect but at least it will get you part of the way there

 

1.JPG

0 Likes
Message 7 of 7

rravgeotec
Contributor
Contributor

Thanks a ton, pendean !!

 

0 Likes