ARC drawing RRS feed

  • Question

  • i'm trying to import DXF data to picture, and have question with ARC drawing,

    below code reflects applying of the start angle and end angle to custom control mARC

    and it is reflected perfect, with one question: start point and end point have mixed pleases, 

                            Dim stA = mARC.startAngle
                            Dim swA = (mARC.sweepAngle - mARC.startAngle)
                            If mARC.sweepAngle > mARC.startAngle Then
                                swA = 360 - mARC.startAngle + mARC.sweepAngle
                            End If

                            mARC.startAngle = stA
                            mARC.sweepAngle = swA

    what is wrong?

    Thursday, June 1, 2017 1:38 PM

All replies