Jump to content

Changing Customization path globally


Recommended Posts

Posted

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.

Posted

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")

Posted

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.

Posted (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.

 

:D

Edited by Keywordkid
Posted (edited)

"EnterPrizeMenu" should have read as "EnterPriseMenuFile" :oops:

Edited by Keywordkid
Posted

Check this out

 

(vlax-Dump-Object (vla-get-files  (vla-get-preferences (vlax-get-acad-object))))

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...