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.
What does NO_ERROR mean?
kendall_frey
Member Posts: 2 ✭
I'm trying to use skEllipticalArc in a feature, but every time I give it a center that is not the origin (0,0) it produces NO_ERROR and doesn't create the arc.
Here is the simplest code that reproduces it:
Here is the simplest code that reproduces it:
<div>FeatureScript 581;</div><div>import(path : "onshape/std/geometry.fs", version : "581.0");</div><div><br></div><div>annotation { "Feature Type Name" : "Test" }</div><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> var sketch1 = newSketch(context, id + "sketch1", {</div><div> "sketchPlane" : qCreatedBy(makeId("Top"), EntityType.FACE)</div><div> });</div><div> skEllipticalArc(sketch1, "ellipticalArc1", {</div><div> "center" : vector(2, 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> skSolve(sketch1);</div><div> </div><div> });</div><div></div>
Is this a bug? How can I create an arc where the center is somewhere other than the origin?
0
Answers
The initial guess data for an elliptical arc is in this format: [center x, center y, major axis x, major axis y, major radius, minor radius, start parameter, end parameter] All distances are in meters, the parameter's domain is [0, 2 pi], and the major axis will not be normalized for you unlike with the skEllipticalArc function.