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 connectors act differently than explicit ones
EvanReese
Member, Mentor Posts: 2,135 ✭✭✭✭✭
I'm trying to troubleshoot an issue with Freeform Spline that prevents use of implicit mate connectors. Explicit ones made by the Mate Connector feature work as expected.
I've fiddled with a number of things and I think it has something to do with the editing logic function or UIHint.MATCH_LAST_ARRAY_ITEM or a combination of both. In some experiments in a very simplified test featurescript I can see that when I first select an implicit mate connector, it works fine, but when I do something to somehow invoke the editing logic and return the definition, my implicit mate connectors go from
queryType : UNION , subqueries : [ { bodyType : [ MATE_CONNECTOR ] , queryType : BODY_TYPE , subquery : { entityType : BODY , featureId : [ FfIsGModT0M1mWG ] , queryType : CREATED_BY } } ] }
to
{ queryType : UNION , subqueries : [ { entityType : BODY , historyType : CREATION , operationId : [ FfIsGModT0M1mWG.mateConnectorOp ] , queryType : DUMMY } ] }
What's going on here and is it something I can fix? What's a dummy query?
Other strange things happen too, like sometimes when I select an implicit mate it just says "missing entity", or looks fine, but doesn't place the point at the origin. It's possible that my feral code upbringing has created poor habits and I have just gotten myself tangled up in my spaghetti code. Any help is appreciated.
I've fiddled with a number of things and I think it has something to do with the editing logic function or UIHint.MATCH_LAST_ARRAY_ITEM or a combination of both. In some experiments in a very simplified test featurescript I can see that when I first select an implicit mate connector, it works fine, but when I do something to somehow invoke the editing logic and return the definition, my implicit mate connectors go from
queryType : UNION , subqueries : [ { bodyType : [ MATE_CONNECTOR ] , queryType : BODY_TYPE , subquery : { entityType : BODY , featureId : [ FfIsGModT0M1mWG ] , queryType : CREATED_BY } } ] }
to
{ queryType : UNION , subqueries : [ { entityType : BODY , historyType : CREATION , operationId : [ FfIsGModT0M1mWG.mateConnectorOp ] , queryType : DUMMY } ] }
What's going on here and is it something I can fix? What's a dummy query?
Other strange things happen too, like sometimes when I select an implicit mate it just says "missing entity", or looks fine, but doesn't place the point at the origin. It's possible that my feral code upbringing has created poor habits and I have just gotten myself tangled up in my spaghetti code. Any help is appreciated.
Evan Reese
0
Answers
I hope this helps!
I'd still like to know what a dummy query is, though. Anybody?
BTW, I will be at the FeatureScript networking session tomorrow with Kevin and Lana (who knows more about FS queries, especially automatically generated ones, than anyone else).