Message 1 of 11
Automate opening AutoCAD, run a custom command on multiple files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I am a .Net programmer. Very new to Civil Software. I have gone through some of the tutorials and have completed creating a custom command and executing it in AutoCAD command line. This is all the intro I have.
Next up, I have 2 phases.
Phase #1:
- Make my command to work on multiple files that user picks from a folder.
- The command must run on all the files that the user picks.
Phase #2:
Eventually, I would like to automate this whole process - It would like below
- AutoCAD can be opened automatically,
- A specific folder can be open and all files in the folder will be selected
- The custom command will be run on each file in the folder and it's output will be saved in a different folder.
Following are my questions:
- Phase#1 -> Do I have to have a custom file dialog that lets user pick one or more file in a folder? Please hit me up with a sample I can follow or any links I can read up on?
- Phase #1 -> Are there alternatives to NETLOAD to load the assembly, like an option to load the add-in when I open Autodesk without having to use NETLOAD?
I tried doing it via Startup Suite in Autocad (by using APPLOAD command) but that does not allow .dll files for some reason. Is this expected? (see below) *.dll is not an available option.
Another option I came across is this.
But it talks about using a bundle / PackageContents.xml which I am not sure where to find. Please any links to this is appreciated. - Phase #2 -> As far as automating the whole thing I came across Autoit. Am I in the right path trying to use this to automate opening of AutoCAD, select a predefined input folder, run the command on each file in the folder and save output to a predefined folder? Please link me to any other automation utilities that are relevant.