hello - I am using c3d 2011 and have several drawings having the same issue. Whenever I copy anything from one of these drawings into a new drawing it brings hundreds of unwanted linetypes which I am unable to purge. It is making the drawings slow and the file sizes seem unecessarily large.
Is there some way to purge these linetypes or copy without copying all the unwanted items?
Thanks,
Jayson
See this thread for some background info:
You might try this lisp to remove the unwanted linetypes:
(defun c:deldgnltstyle ( / dicts dict) (vl-load-com) (setq dicts (vlax-get (vla-get-activedocument (vlax-get-acad-object)) 'dictionaries ) ) (setq dict (vlax-invoke dicts 'item "ACAD_DGNLINESTYLECOMP")) (princ (strcat "\nDGN Linetypes before: " (itoa (vla-get-count dict)) ) ) (vla-delete dict) (princ "\nACAD_DGNLINESTYLECOMP Dictionary removed!") (princ) )
Autodesk issued a hotfix that cleans these up but unfortunately I don't see a link for 2011. Maybe someone can track it down.
Here is 2012:
We've used the hotfixes for 2012 and 2014 and they do clean up the drawings quite a bit.
Nice code Jeff. Seems to work as well as the hotfix on first testing.
Remember to purge a couple times after running it.
Thanks.
Is there a fix for removing unwanted line types for A 2013? I saw the post for 2012. there was a link for the later versions but it did not work. im not an it person so I dont think I can write code. We have several drawings that are exploding out of control.
Thanks.