Results 1 to 4 of 4

Thread: How to run a LISP routine on multiple drawings?

  1. #1
    Member
    Join Date
    2005-04
    Posts
    21
    Login to Give a bone
    0

    Default How to run a LISP routine on multiple drawings?

    I have a lisp routine that I would like to run on multiple drawings. In the past I have written scripts to modify my drawings and used Hurricane to run on several drawings. I am unaware of how to automate this process using lisps though. Any ideas?

  2. #2
    Certifiable AUGI Addict tedg's Avatar
    Join Date
    2005-06
    Location
    in the upper right corner
    Posts
    3,508
    Login to Give a bone
    0

    Default Re: How to run a LISP routine on multiple drawings?

    Quote Originally Posted by jmoore284 View Post
    I have a lisp routine that I would like to run on multiple drawings. In the past I have written scripts to modify my drawings and used Hurricane to run on several drawings. I am unaware of how to automate this process using lisps though. Any ideas?
    For setting up a batch program to open up several drawings and run a lisp routine, check out this thread. It uses a batch, script and lisp routines.

    I think this will help.

  3. #3
    I could stop if I wanted to
    Join Date
    2003-11
    Posts
    277
    Login to Give a bone
    0

    Default Re: How to run a LISP routine on multiple drawings?

    Hi jmoore,
    put your code at Tools > Load Applications....> Contents...> Add..> "select your code"...> close > close.
    or put your code at acaddoc2005.lsp (if your cad 2005).


    Quote Originally Posted by jmoore284 View Post
    I have a lisp routine that I would like to run on multiple drawings. In the past I have written scripts to modify my drawings and used Hurricane to run on several drawings. I am unaware of how to automate this process using lisps though. Any ideas?

  4. #4
    Certifiable AUGI Addict
    Join Date
    2015-11
    Location
    Jo'burg SA
    Posts
    4,512
    Login to Give a bone
    0

    Default Re: How to run a LISP routine on multiple drawings?

    Quote Originally Posted by Adesu View Post
    Hi jmoore,
    put your code at Tools > Load Applications....> Contents...> Add..> "select your code"...> close > close.
    or put your code at acaddoc2005.lsp (if your cad 2005).
    That will run the lisp routine for every drawing you open, if this is what you wanted. Otherwise tedg's post shows the easiest method to select DWG & run some commands on them.
    BTW, don't use the ACADDOC200#.LSP file. Rather create a ACADDOC.LSP file in a support path. Officially this is where you should place custom code to be loaded for each DWG. The A...200#.LSP is intended only for AutoDesk programmers - so you never know what will happen later in an update / upgrade.

Similar Threads

  1. Script to execute lisp on multiple drawings
    By jrd.chapman in forum AutoLISP
    Replies: 12
    Last Post: 2017-07-21, 10:04 AM
  2. Replies: 7
    Last Post: 2013-11-26, 08:39 PM
  3. Replies: 10
    Last Post: 2010-10-13, 03:54 PM
  4. Replies: 27
    Last Post: 2007-01-08, 01:59 PM
  5. Replies: 4
    Last Post: 2006-09-15, 08:04 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
  •