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
MBartlett21
Member, OS Professional, Developers Posts: 2,050 ✭✭✭✭✭
Are PartStudioData Queries (for the full part studio) in order of the history of that part studio?
Basically, for a given part studio A, will the full part studio's query in a PartStudioData be semantically equivalent to B?
A:
Basically, for a given part studio A, will the full part studio's query in a PartStudioData be semantically equivalent to B?
A:
Feature List:
B:Origin
Top
Front
Right
Sketch 1
Sketch 2
Profile
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) ])
0
Best Answer
-
lana Onshape Employees Posts: 706
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
@lougallo Do you know?
IR for AS/NZS 1100
@NeilCooke
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.IR for AS/NZS 1100
@MBartlett21
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 .
Thankyou!
IR for AS/NZS 1100