Message 1 of 4
Batch file and Script to export to ifc

Not applicable
05-05-2020
11:25 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I would like to automate exporting of AS files to ifc so they can be imported into OpenBuildings. I have done a bit of researching and it seems that using a batch file to start AS and then use a script is quite possible. Though I have a problem with both.
When I run the batch file AS starts fine but then a dialog pops up with File not found. I assume this is referring to the dwg file not being found?
for %%f in ("\\bge.int\dfs\per\Projects\\01_Models\Structural\DGN\xcopy\*.dwg") do (
"C:\Program Files\Autodesk\AutoCAD 2019\UserDataCache\"
"C:\Program Files\Autodesk\AutoCAD 2019\acad.exe" /language "en-US" /product "ADVS" /p "<<ADVS>>" %%f /b "\\bge.int\dfs\per\Projects\01_Models\Structural\DGN\xcopy\EXPORTTOIFC.scr")
If I browse to the file location the script executes and opens the IFC Export dialog. Is it possible to hit the OK button from the script?
_ASTOREXPORTTOIFC