- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a bunch of files I am trying to reset their plot settings because I get an error "unrecognized version and cannot be read" upon startup because there is an error in the code. To "solve" this I just need to batch script all the files to change the plot settings to not be none, specifically the plot styles. However I cannot run the script, in ScriptPro 2.0, with the acad.exe because it will open the file and require me to click OK to the error first before running the script. So running it in accoreconsole.exe allows me to bypass the error prompt. The issue is -PLOT does not seem to be recognized as I get a "U n k n o w n c o m m a n d " - _ P L O T " . P r e s s F 1 f o r h e l p . " in the file report and the script is not completed. Below is the script I am using along with a DXF export because I am also trying to clean the files:
_.FILEDIA 0
-_PLOT
_Y
MODEL
DWG TO PDF
ANSI A (11.00 X 8.50 INCHES)
_INCHES
_PORTRAIT
_NO
_DISPLAY
_1:1
_0.00,0.00
_YES
BALZER SHADE
_YES
_A
_Y
_N
_.DXFOUT
_VERSION
_2010
16
_.FILEDIA 1
_.QUIT
Doing the batch scripting in ScriptPro 2.0 and ACAD is version R.118.0.0 AutoCAD 2021.1
Attached is the _cl.dwg error file.
In this link, https://www.keanw.com/2012/03/commands-that-work-in-the-autocad-2013-core-console.html,they say -PLOT is recognized in the console, so I do not know why this is not working.
NOTE: For those interested. I put "solve" in quotation marks because it is not a true solution because if I go back in the file and change the plot settings to none then I will get the error again. I am not sure if this is the root of the error but if I look at a non-error and error file side by side in notepad (after converting to dxf) then I get different ACAD_PLOTSETTINGS. The non-error file has 350; 39; and 3 whereas the error one has 350; 3C; and 3. However if I change the error one from 3C to 39 and try to open it I get an error.
Solved! Go to Solution.