Select Text - Python Script

Is there any chance to select the text from a 3dm file using python scripting? I need to return all texts from a rhino file in a list. I know RhinoScript has that implemented, but I couldn’t find anything for PythonScripting.
Any help would be appreciated.
Thanks,
Tudor.

In Python scripting you have functions like GetDocumentData, GetDocumentUserText and GetUserText. Do none of those give you what you need? Which methods in RhinoScript are you missing?

I was looking at GetAttributeData. Will try the functions you’ve posted. Thanks.

Hi,
You can also try the TextObjectText function from rhinoscriptsyntax : http://4.rhino3d.com/5/ironpython/index.html

Thanks, that is what I was looking for.
Greetings,
Tudor