.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Reply
Message 1 of 1
Anonymous
317 Views, 0 Replies

Purge

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

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost