Hello all new to autoit but seems like a very nifty program to be able to write scripts to save alot of users time.
What i am after is to be able to run a .exe to allow the user to select files in the folder he/she specifies and then runs an autocad script on each of the selected files.
This is what i have so far from general browsing over the forums..
This part allowing the user to select .dwg files from any location he/she wants with performing error message if no files selected. The idea i got was from an Autodesk University tutorial for being able to run scripts through .bat programs though I don't think its possible for .bat files to be able to have user specify files. The Code below is from the .bat functions (where path is the directory the script is stored)
For %%f in (path\*.dwg) do start /wait C:\"Program Files"\"AutoDesk"\"AutoCad 2013"\acad.exe "%%f" /b path\scriptname.scr
This is where i got to with AutoIT being able to open up AutoCAD and being able to run a script though how do you go about setting the files previously selected as variables so you can tell AutoCAD to open each file and run the script.
Thanks for taking the time to read this and all help is much appreciated![:)]()
Mark.
What i am after is to be able to run a .exe to allow the user to select files in the folder he/she specifies and then runs an autocad script on each of the selected files.
This is what i have so far from general browsing over the forums..
[ autoit ]
This part allowing the user to select .dwg files from any location he/she wants with performing error message if no files selected. The idea i got was from an Autodesk University tutorial for being able to run scripts through .bat programs though I don't think its possible for .bat files to be able to have user specify files. The Code below is from the .bat functions (where path is the directory the script is stored)
For %%f in (path\*.dwg) do start /wait C:\"Program Files"\"AutoDesk"\"AutoCad 2013"\acad.exe "%%f" /b path\scriptname.scr
[ autoit ]
This is where i got to with AutoIT being able to open up AutoCAD and being able to run a script though how do you go about setting the files previously selected as variables so you can tell AutoCAD to open each file and run the script.
Thanks for taking the time to read this and all help is much appreciated
![:)](http://aut1.autoit-cdn.com/forum/public/style_emoticons/default/smile.png)
Mark.