Is there a way to wait for a previous CadInputQueue function to complete before invoking the next?
for example:
mstn_app.CadInputQueue.SendCommand("MOVE ICON");
mstn_app.CadInputQueue.SendDragPoints(ref point, ref point2,1);
I would want to invoke some sort of wait here until previous line (Drag Points) is complete
mstn_app.CadInputQueue.SendReset();
Hi Keith,
Unknown said:Is there a way to wait for a previous CadInputQueue function to complete before invoking the next?
I think you have to use SendKeyin method, not SendCommand.
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Unknown said:I would want to invoke some sort of wait here until previous line (Drag Points) is complete
The code you've written is a sequence of MicroStation key-ins.
If you want to write code that does things like 'wait for something to complete' you should investigage MicroStation's input state machine. That's embodied in VBA's IPrimitiveCommandEvents object. It lets you write a command that behaves just like MicroStation's built-in primitive commands.
There are examples of in VBA help and more here.
Regards, Jon Summers LA Solutions