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.
Best Of
Re: Custom Feature: Query Variable+
some additional feedback @Derek_Van_Allen_BD:
I used your query Variable + in qAdjancy mode. I wanted to query a face AND all its adjacent faces. I think this is a common use for it. However the qAdjacent only queries the adjacents, and omits the seed faces. I had to add those by uniting with an additional query. It works, but it cumbersome and less robust. if i want to edit the seed faces, i'll have to edit them in two different places.
a simple boolean in the UI predicate would be nice:
annotation { "Name" : "Include seeds", "Default" : true }
definition.includeSeeds is boolean;
and a subsequent conditional qUnion in the function.
Re: Trouble with default values in feature script
If you are starting to write FeatureScript, get familiar with the standard library here:
https://cad.onshape.com/documents/12312312345abcabcabcdeff/v/abf8418eca794c31e027950d/e/87b09e244a234eb791b47826
It is documented here:
https://cad.onshape.com/FsDoc/library.html#module-valueBounds.fs
What you are looking for is the valueBounds.fs which describes the LengthBoundSpec @Matt_Shields helped you with but also the IntegerBoundSpec which is the next thing you are looking for.
Also take this course if you haven't already. It's not going to take you to the full depths of FeatureScript but it will get you started:
https://learn.onshape.com/courses/featurescript-fundamentals
I also strongly recommend getting a local repo of the Onshape std library. It makes searching much quicker:
https://github.com/javawizard/onshape-std-library-mirror
jnewth
Re: .... How do I 'Mate' RHS 50 x25 Pieces
Hey Keith. Welcome to Onshape. I'm guessing you mean that since the pieces are hollow a mate connector won't be available at the center of a piece's end. While selecting a point to place a mate connector on an end, when Onshape 'wakes up' locations to place the connector, hold down the shift key which tells Onshape to 'stay on this plane' and you can then move your cursor to the center which will 'wake up' a connector there. - Scotty
