.NET

Reply
*Russ Green
Message 1 of 1 (108 Views)

SendStringToExecute

108 Views, 0 Replies
01-03-2006 03:07 PM

I'm haveing trouble sending a command to acad from my vb.net app.  I'm
trying to execute a script but the code hangs when passing in the filename of
the script to load.

 

[img src="@97426"]

 

This is my code:


'set filedia to
0
ApplicationServices.Application.DocumentManager.MdiActiveDocument.SendStri ngToExecute("filedia
", True, False,
True)
ApplicationServices.Application.DocumentManager.MdiActiveDocument.Send StringToExecute("0
", True, False, True)

 

'load the
script          

ApplicationServices.Application.DocumentManager.MdiActiveDocument.SendStri ngToExecute("script
", True, False, True)      
ApplicationServices.Application.DocumentManager.MdiActiveDocument.SendStringToE xecute(""""
& Me.txtScript.Text & """" & "\n", True, False,
True)
'ApplicationServices.Application.DocumentManager.MdiActiveDocument.Sen dStringToExecute("
\n", True, False, True)

 

'set filedia to 1       

 ApplicationServices.Application.DocumentManager.MdiActiveDocument.Se ndStringToExecute("filedia
", True, False,
True)
ApplicationServices.Application.DocumentManager.MdiActiveDocument.Send StringToExecute("1
", True, False, True)

 

 

Please help...

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community