I want to loop through all blockreferences and entities in Model Space and Layout space...
Can I do that in one loop?
Can I do something like for each object in Drawing database?
What's the object set I'm looking for here?
Here's the beginning of my current code.
'Start(Transaction) Using myTrans As Transaction = DatabaseIn.TransactionManager.StartTransaction Dim myBT As BlockTable = DatabaseIn.BlockTableId.GetObject(OpenMode.ForRead) Dim myModelSpace As BlockTableRecord = myBT(BlockTableRecord.ModelSpace).GetObject(OpenMode.ForRead) 'For Each Object in ModelSpace For Each myObjID As ObjectId In myModelSpace Dim myEnt As Entity = myObjID.GetObject(OpenMode.ForRead) If TypeOf myEnt Is Autodesk.AutoCAD.DatabaseServices.Line Then
Solved! Go to Solution.
Solved by jeff. Go to Solution.