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.
Constraint to origin missing query
roth_vann
Member Posts: 5 ✭
Hi, I am noticing that the sketch constraints to the origin have an empty queryString. Additionally when adding a feature with the queryString filled-out it is also resolved as empty. This is not an issue other than the fact that the constraint is always broken(has a missing external reference) when adding this to a document. I thought it was a quirk that the origin query was missing but this seems like a bug?
This is the returned feature from Onshape:
This is the returned feature from Onshape:
"constraintType":"COINCIDENT",
"parameters":[
{
"btType":"BTMParameterString-149",
"value":"5dylh3chxYOD.bottom.start",
"nodeId":"Mh29PU+4u7pBsJveN",
"parameterId":"localFirst"
},
{
"btType":"BTMParameterQueryList-148",
"queries":[
{
"btType":"BTMIndividualQuery-138",
"queryStatement":null,
"queryString":"",
"nodeId":"MaznaeZfAQ7eJUMMf"
}
],
"nodeId":"MX39GC7Rb2hhjwaHT",
"parameterId":"externalSecond"
}
],
This is the feature added to Onshape:
This is the feature added to Onshape:
"constraintType":"COINCIDENT",
"entityId":"5dylh3chxYOD.firstSnap0",
"parameters":[
{
"btType":"BTMParameterString-149",
"value":"5dylh3chxYOD.bottom.start",
"parameterId":"localFirst"
},
{
"btType":"BTMParameterQueryList-148",
"queries":[
{
"btType":"BTMIndividualQuery-138",
"queryStatement":null,
"queryString":"query=qCreatedBy(makeId('Origin'));"
}
],
"parameterId":"externalSecond"
}
]
This is what is resolved from Onshape:
This is what is resolved from Onshape:
{
"btType" : "BTMSketchConstraint-2",
"hasOffsetData1" : false,
"offsetOrientation1" : false,
"offsetDistance1" : 0.0,
"hasOffsetData2" : false,
"offsetOrientation2" : false,
"offsetDistance2" : 0.0,
"hasPierceParameter" : false,
"pierceParameter" : 0.0,
"helpParameters" : [ ],
"constraintType" : "COINCIDENT",
"parameters" : [ {
"btType" : "BTMParameterString-149",
"value" : "5dylh3chxYOD.bottom.start",
"nodeId" : "MPUUkF/b+1ibtBh7X",
"parameterId" : "localFirst"
}, {
"btType" : "BTMParameterQueryList-148",
"queries" : [ {
"btType" : "BTMIndividualQuery-138",
"queryStatement" : null,
"queryString" : "",
"nodeId" : "MLH9QZPXgcdNHHYcQ"
} ],
"nodeId" : "MjekA6JlnXxwidqBi",
"parameterId" : "externalSecond"
} ],
"namespace" : "",
"nodeId" : "MN6n4uw66UUYT8sCc",
"entityId" : "5dylh3chxYOD.firstSnap0"
},
0