<?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: Python lines and user input in Archicad Python API</title>
    <link>https://community.graphisoft.com/t5/Archicad-Python-API/Python-lines-and-user-input/m-p/574238#M921</link>
    <description>&lt;P&gt;Hi en,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for clarifying! So the 1st point doesn't necessary have to be connected to Archicad.&lt;BR /&gt;Anyway you can't really make GUIs with the Archicad Python API. So you'd have to look into something like tkinter or some other GUI framework to create the user input.&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;Bernd&lt;/P&gt;</description>
    <pubDate>Mon, 06 Nov 2023 09:40:17 GMT</pubDate>
    <dc:creator>BerndSchwarzenbacher</dc:creator>
    <dc:date>2023-11-06T09:40:17Z</dc:date>
    <item>
      <title>Python lines and user input</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Python-lines-and-user-input/m-p/572698#M911</link>
      <description>&lt;P&gt;Hi, I'm trying to set up a workflow using Python in Archicad, similar to something I did in Revit. However, I need some guidance on Python in Archicad, since my questions are not answered by the documentation.&lt;/P&gt;
&lt;P&gt;My workflow is as follows:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;user inputs an adress&lt;/LI&gt;
&lt;LI&gt;GET request using this adress to an API, which returns coordinates&lt;/LI&gt;
&lt;LI&gt;draw lines between the coordinates, or at least plot the points using the coordinates&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Step 2 is working as expected, but I cannot work out how to handle user input (1) and how to draw the lines or draw the points (3).&lt;/P&gt;
&lt;P&gt;Can someone help me? Or lead me to the right documentation?&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 10:18:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Python-lines-and-user-input/m-p/572698#M911</guid>
      <dc:creator>en1</dc:creator>
      <dc:date>2024-09-26T10:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Python lines and user input</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Python-lines-and-user-input/m-p/574028#M914</link>
      <description>&lt;P&gt;Hi en1,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What do you mean with "address" in your first and second point? Do you mean an element GUID or something else?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;About point 3: I assume you mean drawing lines in Archicad? Unfortunately there is no direct way to create any elements in Archicad with the Python API. So no lines or points either. The only way I know of is by creating an Add-On which would enable such commands to the Python API (See these two projects for how to create such an Add-On: &lt;A href="https://github.com/tlorantfy/archicad-additional-json-commands" target="_blank"&gt;https://github.com/tlorantfy/archicad-additional-json-commands&lt;/A&gt; and &lt;A href="https://github.com/tlorantfy/archicad-additional-json-commands" target="_blank"&gt;https://github.com/tlorantfy/archicad-additional-json-commands&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;Best,&lt;BR /&gt;Berntd&lt;/P&gt;</description>
      <pubDate>Sat, 04 Nov 2023 08:20:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Python-lines-and-user-input/m-p/574028#M914</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2023-11-04T08:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: Python lines and user input</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Python-lines-and-user-input/m-p/574225#M919</link>
      <description>&lt;P&gt;Hi Bernd,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the reply.&lt;/P&gt;&lt;P&gt;By an "address", I mean a physical address which consists of a street, a housenumber and a postal code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the pointers to the Add-On, I was unsure if it could be done with solely the Python API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 08:10:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Python-lines-and-user-input/m-p/574225#M919</guid>
      <dc:creator>en1</dc:creator>
      <dc:date>2023-11-06T08:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Python lines and user input</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Python-lines-and-user-input/m-p/574238#M921</link>
      <description>&lt;P&gt;Hi en,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for clarifying! So the 1st point doesn't necessary have to be connected to Archicad.&lt;BR /&gt;Anyway you can't really make GUIs with the Archicad Python API. So you'd have to look into something like tkinter or some other GUI framework to create the user input.&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;Bernd&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 09:40:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Python-lines-and-user-input/m-p/574238#M921</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2023-11-06T09:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Python lines and user input</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Python-lines-and-user-input/m-p/574582#M929</link>
      <description>&lt;P&gt;Thank you for the help Bernd.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to read and write files in the (embedded) library using Python? Then I can create a workaround using GDL instead of creating an Add-On.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 08:55:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Python-lines-and-user-input/m-p/574582#M929</guid>
      <dc:creator>en1</dc:creator>
      <dc:date>2023-11-08T08:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Python lines and user input</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Python-lines-and-user-input/m-p/574665#M931</link>
      <description>&lt;P&gt;Unfortunately that's also not possible directly with the Python API.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 14:08:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Python-lines-and-user-input/m-p/574665#M931</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2023-11-08T14:08:24Z</dc:date>
    </item>
  </channel>
</rss>

