What Kerry said.
if you need that functionality, store the handle and tie it to a particular drawing.
I hope I got it right. This is what I am doing
make something....
Dim solid As Solid3d = New Solid3d()
solid.Extrude(region, height, 0)
'add it to the db
btr.AppendEntity(solid)
trans.AddNewlyCreatedDBObject(solid, True)
handle = solid.ObjectId.Handle.Value.ToString() 'is this a handle or an objectID?
get it back later......
Dim id As ObjectId = db.GetObjectId(False, New Handle(Convert.ToInt64(.silPltHnd)), 0)' same thing here again
Dim doclock As DocumentLock = AcAp.DocumentManager.MdiActiveDocument.LockDocument()
Dim ent As Entity = DirectCast(trans.GetObject(id, DatabaseServices.OpenMode.ForWrite), Entity)
Dim solid As Solid3d = DirectCast(ent, Solid3d)
I am doing this everywhere...I know this thread is going sideways. But now I am not so sure about this