anolan303 Posted March 17, 2015 Share Posted March 17, 2015 Good Morning Everyone, I am new to AutoCad first and foremost. I am trying to setup individual profiles, and currently we use custom .lsp files (which we auto launch) that refer to custom files in the " C:\Users\user.domain\AppData\Roaming\Autodesk\AutoCAD 2014\R19.1\enu\Support folder. When I replace this folder with my custom Support folder the application adds custom toolbars and whatnot. Problem is I do not want to replace this folder every time a new user uses AutoCad. I would like to replace this folder path to something that is not related to a local windows profile ie: "C:\AutoDesk_Files\Support". I create a new profile in Options and set the "Files" option "Support Files Search Path" as well as the "Trusted Path" to "C:\AutoDesk_Files\Support". In this folder I place my custom support files as well as the default files. When I launch AutoCad I do not see my customs and the "Trusted Path" is still untrusted. I have enabled "SECURELOAD = 0". I am sure I am missing something in regards to getting these profiles to see my "Support" folder, any help would be much appreciated. Antony Quote Link to comment Share on other sites More sharing options...
BIGAL Posted March 17, 2015 Share Posted March 17, 2015 You can change the support paths via lisp plus lots of other stuff. ; resets the paths usefull for update versions of Autocad ; by Alan H 2011 ; This sets a reference to the install path of your product ; the gets are their for info maybe other use ; use this to find other settings ;(vlax-dump-object (vla-get-files (vla-get-preferences (vlax-get-Acad-object))) T) (vl-load-com) ; make temp directory ;(vl-mkdir "c:\\AcadTEMP") (setq *files* (vla-get-files (vla-get-preferences (vlax-get-Acad-object)))) ; savepath ;(vla-get-AutoSavepath *files*) (vla-put-AutoSavepath *files* "C:\\AcadTemp") ; custom icons ;(vla-get-CustomIconPath *files*)) (vla-put-CustomIconPath *files* "P:\\Autodesk\\ICONS") ; custom menu ;(vla-get-Menufile *files*)) ;(vla-put-Menufile *files* "C:\\Users\\2013xxxx") ; printers config ;(vla-get-PrinterConfigPath *files*) (vla-put-PrinterConfigPath *files* "P:\\AutoDESK\\Plotting\\Plot Styles 2011") ; printers style sheet ;(vla-get-PrinterStyleSheetPath *files*) (vla-put-PrinterStyleSheetPath *files* "P:\\AutoDESK\\Plotting\\Plot Styles") ; printer drv's ;(vla-get-PrinterDescPath *files*) (vla-put-PrinterDescPath *files* "P:\\AutoDESK\\Plotting\\Drv") ; print spooler ;(vla-get-PrintSpoolerPath *files*) (vla-put-PrintSpoolerPath *files* "C:\\AcadTemp\\") ; template path ;(vla-get-TemplateDwgPath *files*) (vla-put-TemplateDwgPath *files* "P:\\Autodesk\\c3d Templates") ; template location ;(vla-get-QnewTemplateFile *files*) (vla-put-QnewTemplateFile *files* "P:\\Autodesk\\c3d Templates\\xxxx.dwt") ;make new support paths exist + new (setq paths (vla-get-SupportPath *files*)) (setq xxxxpaths "P:\\autodesk\\supportfiles; P:\\autodesk\\lisp; P:\\autodesk\\fonts; P:\\autodesk\\hfs fonts;" ) (setq newpath (strcat xxxxpaths paths)) (vla-put-SupportPath *files* newpath) ; Tempdirectory ;(vla-get-TempFilePath *files*)) (vla-put-TempFilePath *files* "C:\\AcadTemp\\") ; PlotLogFilePath = "C:\\Documents and Settings\\ah02490.xxxx-AD\\local settings\\application data\\autodesk\\c3d 2011\\enu\\" (vla-put-PlotLogFilePath *files* "C:\\AcadTemp\\") ; LogFilePath = "C:\\Documents and Settings\\ah02490.xxxx-AD\\local settings\\application data\\autodesk\\c3d 2011\\enu\\" (vla-put-LogFilePath *files* "C:\\AcadTemp\\") ; xref temp path ;(vla-get-TempXrefPath *files*)) (vla-put-TempXrefPath *files* "C:\\AcadTemp\\") ; end use of *files* (vlax-release-object *files*) ; exit quitely (princ "All Done") Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.