【问题标题】:How do I interact with Google Docs (Sheets) from another scripting environment (VB.net within Grasshopper3d)?如何从另一个脚本环境(Grasshopper3d 中的 VB.net)与 Google Docs (Sheets) 交互?
【发布时间】:2012-11-18 05:08:47
【问题描述】:

我正在 Grasshopper(一个名为 Rhino 的 3D 建模程序的插件)中使用 VB.net(有时使用 c#)编写脚本,并且我想与 Google Docs 交互,特别是与电子表格应用程序交互。

我希望能够从 Grasshopper 发送数据以填充 Google 电子表格。 数据始终是数字或字符串。 我还想根据数据生成图表。

【问题讨论】:

    标签: google-docs-api grasshopper


    【解决方案1】:

    在 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

    [这应该是评论,但我还不能评论]

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-09-16
      • 2010-12-03
      • 2012-12-31
      • 2019-10-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多