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.
PartStudioData Queries
Basically, for a given part studio A, will the full part studio's query in a PartStudioData be semantically equivalent to B?
A:
Top
Front
Right
Sketch 1
Sketch 2
Profile
qUnion([
qCreatedBy(Origin),
qCreatedBy(Top),
qCreatedBy(Front),
qCreatedBy(Right),
qCreatedBy(Sketch 1),
qCreatedBy(Sketch 2),
qCreatedBy(Profile)
]) Best Answer
-
The answer is "Yes". While evaluation of qUnion will preserve the order of the entries in the array, evaluation of any other query will return results in order of the last topology modification .
5
Answers
-
-
I imagine it would be but wouldn’t rely on it. What are you trying to do?Senior Director, Technical Services, EMEA0
-
In my beams feature, with the custom profile, I have the option of choosing a whole part studio, and I want it to use the last sketch in the feature list. Due to how the profiles work, I then need to get the last modifying id of the sketches. I was using
lastModifyingOperationId, but it only gets the last id for the first item in the queries passed to it. What I would like to have is something likelastModifyingOperationId, but that gets the last id for all items passed to it.0 -
The answer is "Yes". While evaluation of qUnion will preserve the order of the entries in the array, evaluation of any other query will return results in order of the last topology modification .
5 -


