In Acaddoc.lsp in the Startup function you could try varying this routine?
http://forums.autodesk.com/t5/Visual...sp/td-p/853729
Registered forum members do not see this ad.
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.


In Acaddoc.lsp in the Startup function you could try varying this routine?
http://forums.autodesk.com/t5/Visual...sp/td-p/853729




Bit clearer example
Code:(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")
A man who never made mistakes never made anything
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\<loginname>\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.
For anyone else struggling with this problem I located the solution that works for me:
The "EnterPrizeMenu" can be set in the same way or using the Setenv method I posted earlier.Code:(command "Menu" (strcat "c:\\acad\\"(getvar "loginname")"\\support\\mymenu.cuix"))
![]()
Last edited by Keywordkid; 20th Jun 2012 at 04:50 pm.
"EnterPrizeMenu" should have read as "EnterPriseMenuFile"![]()
Last edited by Keywordkid; 25th Jun 2012 at 02:35 pm.




Registered forum members do not see this ad.
Check this out
Code:(vlax-Dump-Object (vla-get-files (vla-get-preferences (vlax-get-acad-object))))
A man who never made mistakes never made anything
Bookmarks