
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi...
I want to count visible selected type of drawing curve segment by any selectset is activate in drawing view...
I get difficulties to get the drawing view name (ex: "VIEW16") by activate selectset a drawing curve segment in that view...
The counting seem not found the correct answer... as below example... the part is actually having 2 size of fillet...
"Fillet1" x3 and Fillet2" x2 ... "Fillet1" visible count should be 2 in "VIWE16" but the result only count 1...
VBa.
Dim oDrawDoc As DrawingDocument
Set oDrawDoc = ThisApplication.ActiveDocument
Dim oSSet As SelectSet
Set oSSet = oDrawDoc.SelectSet
Dim oDwgCurveSegment As DrawingCurveSegment
Dim oSheet As Sheet
Set oSheet = oDrawDoc.ActiveSheet
Dim oView As DrawingView
Set oView = oSheet.DrawingViews.Item(1)
Dim i As Integer
For i = 1 To oView.DrawingCurves.Count
If oView.Name = "VIEW16" ThenFor Each oDwgCurveSegment In oView.DrawingCurves.Item(i).Segments
If oDwgCurveSegment.GeometryType = kCircularArcCurve2d Then
i = i + 1
MsgBox "kCircularArcCurve2d[" & i & "]"
End If
Next
End If
Solved! Go to Solution.