API - Blocks inside blocks

I see the ISketchBlockDefinition and ISketchBlockInstance interfaces that one can use to get information about blocks including gettings Arcs, Lines, ect. What about when there is a block inside a block? I do not see anywhere in the API on getting blocks inside blocks.

I know that I can make blocks nested. Here is an example in a feature tree:


​​​​​​​

Using the API how can we tell is a block is inside a block? I would expect it to be in the block definition interface?


Comments 1
ES
ES 2021-09-13

I think in principal I figured out part of how to do this. It looks like a block is part of the feature tree.Perhaps I can traverse the feature tree and if there is a sketch then check to see if the sketch has block children. If it does then check the block for children and so on. Seems like there is a way here to build a tree of blocks inside blocks.