Message 1 of 2
Problem with add selection

Not applicable
12-09-2003
08:02 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I want add an entity in a selection set only if this entity
have a determinated layer.
My wrong routine:
Dim SelObj As AcadSelectionSet
Dim Ent As AcadEntity
Dim EntAgg(0 To 1) As AcadEntity
Dim NameLayer As String 'name of the guide layer
..make a selection set
For Each Ent In SelObj
If Ent.Layer = NameLayer Then
Set EntAgg(0) = ThisDrawing.SelectionSets.Item(Ent)
SelParz.AddItems EntAgg
End If
Next Ent
Thx and sorry for my bad english
have a determinated layer.
My wrong routine:
Dim SelObj As AcadSelectionSet
Dim Ent As AcadEntity
Dim EntAgg(0 To 1) As AcadEntity
Dim NameLayer As String 'name of the guide layer
..make a selection set
For Each Ent In SelObj
If Ent.Layer = NameLayer Then
Set EntAgg(0) = ThisDrawing.SelectionSets.Item(Ent)
SelParz.AddItems EntAgg
End If
Next Ent
Thx and sorry for my bad english