This is getting into a more data driven workflow that Rhino supports with Grasshopper. This allows for customization to your particular needs via a rich ecosystem of features and plugins.
or gathering all the text on a layer and getting their values
If this solution you are open to, these scripts and more are available in the grasshopper category.

