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.
Non linear pattern - featurescript needed?
frank_ring
Member Posts: 44 ✭✭
I should generate a non-linear pattern where each distance is increased by a value (variable). E.g. first distance: 10 mm second distance 10+5, etc., where the "5" could be a variable.
The result could look like this: 0 - 10 - 25 - 45 ....
Is there a featurescript which does the job?
0
Best Answers
-
See second video here https://forum.onshape.com/discussion/2675/improvements-to-onshape-february-11th-2016/p1Senior Director, Technical Services, EMEA1
-
@NeilCooke great video!
@frank_ring the short of it is that the second variable definitions are defined as #previous_value + some_number, so each time the feature is evaluated in the pattern, the variable is incremented. By including the variable update features in the pattern, the variables are changed on each "loop" through the previous features, driving the interesting spacing. Let me know if you'd like some more clarification!
Get in touch: contact@alnis.dev | My personal site: https://alnis.dev
@alnis is my personal account. @alnis_ptc is my official PTC account.0
Answers
-
There is Point Pattern. Drop sketch points in whatever random location you want patterned and feed the sketch into this FS. Parametric Sketch Pattern works similarly, but it will update the pattern when the driving sketch is updated.1
-
You can pattern variables, so if you do something like:
- Define variable(s)
- Features depending on variable
- Update variable(s) as a function of their values
- Pattern features 2 and 3 with apply per instance enabled and zero distance
https://cad.onshape.com/documents/b36835e0b8c5c0ae67603156/w/e055f55f4098317ec7891d23/e/af25df1e4390c6076a7062f8
To quote Thanos:
Get in touch: contact@alnis.dev | My personal site: https://alnis.dev
@alnis is my personal account. @alnis_ptc is my official PTC account.2 -
How often would you need this feature? If not very often, Mahir's solution is great. If you are doing this all the time, a custom feature could save lots of time.
@alnis_smidchens - Genius
I did not know Onshape could do that!
RENDERCAD
rendercad.ai - Photorealistic product rendering.
▚▞▚▞▚▞▚▞▚
________________________________________________________________________1 -
Thank you, that are very helpful tips!@alnis_smidchens - What is not clear to me is the process, how Onshape calculates the variables (circled in red) in the feature pattern.
Maybe you can explain it in this example.
0 -
See second video here https://forum.onshape.com/discussion/2675/improvements-to-onshape-february-11th-2016/p1Senior Director, Technical Services, EMEA1
-
@NeilCooke great video!
@frank_ring the short of it is that the second variable definitions are defined as #previous_value + some_number, so each time the feature is evaluated in the pattern, the variable is incremented. By including the variable update features in the pattern, the variables are changed on each "loop" through the previous features, driving the interesting spacing. Let me know if you'd like some more clarification!
Get in touch: contact@alnis.dev | My personal site: https://alnis.dev
@alnis is my personal account. @alnis_ptc is my official PTC account.0 -
Now everything is clear - thank's a lot for your explanations
0




