See the top rated post in this thread. Click here

Results 1 to 7 of 7

Thread: Editing multiple Text entities (not MText)

  1. #1
    Member
    Join Date
    2007-09
    Posts
    14
    Login to Give a bone
    0

    Default Editing multiple Text entities (not MText)

    I am looking for a way to edit multiple simple text entries so that I select them all and then edit them in order, instead of picking the text, editing it, pressing okay and then moving onto the next. I want to be able to select a whole bunch and then cycle through them. I can't use find and replace because I'm replacing each entry with different text.

    I've tried various lsp routines I've found on the internet, and none of them works.

    I found that I could use CHANGE, and then press enter until I got to the 'enter new text' option, and although that allows me to select as many as I want, I have to keep pressing enter until I get the option I want - I may as well just use dedit. I've tried the 'multiple mode' in dedit, and that just does nothing, it still only allows me to select one at a time. So I thought I'd write a macro using CHANGE. That works for the first selection, but for the others I've selected I have to keep pressing enter to get the option. I've tried everything I could think of without success. Does anyone know how I can make it find the correct change option in the macro for all of the objects selected? This is the macro I wrote:

    ^C^C_.select;\_.change previous;;;;;;; (the number of 'enter's is the number required to get to the 'enter new text' option). I've tried a "*" at the beginning, a "\" at the end, a "\;;;;;;" at the end, and nothing works.

    What am I doing wrong? Or does anyone know of a lsp routine? (Not tedit.lsp, it requires something called ddedit which causes my computer to have a hissy fit - it says unknown command, and then makes all inputs on the command line go invisible, forcing me to close and restart autocad.)

  2. #2
    Certifiable AUGI Addict
    Join Date
    2001-03
    Location
    Tallahassee, FL
    Posts
    2,909
    Login to Give a bone
    0

    Default Re: Editing multiple Text entities (not MText)

    I just double-click on each dtext to edit them, then simply hit [Enter] when I'm done.
    I have Mode set to Multiple which is the default setting if that helps.

    Not sure how that could be any easier, maybe if we understood what you're trying to do we could offer more suggestions. There's lisp out there for adding or modifying sequential numbering as well as adding prefixes and suffixes for example.
    Tom Beauford P.S.M. - Civil 2019 on Windows 10 Enterprise
    Design Analysis - Leon County Public Works/Engineering Wrap [CODE] tags around selected text
    2280 Miccosukee Rd. Tallahassee, FL 32308-5310
    Ph# (850)606-1516 Home Page

  3. #3
    Certifiable AUGI Addict
    Join Date
    2001-03
    Location
    Tallahassee, FL
    Posts
    2,909
    Login to Give a bone
    0

    Default Re: Editing multiple Text entities (not MText)

    Quote Originally Posted by anne-kzn View Post
    I am looking for a way to edit multiple simple text entries so that I select them all and then edit them in order, instead of picking the text, editing it, pressing okay and then moving onto the next. I want to be able to select a whole bunch and then cycle through them. I can't use find and replace because I'm replacing each entry with different text.

    Or does anyone know of a lsp routine? (Not tedit.lsp, it requires something called ddedit which causes my computer to have a hissy fit - it says unknown command, and then makes all inputs on the command line go invisible, forcing me to close and restart autocad.)
    ddedit command has been replaced with textedit you need an updated version.
    Current version of tedit.lsp which may be what you're looking for: https://forums.autodesk.com/t5/autoc...5527233#M74066
    Tom Beauford P.S.M. - Civil 2019 on Windows 10 Enterprise
    Design Analysis - Leon County Public Works/Engineering Wrap [CODE] tags around selected text
    2280 Miccosukee Rd. Tallahassee, FL 32308-5310
    Ph# (850)606-1516 Home Page

  4. #4
    Member
    Join Date
    2007-09
    Posts
    14
    Login to Give a bone
    0

    Default Re: Editing multiple Text entities (not MText)

    Okay - say you've got a list of numbers on an Index of detail drawings (it needs to be a drawing - I could probably use excel or word, or something, but it is a drawing). You need to add 12 (or whatever) more drawings. The easiest way is to copy the text from a previous line, 12 (or whatever) times. You then go back and edit them. You select them all and edit 1, enter, 2 enter, 3 enter, etc, using the keyboard only. Now you have to select, edit, enter and then select again. It doesn't sound like much, but you have to alternate between the keyboard and the mouse, over and over. If they are complicated numbers, or a variety of text, it's easy to get confused, believe me. Also, you don't have to keep finding them, if they are all over the drawing - you select them in order, and so editing them is easy. Express tools has sequential numbering, but it's not always numbers I'm editing.

    You used to be able to do that, why can't you any more? I tried your double click, thinking I'd missed something, but I hadn't - I still have to edit the first before selecting the second. So, mouse, keyboard, mouse.

    Oh, and thanks for the updated lisp routine - I will go and download it.

  5. #5
    Member
    Join Date
    2007-09
    Posts
    14
    Login to Give a bone
    0

    Default Re: Editing multiple Text entities (not MText)

    Thanks so much for the updated tedit - works just like I want it to!

  6. #6
    Certifiable AUGI Addict
    Join Date
    2001-03
    Location
    Tallahassee, FL
    Posts
    2,909
    Login to Give a bone
    1

    Default Re: Editing multiple Text entities (not MText)

    Glad that worked for you!

    You may want to look at Lee Mac's Batch Find & Replace Text lisp which isn't as limited as AutoCAD's Find command.
    http://www.lee-mac.com/bfind.html

    It may be able to automate what you're doing.
    Tom Beauford P.S.M. - Civil 2019 on Windows 10 Enterprise
    Design Analysis - Leon County Public Works/Engineering Wrap [CODE] tags around selected text
    2280 Miccosukee Rd. Tallahassee, FL 32308-5310
    Ph# (850)606-1516 Home Page

  7. #7
    Member
    Join Date
    2007-09
    Posts
    14
    Login to Give a bone
    0

    Default Re: Editing multiple Text entities (not MText)

    Thanks again - I have downloaded it and will have a look at it tomorrow.

Similar Threads

  1. Multiple Text Styles in MTEXT
    By Wish List System in forum AutoCAD Wish List
    Replies: 1
    Last Post: 2015-07-08, 04:01 PM
  2. Multiple Text Styles in one MTEXT object
    By acadwishlist in forum AutoCAD Wish List
    Replies: 5
    Last Post: 2013-11-01, 04:04 AM
  3. 2009: Differentiate text entities from mtext entities
    By samirjoshi in forum AutoCAD General
    Replies: 4
    Last Post: 2012-01-16, 11:08 AM
  4. Editing Multiple Text at time
    By ganmoli in forum AutoCAD General
    Replies: 12
    Last Post: 2008-04-03, 06:29 PM
  5. Marking Edited TEXT/MTEXT Entities
    By relysoft in forum AutoLISP
    Replies: 6
    Last Post: 2004-12-06, 10:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •