Jump to content

Recommended Posts

Posted

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.

Posted

Open VLIDE and follow the image.

vlide.jpg

 

 

(vlax-get-acad-object)

>Preferences>Files

Posted

or you could use VLA-GET-ENTERPRISEMENUFILE to find its current value, and/or VLA-PUT-ENTERPRISEMENUFILE to change its current value

Posted

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.

Posted

Follow the image.

 

eg.

 

(vla-get-enterprisemenufile (vla-get-files (vla-get-preferences (vlax-get-acad-object))))

Posted

(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

Posted

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.

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