03-10-2023
07:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
03-10-2023
07:25 AM
I want to modify the following rule (which pulls the drawing curves from a document) so that the enumerator only contains kLineSegmentCurves instead of all curve types by either only adding kLineSegmentCurves or removing everything but after the fact. It currently contains a loop that successfully finds the curves by type. But I'm not sure how to remove them from the collection.
Dim oCurves As DrawingCurvesEnumerator Dim oCurve As DrawingCurve oCurves = oView.DrawingCurves(oModel) For Each oCurve In oView.DrawingCurves(oModel) If oCurve.CurveType.ToString = "kLineSegmentCurve" Else 'Remove oCurve from oCurves End If Next curveMax = oCurves.Count If curveIndex > curveMax Then curveIndex = curveMax End If oCurve = oView.DrawingCurves(oModel).Item(curveIndex)
Solved! Go to Solution.