Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. 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

MBartlett21MBartlett21 Member, OS Professional, Developers Posts: 2,034 EDU
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:
Feature List:
Origin
Top
Front
Right
Sketch 1
Sketch 2
Profile
B:
qUnion([
    qCreatedBy(Origin),
    qCreatedBy(Top),
    qCreatedBy(Front),
    qCreatedBy(Right),
    qCreatedBy(Sketch 1),
    qCreatedBy(Sketch 2),
    qCreatedBy(Profile)
])
mb - draftsman - also FS author: View FeatureScripts
IR for AS/NZS 1100

Best Answer

Answers

  • MBartlett21MBartlett21 Member, OS Professional, Developers Posts: 2,034 EDU

    @lougallo Do you know?

    mb - draftsman - also FS author: View FeatureScripts
    IR for AS/NZS 1100
  • NeilCookeNeilCooke Moderator, Onshape Employees Posts: 5,307
    I imagine it would be but wouldn’t rely on it. What are you trying to do?
    Senior Director, Technical Services, EMEAI
  • MBartlett21MBartlett21 Member, OS Professional, Developers Posts: 2,034 EDU

    @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 like lastModifyingOperationId, but that gets the last id for all items passed to it.

    mb - draftsman - also FS author: View FeatureScripts
    IR for AS/NZS 1100
  • MBartlett21MBartlett21 Member, OS Professional, Developers Posts: 2,034 EDU

    Thankyou!

    mb - draftsman - also FS author: View FeatureScripts
    IR for AS/NZS 1100
Sign In or Register to comment.