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.
"Face Curves" in Featurescript?
S1mon
Member Posts: 2,983 PRO
In Solidworks, and countless other CAD tools it's easy to create curves on surfaces based on U-V. They're useful for creating patterns of 3D curves with similar styles, trimming surfaces, or just diagnosing the quality of the surface. Note that these are vaguely similar to the edges created by Onshape's "move boundary" when it's trimming the surface, but those are trying to move things in a offset fashion, not in a U or V direction.
This screenshot shows an arbitrary surface with a 5 x 5 pattern of curves in Solidworks. You can also do it based on position - either a selected point, or percentages. I'd like to have this basic functionality in Onshape. It seems like something which shouldn't be too hard to do with FeatureScript, but I haven't written any yet. While it would be great if someone else would just write this for me, I was hoping for some pointers on the following:
This screenshot shows an arbitrary surface with a 5 x 5 pattern of curves in Solidworks. You can also do it based on position - either a selected point, or percentages. I'd like to have this basic functionality in Onshape. It seems like something which shouldn't be too hard to do with FeatureScript, but I haven't written any yet. While it would be great if someone else would just write this for me, I was hoping for some pointers on the following:
- Is it possible and relatively straightforward to create curves in FeatureScript?
- Are there any example FeatureScripts which do anything similar?
0
Comments
The enum types here seem to correspond to the functionality that's in Solidworks perhaps because it's what the Parasolid kernel provides. Is Onshape working on the feature I'm trying to create? What is the reason for the asterix in this line: "Specifies type of curve on face. *" ?
This will generate splines in the U V Directions of a face. it does not however, give you the splines relative to an edge or parallel to an edge, I Actually need what you posted. If i figure anything out, i will definitely share it.
Also thanks to @maximilian_schommer for creating sculptFace.
I managed to sift through sculptFace and even though I don't really understand what I did, I was able to copy the bits which created the splines and leave behind all the rest. What is interesting is that it's clearly not extracting the isoparameters, but instead making approximate splines based on sampling the face (or something like that). If the U or V count is too low, the curves don't follow the surface. In any case I have more work to do, but I was able to get something to happen.
you are correct. the tolerance in the faces is basically from the U V grid. I have found that the curves can be very bad because they are created using opfitspline.
I need this opCreateCurvesOnFace feature like last month.
I am working on cracking it but it may be tough. maybe onshape can help. hopefully.
Here is what i discovered so far.
the feature works, however, i cannot find a way for it to use a guide on the edge to control the U V Parameters instead of using the basic underlying U V directions of the surface.
Is the development related to beams by any chance?
That gives me an idea to improve the length measurement on mine...
IR for AS/NZS 1100
Did this FeatureScript get lost when you converted to Enterprise?
I'm also looking for a good examples of how to group a bunch of curves into a composite feature. I remember your version doing that. Is that right?
Thanks for making FaceCurve public again.
I'm having issues with the composite part of the code. I'm trying to do an upgrade of the dihedral angle featurescript (I'll share this soon when I get it working), and I basically copied your code for the composite option. At first I thought I had copied it in a way which wasn't working in my code, but it seems like there's something buggy about it in your FaceCurve FeatureScript as well.
If "Create composite" is turned off in FaceCurves, it works, if it's turned on, the curves will preview correctly when you first toggle "Create composite" on while editing the feature, but when you complete the feature, they disappear. There's still a composite part in the instance list, and hovering over it shows that there are curves in it, but they seem invisible.
I've found in my code that if I switch closed to false, it works, but that's really defeating the purpose for me.
This seams like it might even be a bug in Onshape.
I reported the disappearing closed composite part issue to support. We'll see what's up...
In less than a week, Onshape fixed the bug and pushed an update live. This is one reason why I like Onshape.
"Onshape has been updated to address your ticket:
"Closed Composite Curves are Invisible"
This update ( 1.141.3231.2875ac2d443e ) has been pushed to cad.onshape.com and is live for all users of Onshape. This should address the issue with wire bodies not showing up in closed composites."