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.
Spirals?
don_williams909
Member Posts: 142 PRO
Is there a feature script that creates a 2D spiral, from a given starting diameter, to ending diameter, over x degrees of rotation?
0
Comments
Can you offer some help?
The X and Y parameters of the parametric curve feature have the equations.
BTW, you can make a copy of my part studio, replace #startRadius, #endRadius, and #rotation with configuration variables, and then derive the spiral into your part studio.
main steps -
1) add the two feature scripts - #t Define Parameter and Parametric Curve
2) Run Define Parameter (creates t)
3) Build the variables and give them values
4) Run Parametric Curve with formulas to produce desired curve
What step are you questioning?
I have no clue how to "Build the Variables".
Or at least, I'm expecting it to look as tangent as his did. I could very well be wrong.
Seems like you may be getting hung up on basics. Instead of 'copying the feature script' you should add those FS to your toolbar.
On 'build variables' - I should have probably said 'create variables'. That is done with standard variable feature. You create the named variables to be used in the feature script 'Parametric Curve'. Then when you run Parametric Curve, you need to enter a formula using t and your variables like @ilya_baran example.
I copied the original file, saved the to feature scripts.
The FS would not accept the formulas.
See pics below. Does your feature tree look like this? The first pic shows creating the variable #startRadius; the 2nd shows where the variables are used in formulas in Parametric Curve.
https://cad.onshape.com/documents/1c88574d442c89b0dbbd1e6c/w/b1a1a37b04758f14d0b35db8/e/26d52e6a01ab9d4d81b4638f
If you find the variables and parametric curve method a bit much to deal with, there is an alternate way to get a 2d spiral. In the Features List, starting with Sketch 1, look at the last 5 features
In a nutshell, this alternate method was made by —
This method took the same amount of features (steps) as using the parametric curve method, which is 5
In the features list, Curve 1 was the spiral made using the PARAMETRIC CURVE method
Sketch 3 was the spiral made using the CONE, HELIX and USE tool & TRIM method
Notice that the 2 spirals, made with the two different methods, have the same shape.
Now there may be a number of reasons why you would want to use the parametric curve method, but it’s always nice to have another method for handling a situation, just in case
great idea!
btw You amaze me with your skill at running Onshape on mobile. It is inspiring to see mobile used so effectively.
Thanks Bruce.
It’s a fun app to use
Learn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! Learn How to FeatureScript Here 🔴