+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Senior Member
    Using
    AutoCAD 2010
    Join Date
    Oct 2015
    Posts
    101

    Default Faster saving in a script

    Registered forum members do not see this ad.

    Good afternoon,

    Last week I had 1000+ drawings to process (a simple purge on them all). What took the time was saving each drawing - is there a fast method in a script (or a LISP )to save a drawing

    (1000 drawings at 3 seconds a save per drawing = about 50 minutes just for saving)


    The second longest thing was opening a drawing but I don't think I can do much with that. I would prefer to uses something that wasn't modifying system variables, though I can cope with them if it makes a difference

    Thanks

  2. #2
    Super Member
    Computer Details
    tombu's Computer Details
    Operating System:
    Windows 7 64-bit
    Computer:
    Dell
    Discipline
    Civil
    tombu's Discipline Details
    Occupation
    Design Analyst
    Discipline
    Civil
    Details
    Small Street & Stormwater projects. Traffic Calming and other issues.
    Using
    Civil 3D 2018
    Join Date
    Dec 2010
    Location
    Tallahassee, FL USA
    Posts
    825
    Layer 0 for ByBlock Block entities, everything else ByLayer. So many issues can be solved with good templates.

  3. #3
    Senior Member pendean's Avatar
    Computer Details
    pendean's Computer Details
    Operating System:
    Windows 10 64it Pro
    Computer:
    Lenovo WorkStation
    Discipline
    Architectural
    Using
    AutoCAD 2018
    Join Date
    Jun 2011
    Location
    Texas
    Posts
    132

    Default

    Question: what are you doing this for exactly?

    Also let everyone here know which version of AutoCAD (or LT) are you using.
    --
    Dean Saadallah
    AutoCAD and LT User
    BLOG|TW|FB|PIN
    --

  4. #4
    Forum Deity steven-g's Avatar
    Computer Details
    steven-g's Computer Details
    Operating System:
    Win 7
    Discipline
    Construction
    steven-g's Discipline Details
    Occupation
    Draughtsman
    Discipline
    Construction
    Details
    I work in the estimating department of a large building contractor.
    Using
    AutoCAD 2018
    Join Date
    May 2013
    Location
    An Englishman in Belgium
    Posts
    2,165

    Default

    Posting the script would help someone spot if there is a reason why things are slow, maybe change the order around or use an alternative command.
    I've just been down graded from 2012LT to full Autocad 2017. I WANT LT BACK

  5. #5
    Senior Member
    Using
    AutoCAD 2010
    Join Date
    Oct 2015
    Posts
    101

    Default

    Thanks for your help so far. I haven't tried any of them yet though - that's a job for next week

    However...
    Saveall - yup, but no, I wasn't wanting a saveall in case I had other drawings opened that didn't need saving

    I'm using AutoCAD 2018,

    Pretty much the script is:
    Open a file using the '_.OPEN ' command
    - run a couple of LISPS, for example 'purgea' - my purge all lisp
    save using '_.QSAVE'
    Close the file using 'close' command

    Open the next file in the list


    I tend to do them this way because opening, saving and closing produces a .bak file just in case. It seems to do the LIPS bits quickly in the script and outside of the script, just the save was pretty slow in comparison... so any hints where to look?

  6. #6
    Senior Member pendean's Avatar
    Computer Details
    pendean's Computer Details
    Operating System:
    Windows 10 64it Pro
    Computer:
    Lenovo WorkStation
    Discipline
    Architectural
    Using
    AutoCAD 2018
    Join Date
    Jun 2011
    Location
    Texas
    Posts
    132

    Default

    Where you are saving to and what format dwg file you are aiming for some of the many are reasons for slow saves if you've ruled out all of the other reasons like your purge routines etc.

    Care to tell us more, in a lot more detail? There is no magic bullet solution,this one may be local to you alone.
    --
    Dean Saadallah
    AutoCAD and LT User
    BLOG|TW|FB|PIN
    --

  7. #7
    Senior Member
    Computer Details
    iconeo's Computer Details
    Operating System:
    Windows
    Discipline
    Multi-disciplinary
    iconeo's Discipline Details
    Occupation
    CAD Manager/Draftsman
    Discipline
    Multi-disciplinary
    Using
    AutoCAD 2017
    Join Date
    Jun 2007
    Location
    Seattle
    Posts
    306

    Default

    Registered forum members do not see this ad.

    I used to use a utility called batchindatabase which was perfect for this. It was free but is now $40. Still though, you'd make it up in one session.

    If all the drawings you need to modify are in the same directory you could use the acaddoc.lsp trick.

    Sent from my Pixel 2 XL using Tapatalk

Similar Threads

  1. Script for saving camera perspectives
    By dynamo53 in forum AutoCAD 3D Modelling & Rendering
    Replies: 0
    Last Post: 19th Feb 2018, 08:48 am
  2. Faster rendering
    By nowikovs12 in forum Cameras, Lighting & Rendering
    Replies: 1
    Last Post: 30th Apr 2010, 03:48 pm
  3. faster way to PDF 09?
    By jjyynnxx in forum AutoCAD General
    Replies: 5
    Last Post: 26th Jul 2008, 06:45 pm
  4. Is there a faster way to do this?
    By ymstandard in forum AutoCAD General
    Replies: 4
    Last Post: 10th Jul 2007, 09:03 pm
  5. getting faster
    By MALKI in forum AutoCAD Beginners' Area
    Replies: 6
    Last Post: 6th Jun 2006, 07:00 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