Keywordkid Posted June 18, 2012 Posted June 18, 2012 I'm looking for a way to change the path of the Main Customization file globally, preferrably using the acaddoc.lsp, is this possible. How do others push path changes through to accommodate network changes? I've learnt about the Setenv control for the support paths but the CUI path is eluding me. Hoping for advice. Thanks. Quote
Grant Posted June 19, 2012 Posted June 19, 2012 In Acaddoc.lsp in the Startup function you could try varying this routine? http://forums.autodesk.com/t5/Visual-LISP-AutoLISP-and-General/Change-Support-File-Search-Path-with-Lisp/td-p/853729 Quote
BIGAL Posted June 19, 2012 Posted June 19, 2012 Bit clearer example (vl-load-com) (setq *files* (vla-get-files (vla-get-preferences (vlax-get-acad-object)))) (vla-put-AutoSavepath *files* "C:\\ACADTemp") (vla-put-PrintSpoolerPath *files* "C:\\ACADTemp\\") you need main customization seen it other day something like below will try to find (vla-put-Maincustomization *files* "C:\\ACADTemp\\mymenu.cuix") Quote
Keywordkid Posted June 19, 2012 Author Posted June 19, 2012 Thanks BIGAL, I've not had any success yet, but it has given me a clue for further research. Specifically this is what I want to achieve: Change the existing Main customization file to: C:\ACAD\\support\mymenu.cuix I currently apply the following support paths using the acaddoc: ; Set registry file search paths (setenv "SaveFilePath" (strcat "C:\\ACAD\\"(getvar "loginname"))) (setenv "LogFilePath" (strcat "C:\\ACAD\\"(getvar "loginname"))) (setenv "ActRecPath" (strcat "C:\\ACAD\\"(getvar "loginname"))) (setenv "TempDirectory" (strcat "C:\\ACAD\\"(getvar "loginname"))) This is to circumvent IT security policies that prevent users accessing their autosaves and backups. I'm learning more lisp every day but definately class myself as a beginner. Any further help is definately appreciated. Quote
Keywordkid Posted June 19, 2012 Author Posted June 19, 2012 (edited) For anyone else struggling with this problem I located the solution that works for me: (command "Menu" (strcat "c:\\acad\\"(getvar "loginname")"[url="file://support//mymenu.cuix"]\\support\\mymenu.cuix[/url]")) The "EnterPrizeMenu" can be set in the same way or using the Setenv method I posted earlier. Edited June 20, 2012 by Keywordkid Quote
Keywordkid Posted June 19, 2012 Author Posted June 19, 2012 (edited) "EnterPrizeMenu" should have read as "EnterPriseMenuFile" Edited June 25, 2012 by Keywordkid Quote
BIGAL Posted June 22, 2012 Posted June 22, 2012 Check this out (vlax-Dump-Object (vla-get-files (vla-get-preferences (vlax-get-acad-object)))) Quote
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.