Article | 41024150 |
Type | Bug |
Product | Engine |
Version | 5.1.1.1038 |
Date Added | 11/17/2005 |
Fixed | Yes [11/17/2005] |
Submitted by | Wayne Romer |
Keywords |
In version 5.1.1.1039 a new method Recover was added in VdDocument object.
syntax: ActiveDocument.Recover(ReturnErroInfoOnly As Boolean) As Variant
Try to recover most commonly drawing errors that make the drawing invalid when saving in dxf/dwg format:
1. recover invalid or duplicated handles
2. adds in the layers collection no existing object layer names
3. recover Invalid characters in object table name(Invalid characters for dwg/dxf are <>/\"':;?*,=).
If ReturnErroInfoOnly == true the do not recover the drawings and returns an array of string for each existing error
If ReturnErroInfoOnly == false then return the errorinfo string array and recover the drawing.
After the recover the changes can not be undone.
If call the method with ReturnErroInfoOnly == true and the return array is empty then no Recover is needed
NOTE: Use this method only with drawings having problems in dwg/dxf saving