PeterPan9720
19th Sep 2010, 07:12 pm
Pls somebody knows if is there a limits in the number of objects selectable from the below code ?
If I reach a quote of more than 14600 is there any know limits ? later I have to modify the layer of each !.
Thanks
ThisDrawing.SelectionSets.Add ("BOM1")
Set Ssnew1 = ThisDrawing.SelectionSets("BOM1")
Ssnew1.Select acSelectionSetAll
For Each Entity1 In Ssnew1
On Error Resume Next
If Entity1.Layer = MyNome(i - 1) Then
If Entity1.Layer <> "0" Then
Entity1.Layer = MyNome(i) 'array containing the list of array.
Debug.Print Entity1.Layer, Conteggio
Conteggio = Conteggio + 1
End If
End If
Next
If I reach a quote of more than 14600 is there any know limits ? later I have to modify the layer of each !.
Thanks
ThisDrawing.SelectionSets.Add ("BOM1")
Set Ssnew1 = ThisDrawing.SelectionSets("BOM1")
Ssnew1.Select acSelectionSetAll
For Each Entity1 In Ssnew1
On Error Resume Next
If Entity1.Layer = MyNome(i - 1) Then
If Entity1.Layer <> "0" Then
Entity1.Layer = MyNome(i) 'array containing the list of array.
Debug.Print Entity1.Layer, Conteggio
Conteggio = Conteggio + 1
End If
End If
Next