.NET

.NET

Reply
Distinguished Contributor
wesbird
Posts: 359
Registered: ‎12-05-2003
Message 1 of 2 (177 Views)
Accepted Solution

application is busy in customized version of Script Pro 2

177 Views, 1 Replies
11-21-2013 08:41 AM

Hi,
I'm modified Script Pro 2 from autodesk lab. Now I have this problem, sometimes, I got this error message

"The message filter indicated that the application is busy. (Exception from HRESULT: 0x8001010A (RPC_E_SERVERCALL_RETRYLATER))"
at

object ret = ActiveDocument.GetType().InvokeMember(
"SendCommand",
BindingFlags.InvokeMethod,
null, ActiveDocument, OnedataArray
);

 or

short fd = (short)ActiveDocument.GetVariable("FILEDIA");

 ActiveDocument come from 

ActiveDocument =
AcadDocuments.GetType().InvokeMember(
"Open",
BindingFlags.InvokeMethod,
null, AcadDocuments, ThreeVariable
);

 

I understand those are out-process call. Maybe AutoCAD is still doing something when it happens. right now I increase the wait time right before the call like:

Thread.Sleep(100) -> Thread.Sleep(500)

 

what should I do to avoid this problem.

 

Thanks

Wes

Vault Pro 2014, Windows 7 64 bit, AutoCAD (ACA, Map) 2014

Hi,

 

I suggest you to use IsAcadQuiescent() before sending the command to AutoCAD. IsAcadQuiescent is implemented in ScriptPro specifically to check for AutoCAD state.

ADN Support Specialist
Virupaksha.aithal
Posts: 102
Registered: ‎06-15-2011
Message 2 of 2 (135 Views)

Re: application is busy in customized version of Script Pro 2

11-25-2013 09:20 PM in reply to: wesbird

Hi,

 

I suggest you to use IsAcadQuiescent() before sending the command to AutoCAD. IsAcadQuiescent is implemented in ScriptPro specifically to check for AutoCAD state.



Virupaksha Aithal KM
Developer Technical Services
Autodesk Developer Network

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.