one command to edit multiple instances mtext

one command to edit multiple instances mtext

Anonymous
Not applicable
42,601 Views
21 Replies
Message 1 of 22

one command to edit multiple instances mtext

Anonymous
Not applicable

In the past, I've been able to type ED in the command line and thus was able to edit multiple instances of mtext. Now if I type ED and click on an instance of mtext, as soon as I'm done editing and I click out of the editor, the editor closes and I have to either double-click or type ED again to go to edit the next instance. Why? Is there a new command or something that I can use so that I don't have to double-click every instance of mtext I have?

 

Just in case the above wasn't clear: let's say I have a line of equipment and each piece has its own lines of mtext. I need to go in and change the mtext for each equipment piece. I don't want to have to double-click on each instance of mtext. Is there a command I can use to jump from mtext to mtext without having to double-click (or type ED) for each one?

0 Likes
Accepted solutions (2)
42,602 Views
21 Replies
Replies (21)
Message 2 of 22

Patchy
Mentor
Mentor

The old way was DDEDIT instead of MTEDIT

0 Likes
Message 3 of 22

GrantsPirate
Mentor
Mentor

I use TE which is an alias for TEXTEDIT.  Try it, it might already be defined in your acad.pgp.

 

This command works for all types of text.


GrantsPirate
Piping and Mech. Designer
EXPERT ELITE MEMBER
Always save a copy of the drawing before trying anything suggested here.
----------------------------------------------------------------------------
If something I wrote can be interpreted two ways, and one of the ways makes you sad or angry, I meant the other one.

Message 4 of 22

Anonymous
Not applicable

Patchy - Fine. Whatever. That still doesn't answer my question: is there a command that will allow me to edit multiple instances of mtext or dtext or whatever text without my having to double-click on each and every instance? 

0 Likes
Message 5 of 22

Anonymous
Not applicable
GrantsPirate - thanks for the advice, but that didn't work. I still have to double-click each instance because the editor closes each instance after I'm done. I used to be able to edit text, click out of that one instance and then click ONCE in the next instance and keep on editing. But I appreciate your help.
0 Likes
Message 6 of 22

GrantsPirate
Mentor
Mentor

Did you type TEXTEDIT out to try it or just TE?  Maybe TE is defined as something else on your setup.  TEXTEDIT works great here, maybe a setting but I am not sure what that is right now.

 


GrantsPirate
Piping and Mech. Designer
EXPERT ELITE MEMBER
Always save a copy of the drawing before trying anything suggested here.
----------------------------------------------------------------------------
If something I wrote can be interpreted two ways, and one of the ways makes you sad or angry, I meant the other one.

0 Likes
Message 7 of 22

Patchy
Mentor
Mentor

Unless newer version Autodesk killed DDEDIT, it's the command to do multiple edit

0 Likes
Message 8 of 22

GrantsPirate
Mentor
Mentor

Patchy - DDEDIT is replaced with TEXTEDIT command, saw that in help.

 

OP - make sure TEXTEDITMODE is set to 0.


GrantsPirate
Piping and Mech. Designer
EXPERT ELITE MEMBER
Always save a copy of the drawing before trying anything suggested here.
----------------------------------------------------------------------------
If something I wrote can be interpreted two ways, and one of the ways makes you sad or angry, I meant the other one.

0 Likes
Message 9 of 22

Patchy
Mentor
Mentor

I need to upgrade my 2008 Smiley Very Happy

0 Likes
Message 10 of 22

Kent1Cooper
Consultant
Consultant
Accepted solution

@Anonymous wrote:

.... if I type ED and click on an instance of mtext, as soon as I'm done editing and I click out of the editor, the editor closes and I have to either double-click or type ED again to go to edit the next instance. .... Is there a new command or something that I can use so that I don't have to double-click every instance of mtext I have?

....


You can select all the Mtext objects collectively under PickFirst mode, then in the Properties box, in the Contents slot, pick where it says *VARIES* and then pick on the little icon that comes up at the right:


TextEdit.PNG

 

For me [Acad2016 here] that then operates even better than what you describe -- when I finish editing one of them, it immediately moves to another Mtext object, already in editing mode, by itself [I don't have to pick on another].  I suppose you might consider it a "drawback" that it decides the order in which you edit them, but they're all in view so you can see which one you're editing in relation to the others, which should avoid any confusion.

Kent Cooper, AIA
Message 11 of 22

GrantsPirate
Mentor
Mentor

OP - I have used this lisp routine for years to automate the process a little.

 

TIP1011.LSP: ME.LSP  Cadalyst magazine.

 

; TIP1011.LSP: ME.LSP    Multiple Editing   (c)1994, Gary Goode
;;;modified 4.9.2003 to include mtext, dimensions, attdef and arctext
;This program will let you pick and edit multi text and attributes
;by window, pick or crossing using dialog boxes.
;-----------------------------------------------------------------
(defun C:ME (/ A B C D E F G H J K L M N P R)      
   (graphscr)
   (setvar "CMDECHO" 0)
   (setvar "HIGHLIGHT" 1)
   (prompt "\nMulti-Edit is loaded ...  ")
   (setq A (ssget) B (sslength A) C 0)                  
   (while (< C B) (setq D (ssname A C) E (entget D))
      (setq F (car E))
      (setq G (cdr E))
      (setq H (car G))
      (setq J (cdr H))
      (setq K "TEXT")
      (setq L "INSERT")
      (setq M "DIMENSION")
      (setq N "MTEXT")
      (setq P "ATTDEF")
      (setq R "ARCALIGNEDTEXT")
;
;      (if (= J K)(command ".ddedit" D ""))   
;      (if (= J L)(command "ddatte" D))
;      (if (= J N)(command ".MTEDIT" D ""))
;      (if (= J M)(command ".ddedit" D "")) 
;      (if (= J P)(command ".ddedit" D ""))
;      (if (= J R)(command ".ARCTEXT" D ""))
;;updated with next section using textedit for most objects
      (if (= J K)(command ".ATTEDIT" D ""))   
      (if (= J L)(command ".TEXTEDIT" D))
      (if (= J N)(command ".TEXTEDIT" D ""))
      (if (= J M)(command ".TEXTEDIT" D "")) 
      (if (= J P)(command ".TEXTEDIT" D ""))
      (if (= J R)(command ".ARCTEXT" D ""))
   (setq C (1+ C)))
   (princ)
); end me.lsp



GrantsPirate
Piping and Mech. Designer
EXPERT ELITE MEMBER
Always save a copy of the drawing before trying anything suggested here.
----------------------------------------------------------------------------
If something I wrote can be interpreted two ways, and one of the ways makes you sad or angry, I meant the other one.

Message 12 of 22

Anonymous
Not applicable
HA! Quick, easy, understandable...perfect!! Thank you, Kenneth, you are my hero of the day!!
0 Likes
Message 13 of 22

Anonymous
Not applicable
Um...yeah.
0 Likes
Message 14 of 22

Anonymous
Not applicable
Yep, AutoCAD 2016 killed it.
0 Likes
Message 15 of 22

Anonymous
Not applicable
OK, now my idiot side is really kicking in...how do you set texteditmode to 0? I tried typing it in the command line and got an error message.
0 Likes
Message 16 of 22

GrantsPirate
Mentor
Mentor
Accepted solution

you can get there by starting TEXTEDIT command, Mode, multiple or single.  TEXTEDITMODE works on 2017, maybe it is not there on earlier releases?


GrantsPirate
Piping and Mech. Designer
EXPERT ELITE MEMBER
Always save a copy of the drawing before trying anything suggested here.
----------------------------------------------------------------------------
If something I wrote can be interpreted two ways, and one of the ways makes you sad or angry, I meant the other one.

Message 17 of 22

Anonymous
Not applicable
I typed in MULTIPLE, and it asked me what command I wanted to run multiple times. I typed in TEXTEDIT, and it worked! This is another great solution, Thanks GrantsPirate!!
Message 18 of 22

ВeekeeCZ
Consultant
Consultant
This basic lisp is little better then MULTIPLE... you can click aside for finishing the editing instead of ESC.

(while (setq en (entsel)) (command "TEXTEDIT" en))

Can be made as command and assigned for double click.
0 Likes
Message 19 of 22

ClaudioSattler
Observer
Observer

Hello! you can use the command FIND and REPLACE. Quick and easy!

Cheers!

Message 20 of 22

Anonymous
Not applicable

Awesome!

 

Thanks millions

 

lt

0 Likes