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.
Comments
Learn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! Learn How to FeatureScript Here 🔴
Happy Friday, everyone!
Learn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! Learn How to FeatureScript Here 🔴
It seems like the freeform spline FS has been deleted, could you provide a copy for us to use?
Its one of my all time favorite and most used FS!
it would be nice if existing documents doesn't move to Enterprise if you upgrade to Onshape Enterprise
Eduardo Magdalena C2i Change 2 improve ☑ ¿Por qué no organizamos una reunión online?
Partner de PTC - Onshape Averigua a quién conocemos en común
The company I worked at wanted no 3rd party stuff: no apps or feature scripts, so things got locked down in the enterprise edition.
You do know you can transfer FS through your non-enterprise edition. They won't update with notifications but you can build up a nice FS library for the enterprise by transferring through this account.
Just one question here, is it possible adding a check box to generate my personal axis not the world axis? So I can drag it more liberal along my desired direction. Or any approaches I did not notice for the purpose?
See below for what I mean.
There's not currently a way to do that, but i've run into situations where I wanted that. I would like to implement it at some point (though there are some other bugs I might want to tackle first), but for now you can do it with a little prep work by setting up a line the drag it along.
I also made a new long form video tour of the feature, since new functionality has been steadily added and it's getting to be a pretty large feature now. Here's the up-to-date video tour. There are some other workflow tidbits in there too, so you might learn something even if you already know the feature pretty well.
Very nice!
This was already my favourite and most used custom feature but inserting points was always a bit of adventure before, this will really help with usability!
The "click twice" thing seems to happen pretty much 100% of the time when selecting something from a context (if that helps for debugging...).
Never realized what the "keep points" did! Might start using it now that I know it's there.
Very cool update. I think you've already won the Featurescript contest.
I'm looking forward to the Control Point mode having G1/G2/G3 constraints. I haven't begun to look at your code yet, but as you probably know, you could copy/learn a lot from Bridging Curve to get G1/G2 constraints.
One thing that has been on my mental to-do list is to add the ability like Solidworks has in the sketcher to raise/lower the degree of the current curve. The De Casteljau algorithm says you can always raise the degree and the curve is identical (but then you get to manipulate it more), and you can lower the degree if you've just raised it and it stays the same (Solidworks will lower the degree and keep things the same if possible, Pomax's demo doesn't for some reason). With your feature, this may need to be a separate mode like Insert.
I'd love to be able to move control points normal and along the curve.
I'd also love to be able to planarize a series of points, but I don't see a good way to do group edits of selections in Onshape feature vernacular.
It would be great to be able to reference other curve points in the current curve, but I can see how that would be messy unless they always needed to be relative to the ends (and possibly the first few control poly lines which could be constrained by G1/2/3 settings).
In playing around with the control point mode, I managed to lose a bunch of deltas from my references when I tried to add a new point and reordered the points. It might take me a little to reproduce it, but right now I think there's something a little buggy there.
It would be nice if there was an easier way to add points to either end of the spline. Maybe it's just not a great or easy to support workflow, but there are times when you're going to want to do this, and it's not so easy to add a point "zero". The insert mode seems pretty clean and intuitive. I wish there was a way to add points at either end in a way that was just as obvious.
Another set of ideas:
I did a quick study where I made one control point curve and kept the points. Then I did a transform/scale of the points, and used them as references to create a second control point curve. The scale was non-uniform, so I got this variable approximate offset effect. This not as quick as it would be to just transform/scale the curve itself (which is also possible), but it does show that there are some interesting possibilities with reusing/scaling/moving points from other curves.
Learn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! Learn How to FeatureScript Here 🔴
Additional thoughts:
I like the "keep points" option, but I wonder if it would be better to create curves and and turn them into closed composites. These would be easier to hide/show.
Offset as a separate feature could be fine, but I'm not sure how to get the control polygon of an existing curve, unless it's one created with this tool. Then there's the effort to select all the points of the control polygon.
Switching from interpolate to control points would be much better if the curve stayed the same and the vertices adjusted accordingly. I imagine that this would be non-trivial for some types of curves, but at least for single span curves, I think it's relatively straightforward.
Closed spline mode has a bug if you select the start/end point to try to move it, the spline disappears and the feature goes red. As a work-around, if you unselect "closed" you can edit the point and re-close it.
It would be really nice to have a mirror option which would allow you to select a mirror plane (or mate connector) and it would double the number of points on the curve/control polygon.
I like the capabilities of insert mode, but I find the graphics counter-intuitive every time I use it. I want the existing points to stay the same graphic style always, and the potential new points to be a different color (maybe debug-green?). Once clicked, they would turn into the standard point style.
There seems to be a bug in the closed curve mode. In theory, if the control points are in an evenly spaced pattern and "isPeriodic" is true, you should be able to get a regular shape. Instead the curve seems "bunched up" at the start/end. I noticed that you aren't doing anything with the knotArray. I haven't done much with periodic curves, but I wonder if the problem is related to how that is set. I don't fully understand the standard library documentation, but it seems like you may need to set them.
I noticed that the max curve degree is limited to 15 by your code. Is that a limitation you set, or Onshape, or Parasolid?
After playing around with it more, I think what's happening is that I was clicking in the Reference collector for the first vertex, but not doing that for the second vertex. I realize that the intent is that when you hit "Add Vertex" that there's essential a new vertex on top of the last one that you can just drag out. Somehow this isn't the way that my brain works, so I'm always expecting to click on a new reference.
It's weird. It would be nice if when you hit "Add Vertex" that the focus moved to the new Reference collector, but this kind of awkwardness seems to be part of how Onshape does everything in the native features too. In case this is useful to see:
Not shown in the video:
I'm finding that editing the references for the vertices can be a challenge if there's already a vertex at the point that you want to use as a new reference. It just switches to making that vertex active. It's nice to be able to just click on a vertex and drag it, but there are times when it's hard to do anything else.
On the closed splines, it seems like they're mostly working the way I would expect with interpolated mode, but the bunching up happens with control point mode.
I'm also seeing issues with the vertex list.
https://cad.onshape.com/documents/3f7af40c338f19b53ba5ddee/w/3a46bf1ed5077ed358940724/e/16af537a7bdbdc58da917b1c