Select from same body only

Hi everyone. This is such a great community.

I would like to know if NXOpen has the functionality to limit selection to the same body.

For example, if you use the "delete face" button, once you select a face you can only select faces of that solid body. Can you do the same in NXOpen for your own functions?

Essentially what I would like is to add this to the "extend sheet" button if possible so that when selecting sheet body edges, once you have selected one edge, it will not pick edges of other sheet bodies. Even better would be if this could be toggled.

If you need me to explain further or give examples of why I want this then just ask.

Thanks!

Limiting selection to a single body would not be too difficult. However, the NXOpen API does not let you invoke the standard dialogs shown in the interactive GUI, let alone modify them. I don't know a feasible way to add this functionality to an existing NX command. You would probably need to build your own dialog with the NX block styler to get the full functionality that you describe.