.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Erased block reference [Important]

1 REPLY 1
Reply
Message 1 of 2
vedamurthy.gurumurthy
263 Views, 1 Reply

Erased block reference [Important]

I have an ObjectID of an erased blockreference.
How to know block name of this reference?
Please somebody guide me regarding this.
1 REPLY 1
Message 2 of 2

This might help

{code}
Dim tm As Autodesk.AutoCAD.DatabaseServices.TransactionManager _
= Application.DocumentManager.MdiActiveDocument.Database.TransactionManager
Using tr As Transaction = tm.StartTransaction
Dim objID As ObjectId
objID = ' your id
Dim Ent As Entity = CType(tr.GetObject(objID, OpenMode.ForRead), Entity)
If TypeOf Ent Is BlockReference Then
Dim blk As BlockReference
blk = Ent
MsgBox(blk.Name)
End If
End Using
{code}
---------------------------



(defun botsbuildbots() (botsbuildbots))

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