Message 1 of 4
SelectOnScreen to get block attributes

Not applicable
01-23-2003
09:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I can use the GetSubEntity method to select one block attribute (the
attribute, not the block) is there a way to use the SelectOnScreen method to
get both text entities and block attributes?
Any assistance will be appreciated.
Dim SSText As AcadSelectionSet
Dim FilterType(0 To 4) As Integer
Dim FilterData(0 To 4) As Variant
Set SSText = ThisDrawing.SelectionSets.add("SS-text")
FilterType(0) = -4
FilterData(0) = "
FilterType(1) = 0
FilterData(1) = "TEXT"
FilterType(2) = 0
FilterData(2) = "Mtext"
FilterType(3) = 2
FilterData(3) = "AcDbAttribute" ' this does not work.
FilterType(4) = -4
FilterData(4) = "or>"
SSText.SelectOnScreen FilterType, FilterData
Regards
Sean Bartleet
I can use the GetSubEntity method to select one block attribute (the
attribute, not the block) is there a way to use the SelectOnScreen method to
get both text entities and block attributes?
Any assistance will be appreciated.
Dim SSText As AcadSelectionSet
Dim FilterType(0 To 4) As Integer
Dim FilterData(0 To 4) As Variant
Set SSText = ThisDrawing.SelectionSets.add("SS-text")
FilterType(0) = -4
FilterData(0) = "
FilterData(1) = "TEXT"
FilterType(2) = 0
FilterData(2) = "Mtext"
FilterType(3) = 2
FilterData(3) = "AcDbAttribute" ' this does not work.
FilterType(4) = -4
FilterData(4) = "or>"
SSText.SelectOnScreen FilterType, FilterData
Regards
Sean Bartleet