{"id":512,"date":"2013-06-21T07:20:28","date_gmt":"2013-06-21T12:20:28","guid":{"rendered":"http:\/\/cadpanacea.com\/wp\/?p=512"},"modified":"2014-11-27T07:12:02","modified_gmt":"2014-11-27T13:12:02","slug":"512","status":"publish","type":"post","link":"http:\/\/cadpanacea.com\/wp\/?p=512","title":{"rendered":"Purging unwanted linetype bloat"},"content":{"rendered":"<body><p><\/p>We have been recently running across AutoCAD DWG files that contain hundreds of non-purgable linetypes, some with strange names, some that appear to be nested in mysterious blocks, etc. With help from the <a href=\"http:\/\/forums.autodesk.com\/\" target=\"_blank\">Autodesk Forums<\/a>\u00a0and some independent research, I became pretty sure these were created by importing Microstation DGN files.\n<p><a href=\"http:\/\/cadpanacea.com\/wp\/wp-content\/uploads\/2014\/11\/dgnbloatlt.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-513\" src=\"http:\/\/cadpanacea.com\/wp\/wp-content\/uploads\/2014\/11\/dgnbloatlt.png\" alt=\"dgnbloatlt\" width=\"580\" height=\"420\" loading=\"lazy\" srcset=\"http:\/\/cadpanacea.com\/wp\/wp-content\/uploads\/2014\/11\/dgnbloatlt.png 580w, http:\/\/cadpanacea.com\/wp\/wp-content\/uploads\/2014\/11\/dgnbloatlt-300x217.png 300w, http:\/\/cadpanacea.com\/wp\/wp-content\/uploads\/2014\/11\/dgnbloatlt-345x250.png 345w\" sizes=\"auto, (max-width: 580px) 100vw, 580px\" \/><\/a><\/p>\n<p>Working on one of these drawings, I was able to use <a href=\"http:\/\/www.manusoft.com\/\" target=\"_blank\">SuperPurge<\/a> to \u201chard\u201d purge these linetypes, which in turn released the reference on hundreds of anonymous blocks, some dictionary entries, etc. What a mess. Upon further research, I found this (albeit 6 months old) article from Kean Walmsley titled <a href=\"http:\/\/through-the-interface.typepad.com\/through_the_interface\/2012\/12\/purging-unwanted-dgn-linestyle-data-from-an-autocad-drawing-using-net.html\">Purging unwanted DGN linestyle data from an AutoCAD drawing using .NET<\/a>\u00a0which goes into detail about how and why this mess gets created.<\/p>\n<p>Then as if magic, <a href=\"http:\/\/knowledge.autodesk.com\/support\/autocad\/downloads\/caas\/downloads\/content\/autocad-C2-AE-dgn-hotfix.html?v=2013\" target=\"_blank\">yesterday Autodesk released a \u201chotfix tool\u201d<\/a> of sorts yesterday to specifically clean up this bloat (be sure to read the readme file for installation instructions). I ran this tool on several infected drawings and the mysterious linetypes and other bloat are deleted. It also releases the reference to many anonymous blocks, those can be purged with the built in <a href=\"http:\/\/docs.autodesk.com\/ACD\/2014\/ENU\/files\/GUID-D68BA47B-A79D-4F58-9715-0569CC24BCEF.htm\" target=\"_blank\">Purge command<\/a>.<\/p>\n<p><a href=\"http:\/\/cadpanacea.com\/wp\/wp-content\/uploads\/2014\/11\/dgnpurgeresults.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-514\" src=\"http:\/\/cadpanacea.com\/wp\/wp-content\/uploads\/2014\/11\/dgnpurgeresults.png\" alt=\"dgnpurgeresults\" width=\"445\" height=\"107\" loading=\"lazy\" srcset=\"http:\/\/cadpanacea.com\/wp\/wp-content\/uploads\/2014\/11\/dgnpurgeresults.png 445w, http:\/\/cadpanacea.com\/wp\/wp-content\/uploads\/2014\/11\/dgnpurgeresults-300x72.png 300w\" sizes=\"auto, (max-width: 445px) 100vw, 445px\" \/><\/a><\/p>\n<p>We hope this gets incorporated into the normal Purge command in a future release. Thanks Autodesk!<\/p>\n<div class=\"field field-name-body field-type-text-with-summary field-label-hidden\">\n<div class=\"field-items\">\n<div class=\"field-item even\">\n<p>EDIT (June 25, 2013): Jimmy over at <a href=\"http:\/\/blog.jtbworld.com\/2013\/06\/how-to-purge-dgn-linetypes-in-dwgs.html\" target=\"_blank\">JTB World has a post on this<\/a>, and apparently discovered that this tool could lead to data loss under certain circumstances. The download has been removed from the Autodesk website for now. According to comments here and on JTB World, Kean is working on an update and it will be released soon.<\/p>\n<p>EDIT (August 4, 2013):<br>\nAn <a href=\"http:\/\/knowledge.autodesk.com\/support\/autocad\/downloads\/caas\/downloads\/content\/autocad-C2-AE-dgn-hotfix.html?v=2013\">updated HotFix was released today<\/a>.<\/p>\n<p>EDIT (January 9, 2014):<br>\n<a href=\"http:\/\/through-the-interface.typepad.com\/through_the_interface\/about-the-author.html\" target=\"_blank\">Kean<\/a> has posted some <a href=\"http:\/\/bit.ly\/1j3kqTR\" target=\"_blank\">new code with an explanation<\/a>.<\/p>\n<p>EDIT (March 28, 2014):<br>\nAutoCAD 2015 and AutoCAD LT 2015 both include the ability to purge DGN linetype bloat. It\u2019s now built into the regular Purge command. See <a href=\"http:\/\/withoutanet.typepad.com\/without_a_net\/2014\/03\/autocad-2015-purge-command-enhancements.html\" target=\"_blank\">this post for more information<\/a>.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><\/p>\n<\/body>","protected":false},"excerpt":{"rendered":"<p>We have been recently running across AutoCAD DWG files that contain hundreds of non-purgable linetypes, some with strange names, some that appear to be nested in mysterious blocks, etc. With help from the Autodesk Forums\u00a0and some independent research, I became&#8230;<br \/><a class=\"read-more-button\" href=\"http:\/\/cadpanacea.com\/wp\/?p=512\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":538,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,15],"tags":[109,110,65,102],"class_list":["post-512","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-reference","category-tech","tag-dgn","tag-hotfix","tag-linetype","tag-purge"],"views":13278,"_links":{"self":[{"href":"http:\/\/cadpanacea.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/512","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/cadpanacea.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/cadpanacea.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/cadpanacea.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/cadpanacea.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=512"}],"version-history":[{"count":1,"href":"http:\/\/cadpanacea.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/512\/revisions"}],"predecessor-version":[{"id":519,"href":"http:\/\/cadpanacea.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/512\/revisions\/519"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/cadpanacea.com\/wp\/index.php?rest_route=\/wp\/v2\/media\/538"}],"wp:attachment":[{"href":"http:\/\/cadpanacea.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=512"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/cadpanacea.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=512"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/cadpanacea.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=512"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}