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.
Parametric value lead to erros, how to avoid/hide them
Hi,
I'm working on an open source parametric modular ant nest and I have some issues with the screws ⇒https://cad.onshape.com/documents/d7ddd3ac884f473f8009b440/w/5948ea134c8dfe00e7d1d0a3/e/66369f681059da7d13ac0da2?configuration=Height_factor%3D1.0%3BHumidier_port_2%3Dtrue%3BHumidifier_port_1%3Dtrue%3BHumidifier_port_3%3Dtrue%3BHumidifier_port_4%3Dtrue%3BHunting_area%3Dfalse%3BLength_factor%3D1.0%3BList_AWuUGQYah4Yfhm%3DDefault%3BPort_1%3Dtrue%3BPort_2%3Dtrue%3BPort_3%3Dtrue%3BPort_4%3Dtrue%3BPort_5%3Dtrue%3BPort_6%3Dtrue%3BPort_7%3Dtrue%3BPort_8%3Dtrue%3BWidth_factor%3D1.0%3Bhumidifier%3Dtrue&renderMode=0&uiState=66cca5f8ba93b51ede799ab2
The parameters allow to modify the size of the nest and the number of screws depend on the nest size.
Here is a big nest with all the possible screws on top of it :
When the size go down the points allowing to do the holes are merging, then of course It gives me errors on the hole features.
Here is the smallest configuration, in this case only the mandatory screws remain:
here are the errors in this case :
Depending on the configuration combination various features will break. As you can see the configuration still gives me a good result, but I would like to be able to remove the errors.
How could I make it?
Comments
You can Try/Catch the holes to avoid error conditions. Or you can build it into the logic not to generate certain holes depending on various other factors.
Wasn't there a feature script to address the best fitting of points (= hole centers) on any given curve, edge or line length with possibility to use min/max values for distance and overall count? I think that one would help here.
I can't, for the life of me, remember it's name, and since my FS pulldown reveals no other info but the name about all the FSs I have collected, I can't even identify it in my FS list. Did I mention we need a well designed FS library?
Are you talking about the "linear pattern plus" FS? In any case I think that one should help. I think you could pretty much do everything you want with variables but that feature does make things easier to setup.
https://cad.onshape.com/documents/1196579d97167d7a348652a9/v/4c8563e8233b4395cd866e1a/e/eded24da9efe0d8bf1929410
After the latest hole feature update, the feature brakes if you to configure the hole depth when using a threaded hole. This is breaking due to some editing logic they put it which is nice if you don't need your hole configured. A way around this is instead of a blind depth, make an up to entity depth (to a mate connector or plane), then configure then mate connector at the depth you want.
Learn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! Learn How to FeatureScript Here 🔴