Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations MintJulep 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
Oct 18, 2004
3
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.
 
Replies continue below

Recommended for you

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