.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Executing scripts

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
314 Views, 3 Replies

Executing scripts

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
3 REPLIES 3
Message 2 of 4
Kevin.Bell
in reply to: Anonymous

This shows other methods of running commands:

http://through-the-interface.typepad.com/through_the_interface/2006/08/calling_command.html
Message 3 of 4
Anonymous
in reply to: Anonymous

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:6256716@discussion.autodesk.com...
Hi,

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















Message 4 of 4
Anonymous
in reply to: Anonymous

Thanks, the SendCommand seems to have solved my problem.

Rinze

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost