Thank you Ken for your prompt reply. I was away in country side, so delay in responding back.
Coming to thread.
I want to run certain command(s) in AutoCAD, eg, draw a line followed by text writing etc. I have to execute LINE command (with start and end point of line), then another command of TEXT (with font type, inclination, size & the text matter etc.) is to be executed. This is the way AutoCAD works. In order to execute these commands in AutoCAD, I write these in Excel (as the start and end point has to be calculated in excel. Likewise the text matter), save these (set of commands) with .scr extension (directly or may be using notepad).
Now there are two ways to generate AutoCAD drawing with this scr file.
Either drag and drop the SCR file onto already opened AutoCAD
or run the SCRIPT command in AutoCAD (In second method, SCRIPT command will demand the scr file which has to be browsed and endered).
At the end, in both the methods, the SCRIPT command executes the preset set of command(s).
I am able to create .scr file with excel macro. Also, I can start AutoCAD again from excel file with macro. The problem is how to send the .scr file as AutoCAD command to AutoCAD file.
Hope the task is clear.
Thanks for valuable time.
Spage,
Welcome to the forum. I've split your question into a new thread as it wasn't relevent to the one you posted on. In future, please start a new thread if you have a new question.
As to your question, I have never used AutoCAD, so just need to clarify something. If you doubleclick the .scr file, does it launch AutoCAD and run the script automatically? Or does the .scr have to be loaded from within AutoCAD?