Message 1 of 8
TinSurface Class Explode Method not populating DBObjectCollection
Not applicable
06-10-2010
08:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Could someone shed some light on why the DBObjectCollection isn't being populated here?
For Each id As ObjectId In btr
Dim obj1 As Autodesk.AutoCAD.DatabaseServices.DBObject = tr.GetObject(id, OpenMode.ForRead)
Dim srf As Autodesk.Civil.Land.DatabaseServices.TinSurface = TryCast(obj1, Autodesk.Civil.Land.DatabaseServices.TinSurface)
If Not srf Is Nothing Then
Dim acDBObjColl As DBObjectCollection = New DBObjectCollection()
srf.Explode(acDBObjColl)
For Each acEnt As Autodesk.AutoCAD.DatabaseServices.Entity In acDBObjColl
btr.AppendEntity(acEnt)
tr.AddNewlyCreatedDBObject(acEnt, True)
Next
End If
Next
I can't for the life of me figure it out and it's been driving me nuts for the last day. Any direction or advice (other than telling me not to explode a surface!) would be greatly appreciated.
Thanks in advance.