<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Grasshopper + Python json Addon in Parametric design</title>
    <link>https://community.graphisoft.com/t5/Parametric-design/Grasshopper-Python-json-Addon/m-p/273175#M410</link>
    <description>Thx, that looks promising, however it givs me an url error. &lt;BR /&gt;
&lt;BR /&gt;



&lt;BR /&gt;
Might be related to our IT restrictions but actually it should work ... any ideas?&lt;BR /&gt;
&lt;BR /&gt;
EDIT: OK, seems to only work when AC is not in Admin Mode while Rhino has to be running as admin.&lt;BR /&gt;</description>
    <pubDate>Tue, 19 Jan 2021 15:08:51 GMT</pubDate>
    <dc:creator>JSN</dc:creator>
    <dc:date>2021-01-19T15:08:51Z</dc:date>
    <item>
      <title>Grasshopper + Python json Addon</title>
      <link>https://community.graphisoft.com/t5/Parametric-design/Grasshopper-Python-json-Addon/m-p/273171#M406</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Is it possible to write custom GH python nodes that could  use archicad module?&lt;BR /&gt;
GH works on Ironpython 2.7.5 and 'archicad' python module works on python 3.7.&lt;BR /&gt;
Any ideas how to combine it?&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 11 May 2023 09:03:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Parametric-design/Grasshopper-Python-json-Addon/m-p/273171#M406</guid>
      <dc:creator>greg_lupo</dc:creator>
      <dc:date>2023-05-11T09:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Grasshopper + Python json Addon</title>
      <link>https://community.graphisoft.com/t5/Parametric-design/Grasshopper-Python-json-Addon/m-p/273172#M407</link>
      <description>I believe this is possible.&lt;BR /&gt;
You basically need to skip the official Python package and just do it "by hand".&lt;BR /&gt;
First result on google on the &lt;A href="https://discourse.mcneel.com/t/api-request-in-rhino-python/47945/6" target="_blank"&gt;Rhino forum&lt;/A&gt;.&lt;BR /&gt;
See also the &lt;A href="https://archicadapi.graphisoft.com/JSONInterfaceDocumentation/#Introduction" target="_blank"&gt;JSON interface docs&lt;/A&gt;.</description>
      <pubDate>Fri, 21 Aug 2020 12:31:43 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Parametric-design/Grasshopper-Python-json-Addon/m-p/273172#M407</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2020-08-21T12:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Grasshopper + Python json Addon</title>
      <link>https://community.graphisoft.com/t5/Parametric-design/Grasshopper-Python-json-Addon/m-p/273173#M408</link>
      <description>Has anybody made some progress with it so far, or can tell if it's worth the effort to try it out?</description>
      <pubDate>Tue, 19 Jan 2021 08:17:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Parametric-design/Grasshopper-Python-json-Addon/m-p/273173#M408</guid>
      <dc:creator>JSN</dc:creator>
      <dc:date>2021-01-19T08:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: Grasshopper + Python json Addon</title>
      <link>https://community.graphisoft.com/t5/Parametric-design/Grasshopper-Python-json-Addon/m-p/273174#M409</link>
      <description>I made a quick test a while ago, it worked fine. It's a json api call made from GH python component. As I dont have much time to work on this topic (and time goes on), let me share the piece of code with you. It just collect guid data for Archicad document (pretty dumb, don't expect anything fancy) but hopefully will guide someone on further developing useful logic. In theory this gives access to every function exposed in the JSON API from grasshopper (primarily attributes, drawing and views programmatical gets/sets)&lt;BR /&gt;

&lt;PRE&gt;__author__ = "leceta"
__version__ = "2020.03.27"

import json
import urllib2
if run:
    req = urllib2.Request('http://localhost:19723')
    response = urllib2.urlopen(req,json.dumps({"command":"API.GetAllElements"}).encode("UTF-8"))
    result = json.loads(response.read())
    id = []
    for element in result['result']['elements']:
        id.append(element['elementId']['guid'])
    result = [response]&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Jan 2021 13:40:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Parametric-design/Grasshopper-Python-json-Addon/m-p/273174#M409</guid>
      <dc:creator>leceta</dc:creator>
      <dc:date>2021-01-19T13:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Grasshopper + Python json Addon</title>
      <link>https://community.graphisoft.com/t5/Parametric-design/Grasshopper-Python-json-Addon/m-p/273175#M410</link>
      <description>Thx, that looks promising, however it givs me an url error. &lt;BR /&gt;
&lt;BR /&gt;



&lt;BR /&gt;
Might be related to our IT restrictions but actually it should work ... any ideas?&lt;BR /&gt;
&lt;BR /&gt;
EDIT: OK, seems to only work when AC is not in Admin Mode while Rhino has to be running as admin.&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Jan 2021 15:08:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Parametric-design/Grasshopper-Python-json-Addon/m-p/273175#M410</guid>
      <dc:creator>JSN</dc:creator>
      <dc:date>2021-01-19T15:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Grasshopper + Python json Addon</title>
      <link>https://community.graphisoft.com/t5/Parametric-design/Grasshopper-Python-json-Addon/m-p/273176#M411</link>
      <description>also of interest the next thread&lt;BR /&gt;
&lt;A href="https://archicad-talk.graphisoft.com/viewtopic.php?f=23&amp;amp;t=71977" target="_blank"&gt;&lt;/A&gt;&lt;S&gt;&lt;A href="https://archicad-talk.graphisoft.com/viewtopic.php?f=23&amp;amp;t=71977" target="_blank"&gt;&lt;/A&gt;&lt;A href="&amp;lt;/s&amp;gt;&amp;lt;LINK_TEXT text=&amp;quot;viewtopic.php?f=23&amp;amp;t=71977&amp;quot;&amp;gt;https://archicad-talk.graphisoft.com/viewtopic.php?f=23&amp;amp;t=71977&amp;lt;/LINK_TEXT&amp;gt;&amp;lt;e&amp;gt;"&gt;&lt;/A&gt;&lt;/S&gt;&lt;LINK_TEXT text="viewtopic.php?f=23&amp;amp;t=71977"&gt;https://archicad-talk.graphisoft.com/viewtopic.php?f=23&amp;amp;t=71977&lt;/LINK_TEXT&gt;&lt;E&gt;&lt;/E&gt;</description>
      <pubDate>Sat, 13 Feb 2021 09:39:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Parametric-design/Grasshopper-Python-json-Addon/m-p/273176#M411</guid>
      <dc:creator>leceta</dc:creator>
      <dc:date>2021-02-13T09:39:27Z</dc:date>
    </item>
  </channel>
</rss>

