Ok, I have taken a stab at a CleanDrawing routine, but I am getting an error message: Error: bad argument type: VLA-object collection: nil
If no one has looked at it by Monday, I will go back to trying and I am sure there is more that can be added, ultimately I just want a single routine that can clean up the messes that we get from outside consultants from time to time.
I managed to open my (complete) file only by deleting all the hatches (I also tried the Convert command but without success).
AutoCad Recover/Audit fix some errors BUT the errors still be in the file...
Pass 1 31600 objects audited
Invalid block name "PLANCIA " found.
Changed to "AUDIT_I_180723164356-0".
Pass 1 58000 objects auditedAcDbLeader(15C9EC) annotation id Bad mtext id Disable annotation
AcDbLeader(15C9EE) annotation id Bad mtext id Disable annotation
AcDbLeader(15C9F0) annotation id Bad mtext id Disable annotation
AcDbLeader(15C9F2) annotation id Bad mtext id Disable annotation
AcDbLeader(15C9F4) annotation id Bad mtext id Disable annotation
AcDbLeader(15C9F6) annotation id Bad mtext id Disable annotation
AcDbLeader(15C9F9) annotation id Bad mtext id Disable annotation
AcDbLeader(15CA17) annotation id Bad mtext id Disable annotation
Pass 1 88100 objects auditedAcDbLeader(23232B) annotation id Bad mtext id Disable annotation
Pass 1 88500 objects auditedAcDbLeader(2324F6) annotation id Bad mtext id Disable annotation
Pass 1 96000 objects audited
Auditing Entities Pass 2
Pass 2 5700 objects auditedAcDbMText(60ED1)
Extension dictionary 60ECE Not this object Set to this
Pass 2 96000 objects audited
Auditing Blocks
2673 Blocks audited
I have test your program (modified by Ribarm and similar to those I've tried) and if I save the drawing I get:
*Warning* Multiply owned object, handle "60ECE"
(entget (handent "60ECE"))
((-1 . <Entity name: 143a9c7b260>) (0 . "DICTIONARY") (330 . <Entity name: 143a9c7b290>)
(5 . "60ECE") (100 . "AcDbDictionary") (280 . 1) (281 . 1) (3 . "AcDbContextDataManager")
(360 . <Entity name: 143a9c7b270>))
So I have tested > Nettoyer en profondeur un dessin JAV V3.34 (C) Patrick_35
and after if I save I get many Undefined shapes messages:
** Undefined shape nn
So now I can open the file in all version of AutoCAD but if I save I still get ** Undefined shape nn messages...