Author Topic: DGN Purge for 2012  (Read 27417 times)

0 Members and 1 Guest are viewing this topic.

BlackBox

  • King Gator
  • Posts: 3770
Re: DGN Purge for 2012
« Reply #15 on: September 20, 2013, 11:15:08 AM »
Thanks BB, that helps.  Works here as well so far.

Cheers!

You're welcome, Jim; I'm happy to help.

Cheers
"How we think determines what we do, and what we do determines what we get."

rkmcswain

  • Swamp Rat
  • Posts: 978
Re: DGN Purge for 2012
« Reply #16 on: September 30, 2013, 11:02:48 AM »
.....I need to netload it every time I start a new session of autocad. Is there a way to fix this so I only need to load it once?

I'm still old school, so....

Code: [Select]
;;;
;;; LOAD DGN PURGE COMMAND
(if (setq dgnp (findfile "DgnLsPurge.dll"))
  (command "._NETLOAD" dgnp)
)

 :kewl:

max

  • Guest
Re: DGN Purge for 2012
« Reply #17 on: February 27, 2015, 05:38:10 AM »
Hi there,
I get a null object ID sometimes in the PurgeLinetypesReferencedNotByAnonBlock Method. The following if clause can fix this:
[...]
// If the owner does not belong to an anonymous
// block, then we take it seriously as a reference
//
// Chek the OwnerId first!
if (ent.OwnerId != ObjectId.Null)
{
var owner = (BlockTableRecord)tr.GetObject(ent.OwnerId, OpenMode.ForRead);
[...]