"sendcommand" is not synchronizing

"sendcommand" is not synchronizing

Anonymous
Not applicable
397 Views
4 Replies
Message 1 of 5

"sendcommand" is not synchronizing

Anonymous
Not applicable
Hi All,
This is Vatsal. I am new to VBA. I have problem with "sendcommand" command method. I have coded one macro on AutoCAD-2000 platform. In which, I have widely used "sendcommand" method. Now whole code run after macro completed. So it is malfunctioning. I have used "AdcgSendCmdSync.arx" but no improvement.

Please give me solution if anyone has.

Thanks in advance
-Vatsal

"Smooth sea do not make skillful sailor"
0 Likes
398 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
Hi,

I suggest you search this newsgroup for posts on "SendCommand"

The summary of the advice you will read is that SendCommand always runs
asynchronously and its use should be avoided except where there is no other
way of achieving the desired result, and in those cases it should be the
last command in a given event initiated by the user, so that control is
passed back the user at the end of the SendCommand. User delay in
responding will usually be sufficient to allow the command to end.

An alternative is to check for "IsQuiescent" (check my spelling) and you
will find information about that by searching this NG.

--

Laurie Comerford
CADApps
www.cadapps.com.au
www.civil3Dtools.com
wrote in message news:5436308@discussion.autodesk.com...
Hi All,
This is Vatsal. I am new to VBA. I have problem with "sendcommand" command
method. I have coded one macro on AutoCAD-2000 platform. In which, I have
widely used "sendcommand" method. Now whole code run after macro completed.
So it is malfunctioning. I have used "AdcgSendCmdSync.arx" but no
improvement.

Please give me solution if anyone has.

Thanks in advance
-Vatsal

"Smooth sea do not make skillful sailor"
0 Likes
Message 3 of 5

Anonymous
Not applicable
Hi Laurie,
Thanks for reply,

What my problem is I have already done project using "Sendcommand" method. If i may get any solution on this problem, then it is better than recoding.

-Vatsal
0 Likes
Message 4 of 5

arcticad
Advisor
Advisor
Not all commands have the exact same prompts.
Check what you are trying to do.

Post an example of what you have and where it fails.
You will probably need to recode some of it.
---------------------------



(defun botsbuildbots() (botsbuildbots))
0 Likes
Message 5 of 5

Anonymous
Not applicable
It is better to recode it properly.

Regards - Nathan
0 Likes