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.

Options

How to retrieve all the feature ids used to generate a part in a part studio

mohammad_sadil_khanmohammad_sadil_khan Member Posts: 8 EDU
edited June 24 in FeatureScript
Hello,

Is there any way to know what features and sketches (by ids or names) are used to generate a part, given the part Id using featurescript? For example, in the image, When I click on part 1, Extrude 1 is automatically highlighted, which means it's saved somewhere.

Thank You.




Comments

  • Options
    Alex_KempenAlex_Kempen Member Posts: 247 EDU
    lastModifyingOperationId is ostensibly the way to do this, although I'm struggling to imagine a good FeatureScript use case for the functionality you're describing.
    CS Student at UT Dallas
    Alex.Kempen@utdallas.edu
    Check out my FeatureScripts here:



  • Options
    mohammad_sadil_khanmohammad_sadil_khan Member Posts: 8 EDU
    Thanks for your reply. I used lastModifyingOperationId and it gives only the final featureId. Can we backtrack using the final id and retreive all the the previous ones.

    The use case is that, in assembly, when we can load parts (e.g Part 1) from another part studio, I wanted to see the design history of Part 1 only.

  • Options
    Alex_KempenAlex_Kempen Member Posts: 247 EDU
    You might be able to hack something together with some combination of lastModifyingOperationId, qCreatedBy, qDependency, and qOwnedBy in a loop.
    CS Student at UT Dallas
    Alex.Kempen@utdallas.edu
    Check out my FeatureScripts here:



Sign In or Register to comment.