.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

AutoCAD MAP end of loading AEC modules

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
SENL1362
447 Views, 2 Replies

AutoCAD MAP end of loading AEC modules

Hello,

AutoCAD MAP loads a some AEC modules when initialising.

I want to send my .NET Init message to the commandline after these AEC loading prompts

I tried waiting for Application.Idle(QuiescentState) without any luck. 

AecLoading.png

 

 

2 REPLIES 2
Message 2 of 3
StephenPreston
in reply to: SENL1362

Timing operations at startup is always tricky. You could try P/Invokignads_queueexpr (see example here - http://through-the-interface.typepad.com/through_the_interface/2006/08/calling_command.html). You could also user a timer to delay your message, although I'm not so keen on doing that.

 

But consider the 'arms race' that ensues when you and another add-in both want to send your init messages last - i.e. there's really no way AutoCAD can ensure any single addin gets to report itself last.

 

Cheers,

Stephen Preston
Autodesk Developer Network
Message 3 of 3
SENL1362
in reply to: StephenPreston

Hello Stephen,
Thank you for this tip.
This and other reasons convince me to leafe the CommandLine for my output and use Panels to write the output to.

Thanks,
Anton

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost