Select dimensions with grasshopper

Recently i have been working on gh to automatically process with dimensions. And I wonder if there is any way to select all the dimensions created in gh with c#. I think there must be API for this but it hasn’t been found yet. I know there is a _seldim function in Rhino.

thanks for you guys anyway.