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.
tangent manipulator behavior
EvanReese
Member, Mentor Posts: 2,135 ✭✭✭✭✭
I'm trying to work out a way to make a point on a curve with a linear manipulator (inspired by the new Loft connections). My thought process has been:
https://cad.onshape.com/documents/8f9ced588efde6aeb961179b/w/82fc597da85b474ebe34145b/e/0e2af702f669ec1a43004265
- measure the curve.
- divide 1 by the curve length to make the manipulator offset distance correspond to the new parameter value needed to move along the curve.
- use a clamp() function to limit the values from 0 to 1 for the parameter
https://cad.onshape.com/documents/8f9ced588efde6aeb961179b/w/82fc597da85b474ebe34145b/e/0e2af702f669ec1a43004265
Evan Reese
0
Best Answer
-
ilya_baran Onshape Employees, Developers, HDM Posts: 1,212This is a simplified example of how the loft one works: https://cad.onshape.com/documents/f82d32555cb582eb811edaa4/v/817dfeb6795b514c82f56edd/e/1c59b56b02f636d764721c18Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc0
Answers
I like this approach much more than mine (surprise surprise ). You're just figuring out where the new manipulator would be, then snapping it to the closest spot on the curve, right? I haven't messed with DistanceResult at all, and I'll have to play with it to understand how to use the parameters there.
This is actually a great step toward solving another issue further down on my list. You may have guessed I'm working to add curves as a reference option for Freeform Spline since it would make it so much more useful for surface modeling. I'd like to make a change function that snaps the point to the closest point on the reference curve when it is selected (rather than defaulting to a parameter of 0.5, which would feel jumpy most times). This seems like it might work for that too.
Thanks!
I'm getting some weird behavior from your example, my Freeform Spline feature, and the Loft connections when using certain edges as references. Any idea why the edge type would matter? See below. The first example is a loft between two solid body edges, and the connections have trouble. But if I use Fit Spline on the edges, and loft between the splines, it seems ok, even though the resulting geometry is nearly identical.
https://cad.onshape.com/documents/627921b62c5d8c4a56037b12/w/a9c16309dec5ac1100147873/e/fb5201dd1135a895113e01ea
I put a few examples of features with edges for references that don't do so well, and features where the same edges have been produces with Fit Spline that work as expected.