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.
Sketch "Use" in featurescript
gauthier_östervall
Member Posts: 99 ✭✭
I cannot find the function to "Use (Project/Convert)" an existing face (which the feature user would define), onto a sketch that I create in my featurescript.
Is it not implemented, or am I just failing at finding it?
Is it not implemented, or am I just failing at finding it?
Tagged:
0
Comments
Let use know the larger problem being solved and there is possibly an alternative solution, like using the existing entity as-is, or splitting that entity with a plane and using the split edge.
so desired edge call
evEdgeTangentLines
project the line origins returned from evEdgeTangentLines to the desired plane.
opFitSpline on the projected points.
Result. spline on plane created.
If the edge loops back on itself, it will fail and you will need to find out why.
Imagine a circle perpendicular to a plane. when you project that circle, you will get points that overlap as it is visibly a line when looking from the plane.
As you described, I ended up extruding a face, and splitting with the sketch plane. Not as elegant, but it does the job.
@kevin_o_toole_1 is it by now possible to create a sketch via feature script with "USE"? That would be extremely helpful for my project.