Message 1 of 2
is it possible getobjectid with filter without open dwg with Document.Editor?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello! I am NewB for ObjectARX.
Mostly I do with Common.Interop so I friendly with build code with open dwg with editor.
but I found if I use ObjectARX I can build it without using editor like
Using AcadDB As New Database(False, True)
AcadDB.ReadDwgFile(DwgPath, FileOpenMode.OpenForReadAndAllShare, False, Nothing)
Using Trans As Transaction = AcadDB.TransactionManager.StartTransaction
Dim BT As BlockTable = TryCast(Trans.GetObject(AcadDB.BlockTableId, OpenMode.ForRead), BlockTable)
Dim BTR As BlockTableRecord = TryCast(Trans.GetObject(BT(BlockTableRecord.ModelSpace), OpenMode.ForWrite), BlockTableRecord)
For Each ObjID In BTR
Dim Obj As DBObject = Trans.GetObject(ObjID, OpenMode.ForWrite)
'....
Next
End Using
End Usingbut I don't know How to filtering Objects such as SlectionSetFilter.
I wanna get Object only specific Layer or ObjectType(TEXT, LINE, PLINE etc..).
and also want to filter crossingwindow( filter with location)
hopely there is way to filtering without open in ediotr but just open with database