TheSwamp

Code Red => VB(A) => Topic started by: Matersammichman on December 11, 2006, 03:13:05 PM

Title: Startup Suite
Post by: Matersammichman on December 11, 2006, 03:13:05 PM
Can vba be used to load applications (ARX) into the startup suite? :?
Title: Re: Startup Suite
Post by: rkmcswain on December 11, 2006, 03:48:14 PM
Not sure, but I would avoid the startup suite if possible.

Can you just create/append the acad.rx file instead?
Title: Re: Startup Suite
Post by: David Hall on December 11, 2006, 04:14:34 PM
i agree wth ^
Title: Re: Startup Suite
Post by: Kerry on December 11, 2006, 04:19:58 PM
i agree wth ^ & ^
Title: Re: Startup Suite
Post by: Matersammichman on December 11, 2006, 04:34:22 PM
Where do I find Acad.rx?
Title: Re: Startup Suite
Post by: Kerry on December 11, 2006, 04:58:48 PM
If it doesn't exist in your ACAD path
.. check with this lisp from the ACAD command line ( findfile "ACAD.RX") ..
you can make it ... just a simple text based file containing the  names of the .arx's you want loaded.

eg :
AcVba.arx
mySuperDuperProgram.arx
Title: Re: Startup Suite
Post by: Bryco on December 11, 2006, 06:46:55 PM
In case you didn't know. you can check for version the load the applicable arx
Application.LoadArx (strYadaYada.arx)   
Title: Re: Startup Suite
Post by: Matersammichman on December 12, 2006, 07:56:48 AM
Sorry folks, I'm arx illiterate...

1. How do you edit/append an arx file? I didn't think they were readable...
2. Was "RX" correct, or was that supposed to be "ARX"?
3. Can someone give a simple example of writing an Arx file (as a txt file) to load an application when Cad is started (please)?
Title: Re: Startup Suite
Post by: Chuck Gabriel on December 12, 2006, 08:22:26 AM
See the attached file (extension appended to allow attachment).
Title: Re: Startup Suite
Post by: Matersammichman on December 12, 2006, 08:27:47 AM
...and all I have to do is append the file to the name of the file I want to load, save the file with the extension rx into my support path, and voila?
Title: Re: Startup Suite
Post by: rkmcswain on December 12, 2006, 09:00:03 AM
...and all I have to do is append the file to the name of the file I want to load, save the file with the extension rx into my support path, and voila?

Yes.
Title: Re: Startup Suite
Post by: Matersammichman on December 12, 2006, 10:42:46 AM
Thanks!
Works perfectly! :-D

One question, what are ARX files created in/with?
Title: Re: Startup Suite
Post by: David Hall on December 12, 2006, 10:50:24 AM
usually c++ i think
Title: Re: Startup Suite
Post by: LE on December 12, 2006, 10:58:28 AM
One question, what are ARX files created in/with?

Quote
ObjectARX is an API for customizing and extending AutoCAD. It provides access to a class-based model of AutoCAD drawings and interactions with the AutoCAD user. There are two related current versions of the API; one is for C++ for native compilation, and the other is for the .NET platform, though AutoCAD objects in the .NET version are not garbage collected.

www.objectarx.com