Results 1 to 6 of 6

Thread: What is the variable for sheet set template file location?

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

    Default What is the variable for sheet set template file location?

    I know how to set it. It is under Options -> Files -> Template Settings -> Sheet Set Template File Location, but I would like to set it automatically.

    I would also like the variable for "Default Template for Sheet Creating and Page Setup Overides".

    Thanks

  2. #2
    Certifiable AUGI Addict ccowgill's Avatar
    Join Date
    2004-08
    Location
    Iron Station, NC
    Posts
    3,198
    Login to Give a bone
    0

    Default Re: What is the variable for sheet set template file location?

    I was able to find the following

    Code:
    (setq AcadFiles
             (vla-get-files
               (vla-get-preferences
             (vlax-get-Acad-Object)
               ) ;_ end of vla-get-preferences
             ) ;_ end of vla-get-files
          ) ;_ end of setq
    
    (setq TemplatePath (vlax-get-property AcadFiles "PageSetupOverridesTemplateFile"))
    I couldnt find a command to set the SheetSet Template Folder Path. the above will return the current path, to set it do the following

    Code:
    (vlax-put-property AcadFiles "PageSetupOverridesTemplateFile" TemplatePath)

  3. #3
    I could stop if I wanted to
    Join Date
    2001-10
    Location
    Defragging the internets.
    Posts
    350
    Login to Give a bone
    0

    Default Re: What is the variable for sheet set template file location?

    (GETENV "SheetSetTemplatePath");To find current location
    (SETENV "SheetSetTemplatePath" "U:\\Template");To set new location;note the double \\



    Chris
    PS,
    To find this I set my template folder to "C:\find-me" and then searched my Registry for the "find-me" folder.

  4. #4
    Woo! Hoo! my 1st post
    Join Date
    2008-03
    Posts
    1
    Login to Give a bone
    0

    Thumbs up Re: What is the variable for sheet set template file location?

    Hi,

    Not sure if the prior solutions are the simplest.... this is what i use in my acaddoc.lsp to ensure paths are (and stay) correct :

    (setenv "PrinterStyleSheetDir" "ctbpathhere")

    (setenv "PrinterConfigDir" "pc3pathehere")

    (setenv "PrinterDescDir" "pmppathhere")

    (setenv "TemplatePath" "dwgtemplatepathhere")

    (setenv "SheetSetTemplatePath" "sheetsettemplatepathhere")

    (vla-put-QNewTemplateFile (vla-Get-Files (vla-Get-Preferences (vlax-get-acad-object))) "qnewtemplatepathhere")

    (vla-put-PageSetupOverridesTemplateFile (vla-Get-Files (vla-Get-Preferences (vlax-get-acad-object))) "psotemplatepathhere")

    -- remembering that paths have a \\ eg.

    "J:\\AUTOCAD\\SUPPORT"

  5. #5
    Active Member
    Join Date
    2007-02
    Location
    Calgary, Alberta, Canada
    Posts
    73
    Login to Give a bone
    0

    Default Re: What is the variable for sheet set template file location?

    Quote Originally Posted by msanmarzano View Post
    Hi,

    Not sure if the prior solutions are the simplest.... this is what i use in my acaddoc.lsp to ensure paths are (and stay) correct :

    (setenv "PrinterStyleSheetDir" "ctbpathhere")

    (setenv "PrinterConfigDir" "pc3pathehere")

    (setenv "PrinterDescDir" "pmppathhere")

    (setenv "TemplatePath" "dwgtemplatepathhere")

    (setenv "SheetSetTemplatePath" "sheetsettemplatepathhere")

    (vla-put-QNewTemplateFile (vla-Get-Files (vla-Get-Preferences (vlax-get-acad-object))) "qnewtemplatepathhere")

    (vla-put-PageSetupOverridesTemplateFile (vla-Get-Files (vla-Get-Preferences (vlax-get-acad-object))) "psotemplatepathhere")

    -- remembering that paths have a \\ eg.

    "J:\\AUTOCAD\\SUPPORT"
    If I type (getenv "ToolPalettePath"), it tells me that the path is on the C:/.
    When I type (setenv "ToolPalettePath" "J:\\CAD\\Tool Palettes"), it tells me that the path is J:\\CAD\\Tool Palettes.

    Now, when I go into Options or open my Tool Palettes, it's still the ones on the C:/, even after I restart AutoCAD. What am I missing?

  6. #6
    100 Club
    Join Date
    2008-06
    Location
    Rochester, NY
    Posts
    109
    Login to Give a bone
    0

    Default Re: What is the variable for sheet set template file location?

    FRAMEDNLV, if you are ever in the Rochester, NY area, let me know, I need to buy you a beer. Your short little post probably just solved 75% of my AutoCAD problems and/or headaches!

Similar Threads

  1. Sheet Set Template File Location in c#
    By oakam430373 in forum RealDWG
    Replies: 1
    Last Post: 2017-09-04, 01:47 AM
  2. Template file location
    By gadjet in forum CAD Standards
    Replies: 1
    Last Post: 2009-12-04, 07:50 PM
  3. Is there a variable by which I can get font file location?
    By rajat_bapi_mallick in forum AutoLISP
    Replies: 6
    Last Post: 2007-05-24, 05:51 PM
  4. Open Template file from a Network location
    By drafting.82475 in forum AutoCAD Customization
    Replies: 7
    Last Post: 2005-07-29, 04: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
  •