I am having a problem with my code selecting more than what is specified by the filterdata, example below. I have a drawing with hidden attributes(text) in modelspace and the drawing in paperspace, but my selectionset is till finding the entities in modelspace.
Does anyone have a suggestion?
Code:Set acSSet2 = ThisDrawing.SelectionSets.Add("ALL") ReDim Preserve HasEnts(LayOuts.Count) a = 0 For Each layout In ThisDrawing.LayOuts whatlayout = layout.Name wSpace = layout.Block.Name If wSpace = "*Paper_Space" Or wSpace Like "*PAPER_SPACE" Then ThisDrawing.ActiveSpace = acPaperSpace Else ThisDrawing.ActiveSpace = acModelSpace End If 'ThisDrawing.ActiveLayout = layout iMode2 = acSelectionSetAll iFilterType2(0) = 0 vFilterData2(0) = "Line" acSSet2.Select iMode2, , , iFilterType2, vFilterData2 iCount = acSSet2.Count If iCount > 17 Then HasEnts(a) = layout.Name a = a + 1 Else HasEnts(a) = layout.Name a = a + 1 End If Next


Reply With Quote

