Results 1 to 2 of 2

Thread: Cycling through all AutoCAD drawings that are currently opened ...

  1. #1
    Member
    Join Date
    2008-08
    Posts
    2
    Login to Give a bone
    0

    Default Cycling through all AutoCAD drawings that are currently opened ...

    I'm looking for a way to run the ATTEDIT command on all drawings that are currently open in an AutoCAD instance. I currently have this (.scr) script:

    -ATTEDIT N N MyBlock MyField *
    OldText
    NewText

    or as written in LISP:

    (command "-attedit" "N" "N" "MyBlock" "MyField" "*" "OldText" "NewText")

    But I want to make it run on all drawings that are currently open (ie. not as they're being opened or based on what folder they are in). Any suggestions?

  2. #2
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    5,850
    Login to Give a bone
    0

    Default Re: Cycling through all AutoCAD drawings that are currently opened ...

    Cycling through the dwgs is easy, but to send text to the command line (ThisDrawing.SendCommand) runs asyncronously from vba execution. You could try doing it in lisp or just make a command of it in the cui and assign a hotkey to it.
    C:> ED WORKING....

Similar Threads

  1. 2004 3D Drawings can't be opened in 2008?
    By gfreddog in forum AutoCAD General
    Replies: 4
    Last Post: 2008-02-29, 09:49 PM
  2. Replies: 3
    Last Post: 2007-09-07, 04:36 PM
  3. AutoCAD closes as soon as it is opened
    By amanda_duvall in forum AutoCAD General
    Replies: 7
    Last Post: 2007-06-19, 07:39 PM
  4. Report from Reference Manager on Drawings Not Able to be Opened
    By autocad.wishlist1734 in forum AutoCAD Wish List
    Replies: 0
    Last Post: 2007-03-23, 01:08 AM
  5. Can VBA affect other drawings opened later?
    By jgratton in forum VBA/COM Interop
    Replies: 2
    Last Post: 2005-02-27, 08:38 AM

Posting Permissions

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