+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Forum Newbie
    Using
    AutoCAD 2010
    Join Date
    Nov 2009
    Posts
    2

    Default Lisp Command For Setting The Auto File Save Location

    Registered forum members do not see this ad.

    Does anybody know what the command is to set the Auto save file location using a lisp routine

    like the following sets the Template path,

    (vla-put-TemplateDwgPath *files* "\\\\Server\\Data\\Cad_Programs\\Autocad\\Draw ing Templates")

    I need to set the Autosave file location.

    Please Help!!!!

  2. #2
    Super Member MarcoW's Avatar
    Computer Details
    MarcoW's Computer Details
    Operating System:
    Microsoft Windows 7 Pro 64-bit
    Computer:
    A black one
    CPU:
    Intel Xeon E5520 Quad Core
    RAM:
    8 GB
    Graphics:
    NVIDIA Quadro FX 580 - 512MB
    Primary Storage:
    300 GB 10000 RPM
    Using
    AutoCAD 2011
    Join Date
    Apr 2009
    Location
    The Netherlands
    Posts
    599

    Default

    Do you happen to be dutch?

    Code:
     
    ; MarcoW 09-11-2009
    ;
    ; first create the function
    ; and localise the variables used
     (defun c:asf ( / asfloc oldloc)
    ; then set some variables that will be used
     (setq asfloc (getstring T "\nPlease enter the automatic Save File Location as desired:  ")
      oldloc (getvar "savefilepath")
     ); end of setq
    ; put the new path into the systemvariable
     (setvar "savefilepath" asfloc)
    ; show the old location once more, you might want to write down its location for you never know if you want it back
     (alert (strcat "The old path was: " oldloc))
    ; clean exit
      (princ)
    ; end of defun
    )
    Just wrote it but I guess it works.

    Someone might help you along getting the right folder by selecting it in a dialog box.

  3. #3
    Forum Newbie
    Using
    AutoCAD 2010
    Join Date
    Nov 2009
    Posts
    2

    Default

    Thanks .

    Nope not Dutch, Afrikaans from South Africa simlilar to Dutch.

  4. #4
    Full Member Tekenmeester's Avatar
    Computer Details
    Tekenmeester's Computer Details
    Operating System:
    Win Vista 64bit
    Computer:
    Dell T7500
    Using
    AutoCAD 2011
    Join Date
    Jul 2009
    Posts
    37

    Default Look in options

    Is this not what you are looking for?

    It is in options under the files tab.
    Attached Images

  5. #5
    Luminous Being alanjt's Avatar
    Using
    Civil 3D 2011
    Join Date
    Apr 2008
    Posts
    6,015

    Default

    Registered forum members do not see this ad.

    I wrote this a while back to run on new machines for complete setup.
    Obviously, you will have to make changes to the specifics, but it will have what you are looking for.

    Code:
    (defun c:CES-Setup (/ #Files #Layout #Flag)
      (vl-load-com)
      (and
        (not
          (vl-catch-all-error-p
            (vl-catch-all-apply
              '(lambda ()
                 (setq #Files  (vla-get-files
                                 (vla-get-preferences (vlax-get-acad-object))
                               ) ;_ vla-get-files
                       #Layout (vla-get-activelayout
                                 (vla-get-activedocument (vlax-get-acad-object))
                               ) ;_ vla-get-activelayout
                 ) ;_ setq
                 ;; *********************
                 ;; **  AutoSave Path  **
                 ;; *********************
                 (mapcar 'vl-mkdir (list "c:\\TEMP" "c:\\TEMP\\ACAD"))
                 (vla-put-autosavepath #Files "c:\\TEMP\\ACAD")
                 ;; ***************************
                 ;; **  Printer Config Path  **
                 ;; ***************************
                 (vla-put-PrinterConfigPath
                   #Files
                   "s:\\cadd standards\\Plotters"
                 ) ;_ vla-put-PrinterConfigPath
                 (vla-refreshplotdeviceinfo #Layout)
                 ;; ***********************
                 ;; **  Plotstyles Path  **
                 ;; ***********************
                 (vla-put-printerstylesheetpath
                   #Files
                   "s:\\cadd standards\\Plotstyles"
                 ) ;_ vla-put-printerstylesheetpath
                 (vla-refreshplotdeviceinfo #Layout)
                 ;; *********************
                 ;; **  Template Path  **
                 ;; *********************
                 (vla-put-TemplateDwgPath
                   #Files
                   "s:\\cadd standards\\Template"
                 ) ;_ vla-put-TemplateDwgPath
                 ;; *********************
                 ;; **  QNew Template  **
                 ;; *********************
                 (vla-put-QNewTemplateFile
                   #Files
                   "s:\\cadd standards\\Template\\CES_Template.dwt"
                 ) ;_ vla-put-QNewTemplateFile
                 ;; *********************
                 ;; **  Support Paths  **
                 ;; *********************
                 (vla-put-supportpath
                   #Files
                   (strcat ";s:\\cadd standards\\startup"
                           ";s:\\cadd standards\\lisp"
                           ";s:\\cadd standards\\linetypes"
                           ";s:\\cadd standards\\fonts"
                           ";s:\\cadd standards\\ces layers"
                           ";"
                           (vla-get-supportpath #Files)
                   ) ;_ strcat
                 ) ;_ vla-put-supportpath
                 ;; ***************************
                 ;; **  Tool Palettes Paths  **
                 ;; ***************************
                 (vla-put-ToolPalettePath
                   #Files
                   (strcat "S:\\CADD Standards\\Toolpalette\\Palettes;"
                           (vla-get-ToolPalettePath #Files)
                   ) ;_ strcat
                 ) ;_ vla-put-ToolPalettePath
               ) ;_ lambda
            ) ;_ vl-catch-all-apply
          ) ;_ vl-catch-all-error-p
        ) ;_ not
        (alert
          (strcat
            "AutoCAD has been setup for Capital Engineering & Surveying, Inc. Standards.\n\n"
            "                      Please restart AutoCAD."
          ) ;_ strcat
        ) ;_ alert
      ) ;_ and
      (princ)
    ) ;_ defun
    (alert "Type: \"CES-SETUP\" to run setup.")
    (princ)
    DropBox | finding the light...
    Seann: ...it went crazy ex-girlfriend on me...
    eric_monceaux...its pretty funny seeing two AutoCAD Gods give each other flak...

Similar Threads

  1. Save Location
    By Robertpse in forum AutoCAD General
    Replies: 3
    Last Post: 29th May 2009, 04:18 pm
  2. Setting default location for view labels how?
    By Safwah in forum Autodesk Inventor
    Replies: 4
    Last Post: 2nd Mar 2009, 01:24 pm
  3. Replies: 1
    Last Post: 6th Oct 2008, 09:40 pm
  4. Where to save a Lisp file?
    By amounjid in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 7
    Last Post: 23rd Sep 2008, 09:27 pm
  5. Setting a default location in a search dialogue box
    By cyclingg in forum AutoLISP, Visual LISP & DCL
    Replies: 5
    Last Post: 8th Oct 2007, 09:20 am

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