Results 1 to 2 of 2

Thread: Need help with routine to replace text in several drawings.

  1. #1
    Woo! Hoo! my 1st post
    Join Date
    2009-08
    Posts
    1
    Login to Give a bone
    0

    Default Need help with routine to replace text in several drawings.

    We have several drawings that someone had created a "special" text style for. Now, we want to convert all of this text to a Unicode format to make the drawings more universal and easier to work with. I am totally new to LISP and could use some help on how to get this done.

  2. #2
    AUGI Addict
    Join Date
    2008-02
    Posts
    1,141
    Login to Give a bone
    0

    Default Re: Need help with routine to replace text in several drawings.

    Quote Originally Posted by gerald.w.baker.ctr View Post
    We have several drawings that someone had created a "special" text style for. Now, we want to convert all of this text to a Unicode format to make the drawings more universal and easier to work with. I am totally new to LISP and could use some help on how to get this done.
    if you just want to change the properties of the created textstyle, it will be beyond easy, you just recreate the text style in each drawing (very simple).
    this will create/change the textstyle "NOTES" using arialn.ttf (arial narrow) font.
    just type in -style and follow the prompts to get your code right.
    Code:
    (command "-style" "NOTES" "ARIALN.TTF" "0.0" "1.0""0" "N" "N")
    if you want to change all text to a a different text style, you just select all text of the specified text style and change it.
    for instance, this would select all text and mtext in a drawing with 'Standard' textstyle:
    Code:
    (ssget "_X" '((0 . "TEXT,MTEXT")(7 . "Standard")))

Similar Threads

  1. Find and Replace for Multiple Drawings
    By autocad.wishlist1734 in forum AutoCAD Wish List
    Replies: 3
    Last Post: 2015-10-07, 11:07 AM
  2. Find and Replace text in multiple drawings
    By hbisco in forum AutoLISP
    Replies: 18
    Last Post: 2012-01-20, 05:01 PM
  3. replace texts in two drawings together?
    By ccy137 in forum VBA/COM Interop
    Replies: 3
    Last Post: 2009-10-22, 12:06 PM
  4. Text search and replace routine across multiple drawing files
    By David van Erk in forum AutoCAD Customization
    Replies: 1
    Last Post: 2006-05-19, 10:31 PM
  5. Routine to replace text
    By methost in forum AutoLISP
    Replies: 7
    Last Post: 2005-02-18, 08:13 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
  •