Message 1 of 7
Change Enterprise CUI file path
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Well, apparently, I sent out my profile to all my users with the Main Customization File and the Enterprise Customization file paths switch. I would like to switch them back using a lisp but what I'm doing doesn't seem to work.
If I use:
(defun c:setpath ()
(vl-load-com)
(setq acadObject (vlax-get-acad-object)
prefObject (vlax-get-property acadobject 'Preferences)
filesOBject (vlax-get-property prefObject 'Files)
)
(vlax-put-property filesObject 'SupportPath "C:\\temp")
)
it sets the support path just fine. However, if I use:
(defun c:setpath ()
(vl-load-com)
(setq acadObject (vlax-get-acad-object)
prefObject (vlax-get-property acadobject 'Preferences)
filesOBject (vlax-get-property prefObject 'Files)
)
(vlax-put-property filesObject 'EnterpriseMenuFile "C:\\temp")
)
I get the following error: error: Automation Error. Error setting preference property
Any idea on what I'm doing wrong?
Thanks!