Getting the ACAD support path string

Getting the ACAD support path string

Anonymous
Not applicable
383 Views
5 Replies
Message 1 of 6

Getting the ACAD support path string

Anonymous
Not applicable
Hi all!
I want to have a string containing the ACAD support path that can be found
in the preferences..

I know that in VLisp there is the (VLA-GET-PREFERENCE) function.
Is there something like that in ARX?

Thanks!

--
Andre Roy
Software Developer / Webmaster / 3D Animator
www.promine.com
0 Likes
384 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
You can use acedGetVar to retrieve the contents of the ACAD sysvar.
Also, C++ has access to AutoCAD's object model via COM.

--
"The penalty of success is to be bored
by people who used to snub you."
Nancy, Lady Astor

http://www.acadx.com


"Andre Roy" wrote in message
news:D721718FC9D4C119DCD590005A7A68C9@in.WebX.maYIadrTaRb...
> Hi all!
> I want to have a string containing the ACAD support path that can be
found
> in the preferences..
>
> I know that in VLisp there is the (VLA-GET-PREFERENCE) function.
> Is there something like that in ARX?
>
> Thanks!
>
> --
> Andre Roy
> Software Developer / Webmaster / 3D Animator
> www.promine.com
>
>
0 Likes
Message 3 of 6

Anonymous
Not applicable
Via COM? How?

"Frank Oquendo" wrote in message
news:569D90C85FB84A8BC102E1484D9EB7C8@in.WebX.maYIadrTaRb...
> You can use acedGetVar to retrieve the contents of the ACAD sysvar.
> Also, C++ has access to AutoCAD's object model via COM.
>
> --
> "The penalty of success is to be bored
> by people who used to snub you."
> Nancy, Lady Astor
>
> http://www.acadx.com
>
>
> "Andre Roy" wrote in message
> news:D721718FC9D4C119DCD590005A7A68C9@in.WebX.maYIadrTaRb...
> > Hi all!
> > I want to have a string containing the ACAD support path that can be
> found
> > in the preferences..
> >
> > I know that in VLisp there is the (VLA-GET-PREFERENCE) function.
> > Is there something like that in ARX?
> >
> > Thanks!
> >
> > --
> > Andre Roy
> > Software Developer / Webmaster / 3D Animator
> > www.promine.com
> >
> >
>
>
0 Likes
Message 4 of 6

Anonymous
Not applicable
Have a look in the SDK's docsamps\comsamps folder for working
examples.

--
"The penalty of success is to be bored
by people who used to snub you."
Nancy, Lady Astor

http://www.acadx.com


"Andre Roy" wrote in message
news:F82EEF27615B563B0958B81AE9D8B0C8@in.WebX.maYIadrTaRb...
> Via COM? How?
0 Likes
Message 5 of 6

Anonymous
Not applicable
I see no justifiable reason for you to waste your time.

See acedGetEnv() or AcDbHostApplicationServices::getEnv().
Use the string "ACAD" as the variable name, and make sure
it's UPPER CASE:

char* libPath;
libPath = acdbHostApplicationServices()->getEnv("ACAD");


"Andre Roy" wrote in message
news:D721718FC9D4C119DCD590005A7A68C9@in.WebX.maYIadrTaRb...
> Hi all!
> I want to have a string containing the ACAD support path that can be found
> in the preferences..
>
> I know that in VLisp there is the (VLA-GET-PREFERENCE) function.
> Is there something like that in ARX?
>
> Thanks!
>
> --
> Andre Roy
> Software Developer / Webmaster / 3D Animator
> www.promine.com
>
>
0 Likes
Message 6 of 6

Anonymous
Not applicable
> I see no justifiable reason for you to waste your time.

Huh?

--
"The penalty of success is to be bored
by people who used to snub you."
Nancy, Lady Astor

http://www.acadx.com
0 Likes