Drwo Posted May 18, 2010 Posted May 18, 2010 Does anyone know what is the system variable for Enterprise file path and support path and how to change the variables via LISP. Or if that is even possible. Quote
alanjt Posted May 18, 2010 Posted May 18, 2010 Open VLIDE and follow the image. (vlax-get-acad-object) >Preferences>Files Quote
NBC Posted May 18, 2010 Posted May 18, 2010 or you could use VLA-GET-ENTERPRISEMENUFILE to find its current value, and/or VLA-PUT-ENTERPRISEMENUFILE to change its current value Quote
Drwo Posted May 18, 2010 Author Posted May 18, 2010 Unfortunately I have little lisp experience and will have to ask for further assistance. I just tried both the (vlax-get-acad-object) (VLA-GET-ENTERPRISEMENUFILE) And I'm not really certain if those are to used in vlisp console or the file. I tried both, both returning "no function definition" I also tried using inspect on both and got a nil return.... I'm guessing there is something wrong... I'm currently in the process of checking the AfraLisp site for a clue as to what should be done. I'm guessing it might prove faster and more productive to ask here as well as search there. Quote
alanjt Posted May 18, 2010 Posted May 18, 2010 Follow the image. eg. (vla-get-enterprisemenufile (vla-get-files (vla-get-preferences (vlax-get-acad-object)))) Quote
Drwo Posted May 18, 2010 Author Posted May 18, 2010 (vl-load-com) (vla-get-enterprisemenufile (vla-get-files (vla-get-preferences (vlax-get-acad-object)))"G://.../*.cui") I came up with this solution so far... Tomorrow I can add the toolpalettepath code to this one.. make a script to run the lisp, and make a shortcut to run the cad with the script.. and hopefull this can work for everyone Thanks Quote
Drwo Posted May 20, 2010 Author Posted May 20, 2010 I came to a definite solution.... Combining a bat file to start cad with lisp script to update the required file search paths. and overwrite profile.aws The bat file is there so each user can decide whether he wants to adopt the new stuff or not. I will post the complete procedure in a new thread when I test it.... as well as the lisp and bat code. Maybe it will be usefull to someone else. 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.