Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
Why does skEllipticalArc throw NO_ERROR?
dave_cowden
Member, Developers Posts: 475 ✭✭✭
<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
-
kevin_o_toole_1 Onshape Employees, Developers, HDM Posts: 565This 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
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)