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.
Prevent selecting origin point in Featurescript entity parameter
George_Anderson
Member Posts: 71 ✭✭
Is there a way to prevent the origin point from being selectable in a Featurescript entity parameter, while allowing other points created by opPoint to be selectable?
Roughly, I have a set of features where the user adds "points", manipulates them over the course of several features, and then I use them to generate a geometry. I create point objects with opPoint, and then I want these specific objects to be selectable in later features. When one of these points is coincident with the origin (which happens naturally in virtually every model), the origin always remains the top-most selectable object, and you have to know to right-click, "select other" to correctly select the special object.
One obvious but expensive way around is to always do evVertexPoint on every selection and see if it's at the origin, but I was hoping there might be a more logical/attribute based way.
Tagged:
0
Comments
www.virtualmold.com
If you do go this route, I would also check if definition.myQuery contains the origin in the feature body, and add an appropriate warning for that case as well.