.NET

Reply
*Russ Green
Message 11 of 15 (90 Views)

Re: several vb.net issues

01-16-2006 02:04 PM in reply to: *Russ Green
tried on these drawings. no joy
Distinguished Contributor
cgay
Posts: 125
Registered: ‎08-02-2005
Message 12 of 15 (90 Views)

Re: several vb.net issues

01-17-2006 08:52 AM in reply to: *Russ Green
Russ,

Here is what is happening.

1. User Clicks Process Button
2. Code loads document requested
3. SendStringToExecute is sent
4. Document Saves and Closes
5. SendStringToExecute completes

So, for some reason, sendStringToExecute doesn't actually happen until your current procedure is finished. A problem in my view. I think there are a couple of ways around this. Here is one solution using a Timer.

Rename frmMain.txt to frmMain.vb and replace the one in the project with this.

Don't know how this will work on a big script though. I am not sure if the IsQuiescent method will catch a script in progress or not. Give it a try.

Clif
Distinguished Contributor
NathTay
Posts: 1,691
Registered: ‎12-15-2003
Message 13 of 15 (90 Views)

Re: several vb.net issues

01-17-2006 01:48 PM in reply to: *Russ Green
I have a program that I use SendCommand to run a script and using an IsQuiescent loop as per my earlier post works.

Regards - Nathan
*Russ Green
Message 14 of 15 (90 Views)

Re: several vb.net issues

01-17-2006 03:11 PM in reply to: *Russ Green
That seems to work on the first drawing. the script executes but then there
is a error 506.

i'll play some more and post my results.

thanks.
*Russ Green
Message 15 of 15 (90 Views)

Re: several vb.net issues

01-17-2006 03:12 PM in reply to: *Russ Green
any ideas why this code doesn't work then?
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.