All I want to do is to append the current valuse of the ACAD string with a
path to our software. Is there a simpler way of going about this or do I
have to account for every variation of AutoCAD and edit the System Registy
to add my new path in?
It seems to me that some simple lisp code would be able to amend the path
variable, but as far as I can tell, the ACADPREFIX variable cannot be edited
with lisp - is this the case?
Any help would be most welcome.
Regards,
Chris Lovelock
DDBS1192 - British Standard & Ordnance Survey Layering Software for AutoCAD
http://www.ddbs1192.freeserve.co.uk
Regards, Chris...
Zbigniew Zborowski <imz...@trans-net.at> wrote in message
news:7mtmpq$r4...@adesknews2.autodesk.com...
> Hi Chris
> If you have R14 in the acad\support directory look for bonus.lsp (or see
> attach) and function add_path. Maybe this will help you a little...
> Darek Sedziak
>
>
>
...will add c:\temp to the acadpath of the current PROFILE, which is where
you want to add it.
The acad variable "CURRENTPROFILE" will tell you which profile is active. In
the registry you can find the acadpath under
"HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\R[release]\ACAD-nnnnnnn:nnnnnnn
n\Profiles\[profile name]\General"
Don't mess around with this to much. If the acadpath becomes invalid you
might be unable to start AutoCAD.
-Rune
--
Rob Starz
Plogv 3.0 (plot logging) new release!!!
http://members.aol.com/stardsign/plog/index.htm
That's just the sort of thing I'm looking for; but 'setenv' is a null
function on AutoCAD R14. In Visual Lisp it generates the error -
*** ERROR: SETENV not implemented yet, sorry
I guess it's an AutoCAD 2000 thing? (I will check today at work)
Regards, Chris...
Rune Wold <rune...@marhyd.com> wrote in message
news:7mum0u$sc...@adesknews2.autodesk.com...
We use a simple install program that does do registry editing stuff but not
particularly well. I'd prefer to do the path setting with lisp. Setenv
seems to be the way to go, but I need to support R14 as well as 2000.
Regards, Chris...
Rob Starz <Star...@aol.com> wrote in message
news:7mvnud$gl...@adesknews2.autodesk.com...
You probably should avoid messing with the ACAD=
environment variable in R14, because if the change
increases the length of the variable by a certain
number of bytes (forget the details, sorry), you
will crash AutoCAD.
--
/*********************************************************/
/* Tony Tanzillo Design Automation Consulting */
/* Programming & Customization for AutoCAD & Compatibles */
/* ----------------------------------------------------- */
/* tony.t...@worldnet.att.net */
/* http://ourworld.compuserve.com/homepages/tonyt */
/*********************************************************/
So I just check to see if the lenght of GETENV is less than 355. If it is
then set the SETENV.
PIA.
Regards,
Chris Lovelock
DDBS1192 - British Standard & Ordnance Survey Layering Software for AutoCAD
http://www.ddbs1192.freeserve.co.uk
http://www.icon-ltd.co.uk
Tony Tanzillo <tony.t...@worldnet.att.net> wrote in message
news:37957DF8...@worldnet.att.net...
I worked out what the error was - it was a Visual Lisp Error that SETENV
isn't implemented yet.
SETENV does just the job in R14 :-))
Thanks for your help!