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.
New FeatureScript: Cosmetic Threads
sebastian_glanzner
Member, Developers Posts: 497 PRO
Hello Everyone,
I'm releasing my first FeatureScript!
Now you can create Cosmetic Threads in Part Studios:

These threads are two helix edges which were created with sweep and split commands.
Features:
Only works with cylinders and cones!
The ends of the selected surfaces have to be circles!
Here is the link:
https://cad.onshape.com/documents/60de6d7733c1f01904ca5910/w/65586bb1bf8227901a34fb9d/e/521b1025fcc83d6e45004d7c
I'm releasing my first FeatureScript!
Now you can create Cosmetic Threads in Part Studios:

These threads are two helix edges which were created with sweep and split commands.
Features:
- Specify the pitch and the direction of the thread!
- Shows in Part-Studios, Assembly and Drawing Tab!
- Much faster than a real 3D thread!
- You can set a custom name for the thread (for example: "M12x1.75 - 6g")
- Change pitch, direction and thread name with configurations!
Only works with cylinders and cones!
The ends of the selected surfaces have to be circles!
Here is the link:
https://cad.onshape.com/documents/60de6d7733c1f01904ca5910/w/65586bb1bf8227901a34fb9d/e/521b1025fcc83d6e45004d7c
Tagged:
10
Comments
-
That's great work
Regen times of 10's of ms seems manageable.Owen S.Business Systems and Configuration Controller
HWM-Water Ltd1 -
NIce Solution0
-
-
0
-
@sebastian_glanzner I have created another version of the FeatureScript Cosmetic threads.
I have not used the code you created, but I used the idea of the two helix to split the face.
Here is a video where you can see how it works and possibly get some ideas.
In the next version I will get the diameter of the edge or cylindrical face and offer the most appropriate threads to the feature name.I will also change the name of the variables to show some icons (depth and pitch) See https://forum.onshape.com/discussion/comment/48210#Comment_48210Finally, I will try to add the information of the thread as attributes so that it can be used in the drawings. See hole attributes https://cad.onshape.com/documents/12312312345abcabcabcdeff/w/a855e4161c814f2e9ab3698a/e/5fcf48cb66a061fc3b60a0a3Un saludo,
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ún2 -
@emagdalenaC2iemagdalenaC2i said:Finally, I will try to add the information of the thread as attributes so that it can be used in the drawings. See hole attributes https://cad.onshape.com/documents/12312312345abcabcabcdeff/w/a855e4161c814f2e9ab3698a/e/5fcf48cb66a061fc3b60a0a3
I'm glad I could help with the idea of using two helix surfaces
Nice improvements!
How do you set attributes in FeatureScript is there an easy example?
Does that mean that you can use the Hole Callout command in drawings?1 -
Yes, that's the ideasebastian_glanzner said:Does that mean that you can use the Hole Callout command in drawings?
You can take a look in the std document at the Hole feature hole.fs and the holeAttribute.fs https://cad.onshape.com/documents/12312312345abcabcabcdeff/w/a855e4161c814f2e9ab3698a/e/5fcf48cb66a061fc3b60a0a3Un saludo,
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ún3 -
@emagdalenaC2i: Should I use the same link as the original from Sebasian, or did you create a separate feature script? If so, would you mind sharing the link?
Thank you0 -
Hi @nian_fuls641
We can not share that FeatureScript. Many of our FeatureScripts and libraries are exclusive to our Onshape customers.
I just can share that video so you can see how it works and possibly get some ideas, and give some feedback of a few improvements you can add to the original FS (or a new one, as I mentioned before I have not used the code of the Sebastian FS)
Un saludo,
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ún0 -
Thank you!0
-
@ivan_prohorov
I also made a tool for external threads and the option to switch between 2D and 3D threads:
https://forum.onshape.com/discussion/16744/new-featurescript-external-thread-2d-3d
0






