Message 1 of 3
select filter Rotated dimensions

Not applicable
06-15-2006
03:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've got a small problem with the selectionfilter. The sub below works when i use it for a "Hatch, Line, Mtext but it isn't working when i want to select a dimension.
I think the problem is in the "dataVal(0) = "DIMROTATED" part.
Thx's in advance.
Private Sub CommandButton4_Click()
Dim entObj As AcadEntity
Dim ssetObj As AcadSelectionSet
Dim mode As Integer
Dim grpCode(0) As Integer
Dim dataVal(0) As Variant
Set ssetObj = ThisDrawing.SelectionSets.Add("SS1")
mode = acSelectionSetAll
grpCode(0) = 0
dataVal(0) = "DIMROTATED"
ssetObj.Select mode, , , grpCode, dataVal
Dim S1 As AcadDimRotated
For Each S1 In ssetObj
S1.Visible = False
Next mtekst
ssetObj.Delete
End Sub
I think the problem is in the "dataVal(0) = "DIMROTATED" part.
Thx's in advance.
Private Sub CommandButton4_Click()
Dim entObj As AcadEntity
Dim ssetObj As AcadSelectionSet
Dim mode As Integer
Dim grpCode(0) As Integer
Dim dataVal(0) As Variant
Set ssetObj = ThisDrawing.SelectionSets.Add("SS1")
mode = acSelectionSetAll
grpCode(0) = 0
dataVal(0) = "DIMROTATED"
ssetObj.Select mode, , , grpCode, dataVal
Dim S1 As AcadDimRotated
For Each S1 In ssetObj
S1.Visible = False
Next mtekst
ssetObj.Delete
End Sub