Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to call a .scr script file using VB

Status
Not open for further replies.

NYIT

Computer
Joined
Oct 18, 2004
Messages
3
Location
US
I have a visual basic application that creates a .scr AutoCad script file, and I need this Visual Basic application to run the .scr file. Does anyone know how to do this? Your help would be greatly appreciated.
 
I think you need the code to emulate the way a script file is usually run.

Try adding a line like:

DwgDoc.SendCommand "Script ScriptFileName" & vbCr

where:
DwgDoc is the ACad document object you will have declared earlier
ScriptFileName is the name of the script file (you may need to specify the full pathname of the file).

Hope this helps





Mala Singh
'Dare to Imagine'
 
Thank You for your input it was very helpful
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top