Rhino - Python script output

Dear Sirs,

Can someone give me any advise how to obtain python script results in output other than internal Python script editor. For example I want to get tabulated data of object volume and it’s center of gravity in table in MS Word or something similar to output from massproperties command in Rhino.
Any link to reference guidance or any book will be appreciated.
I have tried to intsall python-docx, and it perfectly works on VSCode, transferring data to MSWord, but unfortunately import docx command did not work in internal Python script editor.

You can write text or csv files directly out of Python with file.Open(), file.write() etc… Check the Python docs for how to use this stuff.

Some samples:

2 Likes

Thank you very much! I will read it.