Hello Everyone, I am attempting to run a script file from ACCORECONSOLE that will remove MAP object data from recently created DXFs. Since this is a one shot deal (no undo i discovered) I am trying to test the process by simply loading and calling a LISP file that just does a Zoom extents commands and saveas back to a DXF.
The BAT file must be simple as I have to automatically create a new file via LISP when the user calls the main function. In this case the function is a DXFout that filters and preps the drawing. The last thing it needs to do is create a script file that targets the DXFs, saved at a different folder location, run the script to open the 2-4 DXFs a ripped object data and finally delete the script file. I am having a couple of issues with this process.
The first is the format of the BAT language:
FOR %%f IN (C:\Users\"firstname.lastname"\Desktop\"Testing DWGS"\Projects\2024\0137\"6 - Document Control"\"1 - Project Files"\"2 - DWG & DXF"\*.dxf) DO START /WAIT c:\"Program Files"\Autodesk\"AutoCAD 2022"\accoreconsole.exe /i "%%f" /s C:\Users\firstname.lastname\"OneDrive - Surveys Ltd"\Documents\Projects\LISP\DXFOUT\RemoveOBData.scr /l en-US
When I can get it to stop/crash it seems to truncate some of the folder locations. for example something like C:\Users\firstname.lastname\OneDrive\RemoveOBData.scr. I do not know the correct format for folder locations with spaces ( I can not avoid this). I have tried a few variants and nothing seems work better. My format is almost identical to a demo I seen by Dan Abbott but his worked.
Secondly, when I run the BAT file, little black screens pop up with crazy text and disappears! Is there any way of debugging a BAT file so that I can step-through to check for errors?
Thanks