Page 3 of 3 FirstFirst 123
Results 21 to 22 of 22

Thread: Script Files

  1. #21
    Active Member
    Join Date
    2001-12
    Location
    Menasha, WI
    Posts
    74

    Default Re: Script Files

    OK, to show that I did learn something, here is the script as I have it now, I discarded the insert lisp and have used the entlast command. Maybe not the most effective, however it does what I need it to do. Now to learn a few commands like to run this on every drawing in a directory and I'd be in business without the third party software. Again thanks to all who helped beat this into my thick head.

    Old dog = new tricks

    attreq
    0
    insert
    title-d=
    60,60
    1


    erase
    (entlast)

    attreq
    1
    -PURGE
    A
    *
    N
    -PURGE
    A
    *
    N
    -PURGE
    A
    *
    N
    -PURGE
    A
    *
    N
    zoom
    all
    qsave

  2. #22
    I could stop if I wanted to
    Join Date
    2006-05
    Posts
    260

    Default Re: Script Files

    Hi,

    Glad that you got a solution. Just a suggestion, you could replace the n number of Purge lines with a single line lisp code...
    Code:
    (repeat 5 (command "-purge" "a" "*" "n"))
    This will repeat the purge command 5 times.

    Regards,
    AH

    Quote Originally Posted by darin.marsden View Post
    OK, to show that I did learn something, here is the script as I have it now, I discarded the insert lisp and have used the entlast command. Maybe not the most effective, however it does what I need it to do. Now to learn a few commands like to run this on every drawing in a directory and I'd be in business without the third party software. Again thanks to all who helped beat this into my thick head.

    Old dog = new tricks

    attreq
    0
    insert
    title-d=
    60,60
    1


    erase
    (entlast)

    attreq
    1
    -PURGE
    A
    *
    N
    -PURGE
    A
    *
    N
    -PURGE
    A
    *
    N
    -PURGE
    A
    *
    N
    zoom
    all
    qsave

Page 3 of 3 FirstFirst 123

Similar Threads

  1. Script On Multiple Files
    By zack.meyers in forum AutoLISP
    Replies: 0
    Last Post: 2012-02-07, 06:15 PM
  2. Script & Lsp Files on Toolpalette
    By bellis.239472 in forum CAD Management - General
    Replies: 2
    Last Post: 2011-04-12, 01:35 PM
  3. Need to script 'explode' of hundreds of files ..
    By mickmon in forum AutoCAD Customization
    Replies: 7
    Last Post: 2009-12-07, 06:08 PM
  4. Script files
    By -OTTP-Brembo in forum AutoLISP
    Replies: 8
    Last Post: 2005-03-10, 10: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
  •