environment variable for ACAD directory

environment variable for ACAD directory

Anonymous
Not applicable
142 Views
7 Replies
Message 1 of 8

environment variable for ACAD directory

Anonymous
Not applicable
Hello,

Today I've got an easy one. Isn't there an environment variable for the
directory AutoCAD is installed in? I found it with

(vl-registry-read
"HKEY_LOCAL_MACHINE\\SOFTWARE\\Autodesk\\AutoCAD\\R15.0\\ACAD-1:409"
"AcadLocation")

but there's got to be a better way.
--
Eric S. eschneider@jensenprecast.com
0 Likes
143 Views
7 Replies
Replies (7)
Message 2 of 8

Anonymous
Not applicable
'Regedit' at the 'run'.(windows)

There's a structure to everything.

Make sure you don't change anything, unless you know what you're doing.

--
rudy@cadentity.com

Eric Schneider wrote in message
news:9F422EAE260429C73567E05E5484E7A5@in.WebX.SaUCah8kaAW...
> Hello,
>
> Today I've got an easy one. Isn't there an environment variable for the
> directory AutoCAD is installed in? I found it with
>
> (vl-registry-read
> "HKEY_LOCAL_MACHINE\\SOFTWARE\\Autodesk\\AutoCAD\\R15.0\\ACAD-1:409"
> "AcadLocation")
>
> but there's got to be a better way.
> --
> Eric S. eschneider@jensenprecast.com
>
0 Likes
Message 3 of 8

Anonymous
Not applicable
(findfile "acad.exe") is what I use.

Dan
0 Likes
Message 4 of 8

Anonymous
Not applicable
Or maybe (vl-registry-read (vlax-product-key) "AcadLocation")

Eric Schneider wrote:
>
> Hello,
>
> Today I've got an easy one. Isn't there an environment variable for the
> directory AutoCAD is installed in? I found it with
>
> (vl-registry-read
> "HKEY_LOCAL_MACHINE\\SOFTWARE\\Autodesk\\AutoCAD\\R15.0\\ACAD-1:409"
> "AcadLocation")
>
> but there's got to be a better way.
> --
> Eric S. eschneider@jensenprecast.com

--
|
----+----------------------------------------------
| Byron Blattel
| CADwerx---Applications for AutoCAD
|
| byron@cadwerx.net
| http://www.cadwerx.net
|
0 Likes
Message 5 of 8

Anonymous
Not applicable
Wow! I'd've thought there'd be a (getenv "ACADDIR"){no work} or something
simpler.

I forgot to mention A2ki/W2k.

Thanks guys.
--
Eric S. eschneider@jensenprecast.com

(vl-registry-read (strcat "HKEY_LOCAL_MACHINE\\" (vlax-product-key))
"AcadLocation")
0 Likes
Message 6 of 8

Anonymous
Not applicable
Here's what I ended up with.
--
Eric S. eschneider@jensenprecast.com

(vla-get-path (vlax-get-acad-object))
0 Likes
Message 7 of 8

Anonymous
Not applicable
hehe...finally! Congratulations...
Silvio

"Eric Schneider" escreveu na mensagem
news:FD3D2B1D4402098C406316B7997C4DC5@in.WebX.SaUCah8kaAW...
> Here's what I ended up with.
> --
> Eric S. eschneider@jensenprecast.com
>
> (vla-get-path (vlax-get-acad-object))
>
0 Likes
Message 8 of 8

Anonymous
Not applicable
Yeah! After weeks of nothing to do (lucky to have a job) but play around
with (vlax-dump-object (vlax-get-acad-object) T), I finally got a simple
solution!
--
Eric S. eschneider@jensenprecast.com
0 Likes