Why does skEllipticalArc throw NO_ERROR?

dave_cowden
dave_cowden Member, Developers Posts: 484 ✭✭✭
<div>export const myFeature = defineFeature(function(context is Context, id is Id, definition is map)</div><div>&nbsp; &nbsp; precondition</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; // Define the parameters of the feature type</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; 	var sketch = newSketchOnPlane(context, id + "ellipseTest", {</div><div>		"sketchPlane" : plane(vector(0, 0, 0) * meter, vector(0, 0, 1), vector(1, 0, 0))</div><div>	 &nbsp; &nbsp;});</div><div>	 &nbsp; &nbsp;</div><div>&nbsp; &nbsp; 	skEllipticalArc(sketch, "ellipticalArc1", {</div><div>&nbsp; &nbsp; 	 &nbsp; &nbsp; &nbsp; &nbsp;"center" : vector(0, 0) * inch,</div><div>&nbsp; &nbsp; 	 &nbsp; &nbsp; &nbsp; &nbsp;"majorAxis" : vector(1, 0) * inch,</div><div>&nbsp; &nbsp; 	 &nbsp; &nbsp; &nbsp; &nbsp;"minorRadius" : 1 * inch,</div><div>&nbsp; &nbsp; 	 &nbsp; &nbsp; &nbsp; &nbsp;"majorRadius" : 2 * inch,</div><div>&nbsp; &nbsp; 	 &nbsp; &nbsp; &nbsp; &nbsp;"startParameter" : 0,</div><div>&nbsp; &nbsp; 	 &nbsp; &nbsp; &nbsp; &nbsp;"endParameter" : 0.25</div><div>&nbsp; &nbsp; 	});</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; 	skSolve(sketch);	 &nbsp; &nbsp;</div><div>&nbsp; &nbsp; });</div>



I had a lot more complex script, but I eventually reduced it to the above, which fails despite input that passes the pre-conditions, and appears to be pretty much exactly what you get when you use the sample values from the documentation.

Best Answer

Answers

  • dave_cowden
    dave_cowden Member, Developers Posts: 484 ✭✭✭
    ok. sometimes i feel bad asking and then finding out i was doing something stupid.  But in this case, glad i asked! I'd never have figured that one out!