- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a small program that generates script files, opens an instance of Autocad and passes the script in using the /b switch, like "C:\Program Files\Autodesk\AutoCAD 2015\acad.exe" /b "script.scr"
This works great and runs the script, however it opens a new instance of Autocad each time (which makes sense, as I'm opening the exe).
I'm wondering if there would be a way to open a new drawing and run a script file, without opening a new instance of acad each time?
I've had a look at the DWG launcher but as far as I can tell the only switch for this is which dwg to open (/O), with no provisions to run a script. If there's no other way, could I have a DWG file that runs a script at a certain location when it's opened?
Thanks in advance,
Aviv
Solved! Go to Solution.