+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Forum Newbie
    Using
    AutoCAD LT 2005
    Join Date
    May 2007
    Posts
    6

    Question Running a macro for multiple drawings

    Registered forum members do not see this ad.

    Hello. I'm running ACAD Map 3D 2009. I have to run ONE custom macro on a number of drawings that are stored in a particular folder.

    I'm not really familiar with LISP routines but can figure some of it out.

    Basically all I need is to:
    open
    run custom macro
    close
    go on to next drawing.

    Pretty simple. I just don't know how to write LISP.

    Any help will be GREATLY appreciated.

  2. #2
    Forum Newbie
    Using
    AutoCAD LT 2005
    Join Date
    May 2007
    Posts
    6

    Default

    I found this which is what I want to do

    http://www.cadtutor.net/forum/showth...ht=batch+macro

    but can't figure out how to make the lisp in the second post work.

  3. #3
    Super Member Patrick Hughes's Avatar
    Computer Details
    Patrick Hughes's Computer Details
    Operating System:
    Win 2000
    Graphics:
    Quadro fx500
    Monitor:
    2x 1920x1080
    Discipline
    Mechanical
    Patrick Hughes's Discipline Details
    Occupation
    Self unemployed - Machine Design
    Discipline
    Mechanical
    Details
    Machine Design
    Using
    AutoCAD pre 2000
    Join Date
    May 2008
    Location
    Rockford, Illinois
    Posts
    588

    Default

    Cyberdos,

    The code in the second post is not lisp, it is VBA (VisualBasic for Applications) and it would need to be compiled into a program.

    What you want to do is run your macro from a SCRIPT. Do you have the macro written? I've heard mention of something that comes with AutoCAD called ScriptPro that might do what you want.

    If that doesn't work for you I have a bonus feature in my CadTempo time tracking program that allows you to easily create a batch script for all files in a directory. It is a new feature and not documented as yet, if you give it a try I'll gladly walk you through the steps.

    The 30 day free trial would give you plenty of time to get your job done.
    www.cadtempo.com
    Time tracking for AutoCAD, Inventor, Revit and other CAD programs

  4. #4
    Forum Deity
    Using
    Civil 3D 2013
    Join Date
    Dec 2005
    Location
    GEELONG AUSTRALIA
    Posts
    3,791

    Default

    Registered forum members do not see this ad.

    I knew I had seen this question elsewhere in the last week Lee's post try this http://lee-mac.com/scriptwriter.html
    A man who never made mistakes never made anything

Similar Threads

  1. Running multiple LISP from one button
    By leos98 in forum AutoLISP, Visual LISP & DCL
    Replies: 6
    Last Post: 9th Apr 2009, 07:38 pm
  2. Running a macro from a number
    By comcu in forum AutoLISP, Visual LISP & DCL
    Replies: 14
    Last Post: 30th Mar 2009, 11:18 pm
  3. Running Publish in a macro
    By Olhado_ in forum AutoLISP, Visual LISP & DCL
    Replies: 0
    Last Post: 25th Mar 2009, 11:24 pm
  4. Running a Macro or .EXE upon opening a Drawing???
    By bigr1822 in forum AutoLISP, Visual LISP & DCL
    Replies: 8
    Last Post: 27th Sep 2008, 12:15 am
  5. Preventing multiple instances of acad.exe from running
    By joerockt in forum AutoCAD Drawing Management & Output
    Replies: 3
    Last Post: 19th Jul 2006, 08:09 pm

Bookmarks

Posting Permissions

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