Executing scripts

Executing scripts

Anonymous
Not applicable
613 Views
3 Replies
Message 1 of 4

Executing scripts

Anonymous
Not applicable
Hi,

I'm running into a small problem. I'm batch processing drawings by opening
them and then running a script via the SendStringToExecute command. This
works just fine for most drawings, but sometimes AutoCAD(2009) just sits
there until I move my mouse across the drawing and then it suddenly
proceeds to execute the script.

I already tried locking the document, hiding/showing the window, minimizing
maximizing it, programmatically trying to raise a mouseclick event, forcing
focus to another part of the application, but nothing seems to work except
physically moving the mousecursor over the drawing and even then AutoCAD
has to have to focus for it to work. I even resaved the drawing but to no
avail.

So I want to know if there's another way to execute a script that I could
try, something like ed.document.ExecuteScript.

Rinze
0 Likes
614 Views
3 Replies
Replies (3)
Message 2 of 4

Kevin.Bell
Advisor
Advisor
This shows other methods of running commands:

http://through-the-interface.typepad.com/through_the_interface/2006/08/calling_command.html
0 Likes
Message 3 of 4

Anonymous
Not applicable
I would try the COM SendCommand() method.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2010

http://www.acadxtabs.com

Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");

"Rinze" wrote in message news:[email protected]...
Hi,

I'm running into a small problem. I'm...















0 Likes
Message 4 of 4

Anonymous
Not applicable
Thanks, the SendCommand seems to have solved my problem.

Rinze
0 Likes