Quantcast
Channel: Autodesk AutoCAD forums
Viewing all articles
Browse latest Browse all 14319

Modification of the DGNpurge tool

$
0
0

I tried to modify the tool posted ontherein such a way that it is possible to batch processing of files. As input are the Database and the Editor (null if batch processing mode). If it has been used in the current document, there is no problem. If the function argument gave an external Database, there is an exception to the "eNtoFromThisDocument" function:

 

private static ObjectIdCollection
PurgeLinetypesReferencedNotByAnonBlocks (
Database db, Transaction tr, ObjectIdCollection ids
)

 

line 283 in the fragment:
//Open the object and check its lineType.2point=2 point

 

var obj = tr.GetObject (id, OpenMode. ForRead, true);
 
 

 

Here pasted code.
Please help.

 

 

 

 


Viewing all articles
Browse latest Browse all 14319

Trending Articles