- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
Is there a chance to calculate, in the sketch, number of curves with a special line type i.e.: "ACAD_ISO02W100"?
In the below iLogic script I'm able to calculate all the curves with "kCustomLineType", but I need to know how many lines are with above given type...
Dim oDoc As Document = ThisApplication.ActiveDocument Dim oSketch As Sketch oSketch = oDoc.ComponentDefinition.Sketches.Item(1) 'Dim linesCount As Integer linesCount = 0 ' ******* must be a parameter ******* Dim i As Double For i = 1 To oSketch.SketchLines.Count If oSketch.SketchLines.Item(i).LineType.ToString = "kCustomLineType" ' "ACAD_ISO02W100" needed linesCount = linesCount + 1 End If Next i
-------------------------
Tomasz Malinowski
Tomasz Malinowski
Solved! Go to Solution.
