Community
Civil 3D Forum
Welcome to Autodesk’s Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

copying any entity brings unwanted linetypes

5 REPLIES 5
Reply
Message 1 of 6
jaysonharrison
1600 Views, 5 Replies

copying any entity brings unwanted linetypes

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

5 REPLIES 5
Message 2 of 6
Jeff_M
in reply to: jaysonharrison

See this thread for some background info:

http://forums.autodesk.com/t5/autocad-civil-3d-general/dgn-purge-for-2011/m-p/4917924/highlight/true...

 

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)
)

 

Jeff_M, also a frequent Swamper
EESignature
Message 3 of 6
tmullins
in reply to: jaysonharrison

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:

http://knowledge.autodesk.com/support/autocad/downloads/caas/downloads/content/autocad-C2-AE-dgn-hot...

 

We've used the hotfixes for 2012 and 2014 and they do clean up the drawings quite a bit.

Message 4 of 6
tmullins
in reply to: Jeff_M

Nice code Jeff. Seems to work as well as the hotfix on first testing.

 

Remember to purge a couple times after running it.

 

Thanks.

Message 5 of 6
jaysonharrison
in reply to: Jeff_M

this worked wonderfully thanks so much!

Message 6 of 6
deniseparker
in reply to: tmullins

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.  

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


 

Autodesk Design & Make Report