Message 1 of 3
SendStringToExecute() problems
Not applicable
07-08-2004
11:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
i have ARX in an MDI application with several child windows, each one
encapsuled in an DocumentObject.
I want to execute a command for every child, and i use
sendStringToExecute():
the simplified problem is:
for (all documentObjects)
{
AcApDocument* doc = documentObject.getDocument();
AcApDocManager()->setCurDocument(doc);
sendStringToExecute(doc, "my_command", false, true, false);
}
The first strange thing is,
that AutoCAD first runs through ALL objects doing a setCurDocument()
for every document, and ONLY THEN starts to execute the "my_command"
for every window, instead of executing every command immediately.
The second strange thing is,
that the execution order is inverted, that means, that "my_command" is
executed
first for the last element of the documentObjects list.
----
1. Can i force sendStringToExecute() to execute immediately?
2. If not, how can i control the execution order?
This is really tricky for me...
Regards,
Wolf.