<?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: Referencing ARCHICAD geometry through Python or C# in Parametric design</title>
    <link>https://community.graphisoft.com/t5/Parametric-design/Referencing-ARCHICAD-geometry-through-Python-or-C/m-p/235887#M991</link>
    <description>I guess he was trying to activate remotely (using Human UI generated forms) an archicad component´s menu item.</description>
    <pubDate>Mon, 03 Sep 2018 20:59:01 GMT</pubDate>
    <dc:creator>leceta</dc:creator>
    <dc:date>2018-09-03T20:59:01Z</dc:date>
    <item>
      <title>Referencing ARCHICAD geometry through Python or C#</title>
      <link>https://community.graphisoft.com/t5/Parametric-design/Referencing-ARCHICAD-geometry-through-Python-or-C/m-p/235883#M987</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hi!&lt;BR /&gt;
I'm looking for a way to activate/simulate the "Set one 2D curve in ARCHICAD" through Python or C#.&lt;BR /&gt;
Anyone familiar with the Grasshopper.Kernel SDK  &lt;A href="https://developer.rhino3d.com/wip/api/grasshopper/html/723c01da-9986-4db2-8f53-6f3a7494df75.htm" target="_blank"&gt;&lt;/A&gt;&lt;S&gt;&lt;A href="https://developer.rhino3d.com/wip/api/grasshopper/html/723c01da-9986-4db2-8f53-6f3a7494df75.htm" target="_blank"&gt;&lt;/A&gt;&lt;A href="&amp;lt;/s&amp;gt;&amp;lt;LINK_TEXT text=&amp;quot;https://developer.rhino3d.com/wip/api/g ... 94df75.htm&amp;quot;&amp;gt;https://developer.rhino3d.com/wip/api/grasshopper/html/723c01da-9986-4db2-8f53-6f3a7494df75.htm&amp;lt;/LINK_TEXT&amp;gt;&amp;lt;e&amp;gt;" target="_blank"&gt;&lt;/A&gt;&lt;/S&gt;&lt;LINK_TEXT text="https://developer.rhino3d.com/wip/api/g ... 94df75.htm"&gt;&lt;A href="https://developer.rhino3d.com/wip/api/grasshopper/html/723c01da-9986-4db2-8f53-6f3a7494df75.htm" target="_blank"&gt;https://developer.rhino3d.com/wip/api/grasshopper/html/723c01da-9986-4db2-8f53-6f3a7494df75.htm&lt;/A&gt;&lt;/LINK_TEXT&gt;&lt;E&gt;&lt;/E&gt; and know how to prompt this command?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Explaination:&lt;BR /&gt;
1. User clicks the toogle button and send a "True" boolean to Python/C# script&lt;BR /&gt;
2. Python/C# component triggers the "Set one 2D curve in ARCHICAD" for selected component&lt;BR /&gt;
3. User is directed to ARCHICAD to select one curve (same as happens when you right click on component and selects "Set one 2D curve in ARCHICAD"&lt;BR /&gt;
&lt;BR /&gt;
I've been reding about controlling grasshopper components through code here:&lt;BR /&gt;
&lt;A href="http://james-ramsden.com/grasshopper-without-wires-transmit-data-to-any-component/" target="_blank"&gt;&lt;/A&gt;&lt;S&gt;&lt;A href="http://james-ramsden.com/grasshopper-without-wires-transmit-data-to-any-component/" target="_blank"&gt;&lt;/A&gt;&lt;A href="&amp;lt;/s&amp;gt;&amp;lt;LINK_TEXT text=&amp;quot;http://james-ramsden.com/grasshopper-wi ... component/&amp;quot;&amp;gt;http://james-ramsden.com/grasshopper-without-wires-transmit-data-to-any-component/&amp;lt;/LINK_TEXT&amp;gt;&amp;lt;e&amp;gt;" target="_blank"&gt;&lt;/A&gt;&lt;/S&gt;&lt;LINK_TEXT text="http://james-ramsden.com/grasshopper-wi ... component/"&gt;&lt;A href="http://james-ramsden.com/grasshopper-without-wires-transmit-data-to-any-component/" target="_blank"&gt;http://james-ramsden.com/grasshopper-without-wires-transmit-data-to-any-component/&lt;/A&gt;&lt;/LINK_TEXT&gt;&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;A href="http://james-ramsden.com/read-and-edit-persistent-data-in-grasshopper-components/" target="_blank"&gt;&lt;/A&gt;&lt;S&gt;&lt;A href="http://james-ramsden.com/read-and-edit-persistent-data-in-grasshopper-components/" target="_blank"&gt;&lt;/A&gt;&lt;A href="&amp;lt;/s&amp;gt;&amp;lt;LINK_TEXT text=&amp;quot;http://james-ramsden.com/read-and-edit- ... omponents/&amp;quot;&amp;gt;http://james-ramsden.com/read-and-edit-persistent-data-in-grasshopper-components/&amp;lt;/LINK_TEXT&amp;gt;&amp;lt;e&amp;gt;" target="_blank"&gt;&lt;/A&gt;&lt;/S&gt;&lt;LINK_TEXT text="http://james-ramsden.com/read-and-edit- ... omponents/"&gt;&lt;A href="http://james-ramsden.com/read-and-edit-persistent-data-in-grasshopper-components/" target="_blank"&gt;http://james-ramsden.com/read-and-edit-persistent-data-in-grasshopper-components/&lt;/A&gt;&lt;/LINK_TEXT&gt;&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
Anyone who can help me out with this?&lt;BR /&gt;
Thanks!&lt;BR /&gt;

&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 11 May 2023 09:08:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Parametric-design/Referencing-ARCHICAD-geometry-through-Python-or-C/m-p/235883#M987</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-11T09:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing ARCHICAD geometry through Python or C#</title>
      <link>https://community.graphisoft.com/t5/Parametric-design/Referencing-ARCHICAD-geometry-through-Python-or-C/m-p/235884#M988</link>
      <description>a parallel conversation is going on at McNeel's forum:&lt;BR /&gt;
&lt;A href="https://discourse.mcneel.com/t/programatically-launch-components-menu-item/69224/6" target="_blank"&gt;&lt;LINK_TEXT text="https://discourse.mcneel.com/t/programa ... em/69224/6"&gt;https://discourse.mcneel.com/t/programatically-launch-components-menu-item/69224/6&lt;/LINK_TEXT&gt;&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Ideally, someone here could give us some insight into the matter... I'm getting stuck with the exercise.&lt;BR /&gt;
&lt;BR /&gt;
thanks</description>
      <pubDate>Wed, 22 Aug 2018 17:57:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Parametric-design/Referencing-ARCHICAD-geometry-through-Python-or-C/m-p/235884#M988</guid>
      <dc:creator>leceta</dc:creator>
      <dc:date>2018-08-22T17:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing ARCHICAD geometry through Python or C#</title>
      <link>https://community.graphisoft.com/t5/Parametric-design/Referencing-ARCHICAD-geometry-through-Python-or-C/m-p/235885#M989</link>
      <description>TOPIC IS SOLVED OVER AT DISCOURSE&lt;BR /&gt;
&lt;BR /&gt;
Here's the python code:
&lt;PRE&gt;#Import libraries
import Grasshopper
import System

#Declare variables for Component Name &amp;amp; Menu Event
compName = "2DC"
menuEvent = "Set one 2D curve in ARCHICAD"

#Loop over objects in active document
for obj in Grasshopper.Instances.ActiveCanvas.Document.Objects:
    if obj.NickName == compName:
        menu = System.Windows.Forms.ToolStripDropDown()
        obj.AppendMenuItems(menu)

        for item in menu.Items:
            if item.Text == menuEvent:
                item.PerformClick()&lt;/PRE&gt;</description>
      <pubDate>Sat, 25 Aug 2018 07:47:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Parametric-design/Referencing-ARCHICAD-geometry-through-Python-or-C/m-p/235885#M989</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-25T07:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing ARCHICAD geometry through Python or C#</title>
      <link>https://community.graphisoft.com/t5/Parametric-design/Referencing-ARCHICAD-geometry-through-Python-or-C/m-p/235886#M990</link>
      <description>Hi, nice to see new faces working with GH Connection &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt;&lt;BR /&gt;
Did it actually work? &lt;BR /&gt;
What are you trying to do? Loop over element between AC and GH?</description>
      <pubDate>Mon, 27 Aug 2018 14:22:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Parametric-design/Referencing-ARCHICAD-geometry-through-Python-or-C/m-p/235886#M990</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-27T14:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing ARCHICAD geometry through Python or C#</title>
      <link>https://community.graphisoft.com/t5/Parametric-design/Referencing-ARCHICAD-geometry-through-Python-or-C/m-p/235887#M991</link>
      <description>I guess he was trying to activate remotely (using Human UI generated forms) an archicad component´s menu item.</description>
      <pubDate>Mon, 03 Sep 2018 20:59:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Parametric-design/Referencing-ARCHICAD-geometry-through-Python-or-C/m-p/235887#M991</guid>
      <dc:creator>leceta</dc:creator>
      <dc:date>2018-09-03T20:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing ARCHICAD geometry through Python or C#</title>
      <link>https://community.graphisoft.com/t5/Parametric-design/Referencing-ARCHICAD-geometry-through-Python-or-C/m-p/235888#M992</link>
      <description>This  is exactly what I'm looking for. I'm trying to set up a Human Interface for a GH-Archihcad connection script. And I need a *Set Curve in Archicad * button. (Also a set multiple  windows button) Thing is I'm no good with Python. Any chance you could share your script?</description>
      <pubDate>Fri, 09 Aug 2019 06:54:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Parametric-design/Referencing-ARCHICAD-geometry-through-Python-or-C/m-p/235888#M992</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-09T06:54:56Z</dc:date>
    </item>
  </channel>
</rss>

