How to get geometry by selected category

Hi all,

I am doing the Rhino inside script, trying to get selected categories for the value picker. But, is there a way to get the geometry of the selected one? Currently, query elements component will select all the walls instead of selected one.

You can Query Category, Query Types, Select the Type and then get Type Instances (which takes a filter if you wanted to refine further)

Thanks Japhy.