Message 1 of 4
How to count entyties with .NET
Not applicable
07-09-2005
10:10 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
How to count Entyties in MODELSPACE with .NET ?
_
Public Sub GetInfos()
Dim db As Database = HostApplicationServices.WorkingDatabase
Dim Trans As Transaction = db.TransactionManager.StartTransaction()
Dim Bt As BlockTable = CType(Trans.GetObject(db.BlockTableId,
OpenMode.ForRead), BlockTable)
Dim Btr As BlockTableRecord = CType(Trans.GetObject(Bt(Btr.ModelSpace),
OpenMode.ForRead), BlockTableRecord)
???
Trans.Dispose()
End Sub
How to count Entyties in MODELSPACE with .NET ?
Public Sub GetInfos()
Dim db As Database = HostApplicationServices.WorkingDatabase
Dim Trans As Transaction = db.TransactionManager.StartTransaction()
Dim Bt As BlockTable = CType(Trans.GetObject(db.BlockTableId,
OpenMode.ForRead), BlockTable)
Dim Btr As BlockTableRecord = CType(Trans.GetObject(Bt(Btr.ModelSpace),
OpenMode.ForRead), BlockTableRecord)
???
Trans.Dispose()
End Sub