PDA

View Full Version : What is the variable for sheet set template file location?


boesiii
2008-02-28, 03:29 AM
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

ccowgill
2008-02-28, 01:57 PM
I was able to find the following


(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


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

FRAMEDNLV
2008-02-28, 05:49 PM
(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.

msanmarzano
2008-03-19, 12:52 AM
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"

mikelf
2008-04-21, 06:48 PM
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?