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.
¿how to make a rectangular spiral?
guillermo_lovato
Member Posts: 12 ✭
Hello,
i need to create an open rectangular 2d vector and i can't find a way to easily make it in onshape, i've found a regular spiral custom feature as well as tips to make them manually but not sure they'd apply to a rectangular one.
something like this:
0
Comments
You could certainly do it with a Custom Feature, but creating a seed sketch and repeatedly offsetting it will also work (bit more manual). Particuarly if you drive everything off of one variable, you can edit that number and scale the whole spiral. Made a quick example, pretty fun!
https://cad.onshape.com/documents/1e6d860c7df096d97f1e13c7/w/8505f9a49f6f00f167bc652a/e/119189fc6f7a01370546ae24
Kevin's will be the most straight forward way.
Here are a few more steps you could take to make the loop count dynamic with a feature pattern:
https://cad.onshape.com/documents/b7d15015b6ab6321bf96e2b4/w/213b8a00e5bccbbf533d2116/e/0053316…
Learn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! Learn How to FeatureScript Here 🔴
Already two great solutions above. But, if you wanted even another way, a quick FS will do it.
https://cad.onshape.com/documents/7b265f9547ea96d0c8af0858/w/a086dde488156e48d7b16a86/e/b67e45ac7baaf48ba80c855c
The problem with repeating the offset manually is that it's way more than a "bit of work" when i need dozens of turns(requires manually selecting 5 segments per turn), also the rectangle that i need to do is not uniform, the spiral needs to be rectangular and not square so horizontal scale is not the same as the vertical but spacing is the same(i could use 2 variables?)
also, how would i go about using a custom feature for that, i did not find one made and programming one is absolutely off the table for me
what's that "#offset*#count" value you apply to a line vector?, i've never seen that, it's not a dimension because it also has one, what's it for and how do you do it?:
Michael is using a clever technique in the linear pattern. The variable
count
is equal tocount+1
. So, when he patterns it, it increments each time. So, the dimension(offset * count)
will grow for each instance of the pattern. This technique is seen in this course.As for my approach, you could just copy my code into a new FS tab in your document and use my feature or use the Add custom features button.
I ended up using your featurescript with some modifications as some max values were not enough for the spiral i needed to build, excellent!