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.
Problems with Patterning Holes
randy_young
Member Posts: 22 ✭✭
Hello All,
I'm attempting to pattern an unknown number of linear holes in a parametric part based upon the object's height (holes 2 inches apart, beginning and ending at least 4 inches from each end of the part. The math is simple : floor((#height-8in)/2) would give me the number to duplicate, but I can't seem to get this to work in a variable or propagate it to a linear feature with hole. Part of my problem seems to be that I'm trying to turn an object in inches into a unitless number but I can't find a function to allow that. I'm probably doing something stupid. Can someone direct me to the right way?
Thanks
I'm attempting to pattern an unknown number of linear holes in a parametric part based upon the object's height (holes 2 inches apart, beginning and ending at least 4 inches from each end of the part. The math is simple : floor((#height-8in)/2) would give me the number to duplicate, but I can't seem to get this to work in a variable or propagate it to a linear feature with hole. Part of my problem seems to be that I'm trying to turn an object in inches into a unitless number but I can't find a function to allow that. I'm probably doing something stupid. Can someone direct me to the right way?
Thanks
0
Comments
(#height - 8in) / (2 * inch)
You could also use the excellent "linear pattern plus" custom feature that lets you do this and more without having to do the math.
https://cad.onshape.com/documents/1196579d97167d7a348652a9/v/4c8563e8233b4395cd866e1a/e/eded24da9efe0d8bf1929410