How do I orient an ellipse (skEllipse)?

Aaron_Hoover
Aaron_Hoover Member Posts: 35 EDU
edited October 2018 in FeatureScript
I'm generating an ellipse on a plane with skEllipse and I'd like to be able to rotate it in plane with respect to the coordinate system of the sketch plane. One way to do this would be specify the angle of the major axis wrt the X axis of the coordinate system, but there's no angle parameter in the skEllipse definition. So, I figured when I specify the "majorRadius" field perhaps I could pass a 2D vector rotated by the angle I want (with the minorRadius rotated by the same angle.) But, I get the following error:


Precondition of skEllipse failed (value.minorRadius is undefined || is...)

232:5   
onshape/std/units.fs (val is ValueWithUnits)

69:5   
onshape/std/valueBounds.fs (isLength(value))

439:5   onshape/std/sketch.fs (skEllipse)

Best Answers

Answers

  • Aaron_Hoover
    Aaron_Hoover Member Posts: 35 EDU
    Thanks! That did the trick.