Launching A2Ki with specific profile

Launching A2Ki with specific profile

Anonymous
Not applicable
251 Views
3 Replies
Message 1 of 4

Launching A2Ki with specific profile

Anonymous
Not applicable
I would like to use VB to launch A2Ki with a certain profile (not launch A2Ki and then change the profile). From what I've read that can only be done via the registry. Is that true? If so, could someone point out the exact HKEY_... etc for me and let me know what needs to happen? The most obvious looking spot is HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\R15.0\ACAD-1:409\Profiles Is that even close? Seems too easy.
Thanks,
Guy
BTW, We're running NT4.0 w/latest sp
0 Likes
252 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Have a look at AcadRegistry.dll in the Downloads section of
my site. It's free and comes complete with source code.

Using that component, launching AutoCAD with a specific
profile is as simple as setting the Profile property on the
AcadServer object. You can get a list of valid of profiles
from the AcadInstallation object (there will be one for each
installation of AutoCAD on a workstation).

If you have any questions, just holler.

--
http://www.acadx.com


"GDow" wrote in message
news:f051817.-1@WebX.maYIadrTaRb...
> I would like to use VB to launch A2Ki with a certain
profile (not launch A2Ki and then change the profile). From
what I've read that can only be done via the registry. Is
that true? If so, could someone point out the exact HKEY_...
etc for me and let me know what needs to happen? The most
obvious looking spot is
HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\R15.0\ACAD-1:409
\Profiles Is that even close? Seems too easy.
> Thanks,
> Guy
> BTW, We're running NT4.0 w/latest sp
>
0 Likes
Message 3 of 4

Anonymous
Not applicable
Hi Frank,
Thanks for the quick response. I was hoping you'd be the guy to respond to this. All of the research I've done trying to figure this out ended up with your name. I've downloaded your dll and have just been browsing the help files (haven't even rebooted yet). One question, is there anything that has to be added to a users PC (like a dll or something) in order for the code I write to work?

Again, thanks for the quick reply,
Guy
0 Likes
Message 4 of 4

Anonymous
Not applicable
> is there anything that has to be added to a users
> PC (like a dll or something) in order for the code
> I write to work?

Used as is, you would need the VB runtimes, AcadRegistry.dll
and RegObj.dll on your target systems. However, if your app
is already in VB, you only have two additional files to add
to your setup package. If you're using VBA, you can cut that
down to one (RegObj.dll) by importing the class files
directly into your project.

--
http://www.acadx.com
0 Likes