Run ARX code after AutoCAD is completely loaded

Run ARX code after AutoCAD is completely loaded

Anonymous
Not applicable
507 Views
4 Replies
Message 1 of 5

Run ARX code after AutoCAD is completely loaded

Anonymous
Not applicable
I have some ARX code that needs to be run one time after AutoCAD Map is
completely loaded. A reactor seems like the logical place for this code,
but I can't seem to find one for "AutoCAD has finished its incredibly long
initialization process."

Does anybody have any ideas?

Thanks,

Alan
0 Likes
508 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
You'll need to load one ARX at startup, and from the first kLoadDwgMsg in
that ARX issue a call to ads_queueexpr() to run an ADS command that the same
ARX defines. From the ADS command handler, load the second ARX that you
want loading after initialization is complete. 🙂
--
Owen Wengerd
President, ManuSoft ==> http://www.manusoft.com
VP Americas, CADLock, Inc. ==> http://www.cadlock.com
0 Likes
Message 3 of 5

Anonymous
Not applicable
Owen,

Thank you for the information, but is loading a second ARX the only way? Is
there no way accomplish it within a single ARX?

Thanks,

Alan


"Owen Wengerd" wrote in message
news:5393072@discussion.autodesk.com...
You'll need to load one ARX at startup, and from the first kLoadDwgMsg in
that ARX issue a call to ads_queueexpr() to run an ADS command that the same
ARX defines. From the ADS command handler, load the second ARX that you
want loading after initialization is complete. 🙂
--
Owen Wengerd
President, ManuSoft ==> http://www.manusoft.com
VP Americas, CADLock, Inc. ==> http://www.cadlock.com
0 Likes
Message 4 of 5

Anonymous
Not applicable
Alan:

> Thank you for the information, but is loading a second ARX the only way?
> Is there no way accomplish it within a single ARX?

The ADS command handler can do something other than load another ARX
module. It sounds like that's what you're after. 🙂
--
Owen Wengerd
President, ManuSoft ==> http://www.manusoft.com
VP Americas, CADLock, Inc. ==> http://www.cadlock.com
0 Likes
Message 5 of 5

Anonymous
Not applicable
Thanks Owen! That seems to be working.


"Owen Wengerd" wrote in message
news:5394290@discussion.autodesk.com...
Alan:

> Thank you for the information, but is loading a second ARX the only way?
> Is there no way accomplish it within a single ARX?

The ADS command handler can do something other than load another ARX
module. It sounds like that's what you're after. 🙂
--
Owen Wengerd
President, ManuSoft ==> http://www.manusoft.com
VP Americas, CADLock, Inc. ==> http://www.cadlock.com
0 Likes