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

mohammad_sadil_khan
mohammad_sadil_khan Member Posts: 8 EDU
edited June 2024 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

  • Alex_Kempen
    Alex_Kempen Member Posts: 258 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.
    Software Developer at Epic Systems
    FRC Design Mentor - Team 1306 BadgerBots


  • mohammad_sadil_khan
    mohammad_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.

  • Alex_Kempen
    Alex_Kempen Member Posts: 258 EDU
    You might be able to hack something together with some combination of lastModifyingOperationId, qCreatedBy, qDependency, and qOwnedBy in a loop.
    Software Developer at Epic Systems
    FRC Design Mentor - Team 1306 BadgerBots