【发布时间】:2012-11-18 05:08:47
【问题描述】:
我正在 Grasshopper(一个名为 Rhino 的 3D 建模程序的插件)中使用 VB.net(有时使用 c#)编写脚本,并且我想与 Google Docs 交互,特别是与电子表格应用程序交互。
我希望能够从 Grasshopper 发送数据以填充 Google 电子表格。 数据始终是数字或字符串。 我还想根据数据生成图表。
【问题讨论】:
标签: google-docs-api grasshopper
我正在 Grasshopper(一个名为 Rhino 的 3D 建模程序的插件)中使用 VB.net(有时使用 c#)编写脚本,并且我想与 Google Docs 交互,特别是与电子表格应用程序交互。
我希望能够从 Grasshopper 发送数据以填充 Google 电子表格。 数据始终是数字或字符串。 我还想根据数据生成图表。
【问题讨论】:
标签: google-docs-api grasshopper
在 GH 网站上this thread 底部有一个解决方案。
.. 这是 reading 的解决方案,它应该在 python 中工作,因为使用 c# 需要你使用其他库。
您需要先将电子表格发布为 csv。
import urllib2
myUrl="https://docs.google.com/spreadsheet/pub?key=0AgIWT_wqd-VmdE1NekRSWFZoUnBQdWJhYUhwcU1vclE&single=true&gid=0&output=csv"
response = urllib2.urlopen(myUrl)
print response.read()
Here's a working GH implementation
[这应该是评论,但我还不能评论]
【讨论】: