Can someone help me with the "Purge" option provided by Vb.Net.I'm trying to purge all the attributes but it does not help me.
Sample Code:
Dim activedoc As Document = Application.DocumentManager.MdiActiveDocument
Dim db As Database = activedoc.Database
Dim bt As BlockTable = CType(trans.GetObject(db.BlockTableId, OpenMode.ForRead), BlockTable)
Dim btr As BlockTableRecord = CType(trans.GetObject(bt(btr.ModelSpace), OpenMode.ForWrite), BlockTableRecord)
ids = New ObjectIdCollection
Dim id As ObjectId
Dim ent As Entity
For Each id In btr
ids.Add(id)
Next
db.Purge(ids)