0 Replies Latest reply on Dec 16, 2015 2:09 AM by Quang Le

    API CreateCornerRectangle function

    Quang Le

      Hi.

      I am using Solidwork API to create a ractangle.

      I used this line of code to create a corner rectangle

      vSkLines = Part.SketchManager.CreateCornerRectangle(-0.0024, 0.0012, 0, 0.0024, -0.0012, 0)

      This doesnt show an error however Solidwork cant draw the rectangle for this size.

      I have tried to increase Y1 and Y2 absolute value of 0.001205

      vSkLines = Part.SketchManager.CreateCornerRectangle(-0.0024, 0.001205, 0, 0.0024, -0.001205, 0)

      and this time the rectangle can be drawn normally.

      I dont know why did this happen. Is there a limit for this function ?

      Thanks