Why does skEllipticalArc throw NO_ERROR?
dave_cowden
Member, Developers Posts: 484 ✭✭✭
<div>export const myFeature = defineFeature(function(context is Context, id is Id, definition is map)</div><div> precondition</div><div> {</div><div> // Define the parameters of the feature type</div><div> }</div><div> {</div><div> </div><div> </div><div> 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> });</div><div> </div><div> skEllipticalArc(sketch, "ellipticalArc1", {</div><div> "center" : vector(0, 0) * inch,</div><div> "majorAxis" : vector(1, 0) * inch,</div><div> "minorRadius" : 1 * inch,</div><div> "majorRadius" : 2 * inch,</div><div> "startParameter" : 0,</div><div> "endParameter" : 0.25</div><div> });</div><div> </div><div> skSolve(sketch); </div><div> });</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.
0
Best Answer
-
This is being fixed in an upcoming release.
I believe the way to currently get it to work is to make the major axis 1 meter long (i.e. vector(1, 0) * meter)
5
Answers
-
This is being fixed in an upcoming release.
I believe the way to currently get it to work is to make the major axis 1 meter long (i.e. vector(1, 0) * meter)
5 -
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!0

