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.
Implicit mate fails, then works
EvanReese
Member, Mentor Posts: 2,135 ✭✭✭✭✭
I'm still trying to get implicit mate connectors working for Freeform Spline. I'm having an issue like this: When an implicit mate connector is selected, it just says "missing entity" and fails, but if I click again, it works. A few things I've noticed:
- It only happens if the XYZ values of the active point are not zero. The first click re-sets them to zero, then the second click works.
- When the definition is returned by an Editing Logic Function, all of the implicit mate connectors in the feature go from saying "Mate Connector" to "Part of Mate Connector" and the query type goes from "queryType : CREATED_BY" to "queryType : DUMMY".
Evan Reese
0
Answers
Selecting a mate connector, then adding or deleting an array item causes any selected mate connector queries to get turned into Part of Mate Connector dummy queries. The cause of this is the following statement in the editing logic:
I also figured out the code which is causing the mate connector to immediately turn red and become invalid when selected. It's this piece of code here:
I know both of these segments of code are the problems causing their respective issues because if you place a "return definition" statement before them, the issue doesn't occur. If you put it after them, it does. As to why these sections of code are causing problems specifically, I really can't say. Maybe someone who works for Onshape can shed some more light?
After trying to make the simplest possible recreation of the issue, it seems like implicit Mate Connectors inside array parameters get converted into dummy queries any time the editing logic function returns the definition, regardless of whether or not it changed anything about the implicit Mate Connector selection. It only does it when the Mate Connector selection is in an array param, not if it's just a normal query param. Here's that test feature. When I click the boolean to "invoke editing logic" all it does is change the string param from "NOT EDITED" to "EDITED" and return the definition, but you can see I'm still getting the dummy query. I think if that's all that happened in Freeform Spline, it would be a nuisance, since you can no longer click the icon to edit the Mate Connector, but I suspect this is part of what's causing it to fail on the first click too, which is a bigger issue. Does anyone at Onshape have an explanation and, better yet, a workaround?
Unfortunately, it seems like this is a bug which is here to stay, at least for a little while.