Loading Other Options File paths????

Discussion in 'AutoCAD' started by Chris Chiles, Feb 11, 2005.

  1. Chris Chiles

    Chris Chiles Guest

    I have found a couple of routines to help with setting some other of the
    Option File paths such as:

    Plotstyle Set.lsp
    (vl-load-com)
    (vla-put-PrinterStyleSheetPath (vla-get-Files (vla-get-Preferences
    (vlax-get-acad-object))) "S:\\ACAD\\CTB")

    When I load this one I get this error:
    Command: (LOAD "C:/Documents and Settings/cchiles/Desktop/Plotstyle
    Set.lsp") ;
    error: Automation Error. Invalid Argument


    &

    Plotter Paths.lsp
    (VL-LOAD-COM);Loads the Visual Lisp Extensions;
    (SETQ FILES (VLA-GET-FILES PREF)(VLA-GET-PREFERENCES
    (VLAX-GET-ACAD-OBJECT)));Gets the files tab info from the preferences;
    ((VLA-PUT-PRINTERCONFIGPATH FILES "C:\\Newplotters");Sets the plotter
    configuration path;
    (VLA-PUT-PRINTERDESCPATH FILES "C:\\Drv")Sets the drive path;
    (VLA-PUT-PRINTERSTYLESHEETPATH FILES "C:\\Plot Styles");Sets the Plot styles
    path

    When I load this one I get this error:
    Command: (LOAD "C:/Documents and Settings/cchiles/Desktop/Plotter
    Paths.lsp") ;
    error: syntax error

    I would like to set up a lisp that will load the paths for the plotter paths
    and these others that I found in the registry also:
    QNewTemplate
    TemplatePath
    ToolPalettePath

    What am I doing wrong??
    And which one of the two should I use? I think the first one Checks to see
    if the path is existing first. Is that correct?

    Thanks Again - As you can tell I'm somewhat new to all of this.
    Chris
     
    Chris Chiles, Feb 11, 2005
    #1
  2. You're in the wrong newsgroup - this vba not lisp

    -- Mike
    ___________________________
    Mike Tuersley
    CADalyst's CAD Clinic
    Rand IMAGINiT Technologies
    ___________________________
    the trick is to realize that there is no spoon...
     
    Mike Tuersley, Feb 11, 2005
    #2
  3. Chris Chiles

    Chris Chiles Guest

    Sorry - Thanks
     
    Chris Chiles, Feb 11, 2005
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.