<?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: Create Properties in Python in Archicad Python API</title>
    <link>https://community.graphisoft.com/t5/Archicad-Python-API/Create-Properties-in-Python/m-p/354972#M228</link>
    <description>&lt;P&gt;Eh, I agree with you: I used to have a lot of expectations about the possibility that a Python API could provide to users...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my opinion this could be a good way to let "Geek" users or technicians provide new features to Archicad (especially localised ones, that are generally never implemented in a software that is sold in more than 100 countries like AC)...&lt;/P&gt;&lt;P&gt;But in the end it seems like they decided that Python is useful just to edit some properties, what a pity!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks anyway for your suggestion: I'll try to use the add-on you provided to understand how it works!&lt;/P&gt;</description>
    <pubDate>Fri, 02 Sep 2022 10:54:14 GMT</pubDate>
    <dc:creator>Sq_TMO</dc:creator>
    <dc:date>2022-09-02T10:54:14Z</dc:date>
    <item>
      <title>Create Properties in Python</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Create-Properties-in-Python/m-p/351078#M223</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just stared studying Archicad module for Python and I'm not sure if it's my fault but I can't construct new properties.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from Archicad import ACConnection 

conn = ACConnection.connect()
assert conn

acc=conn.commands
act=conn.types
acu=conn.utilities

group_test = act.PropertyGroup("__Test Group__")

prop_test=act.PropertyDefinition(group_test, "__Test New Property__", "an expectant trial")

print(prop_test)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the result seems to be interesting if I take a look at the Python Palette:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Schermata 2022-07-27 alle 17.22.02.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/28221iA1DBCB00122642B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Schermata 2022-07-27 alle 17.22.02.png" alt="Schermata 2022-07-27 alle 17.22.02.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But in the end no property is created...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I wrong somewhere?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 15:34:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Create-Properties-in-Python/m-p/351078#M223</guid>
      <dc:creator>Sq_TMO</dc:creator>
      <dc:date>2022-07-27T15:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Create Properties in Python</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Create-Properties-in-Python/m-p/351185#M224</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With your script you only created python objects of the classes "PropertyGroup" and "PropertyDefinition". I think that there are unfortunately no Python/JSON command to create Properties in Archicad.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think only values of properties can be changed via the Python interface. (&lt;A href="https://archicadapi.Graphisoft.com/JSONInterfaceDocumentation/#SetPropertyValuesOfElements" target="_blank"&gt;https://archicadapi.Graphisoft.com/JSONInterfaceDocumentation/#SetPropertyValuesOfElements&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best, Bernd&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 08:40:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Create-Properties-in-Python/m-p/351185#M224</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2022-07-28T08:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Create Properties in Python</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Create-Properties-in-Python/m-p/352906#M225</link>
      <description>&lt;P&gt;The C++ API allows a Add-ON to perform these functions. So they are available to any Python script through the Python API function CommandHandler. But that requires a API Add-On interface. I have created such a interface which is available on my GitHub site.&lt;/P&gt;&lt;P&gt;Check out the video:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=uhp6LnyyduA" target="_self"&gt;Properties within Python Scripts&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Available only for the Python API 26.3000, Windows OS, and Archicad 26.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would be interested in any application you might have in mind? Why do you think it necessary to have this feature within Python scripts, when you have this capability natively in Archicad?&lt;/P&gt;</description>
      <pubDate>Sat, 13 Aug 2022 09:56:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Create-Properties-in-Python/m-p/352906#M225</guid>
      <dc:creator>poco2013</dc:creator>
      <dc:date>2022-08-13T09:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Create Properties in Python</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Create-Properties-in-Python/m-p/354712#M226</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/7804"&gt;@poco2013&lt;/a&gt;, sorry for the late in answer!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It was just an attempt to understand the borders of python API:&lt;/P&gt;&lt;P&gt;when you provide a script to a colleague or a customer that use to write some data in certain properties, it's quite frequent that those properties you want to overwrite are not actually part of the standard template.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I saw your video the very same week you published it, but I was trying to figure out if it was possible to do that kind of stuff without an external add-on...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But in the end it seems like you can create more or less nothing from scratch with Python APIs: you can just modify existing properties or elements in the navigator.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks anyway for your answer!&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 10:48:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Create-Properties-in-Python/m-p/354712#M226</guid>
      <dc:creator>Sq_TMO</dc:creator>
      <dc:date>2022-08-31T10:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Create Properties in Python</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Create-Properties-in-Python/m-p/354839#M227</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/25714"&gt;@Sq_TMO&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/7804"&gt;@poco2013&lt;/a&gt;, sorry for the late in answer!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I saw your video the very same week you published it, but I was trying to figure out if it was possible to do that kind of stuff without an external add-on...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But in the end it seems like you can create more or less nothing from scratch with Python APIs: you can just modify existing properties or elements in the navigator.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks anyway for your answer!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;P&gt;I understand the reluctance to use a AddOn. but understand that Archicad itself is one big AddOn. If you look in your AddOn folder, there are probably 50+ AddOns plus many dlls which are just AddOns. The Python feature itself is just another AddOn. AddOns do not slow the program down as they are only loaded when needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I expect that it would be near impossible to duplicate the C++ API in Python scripts. I am trying to demo the fact that Python can be extended by the user(s) and that, once extended, is immensely easier and more versatile than a standard C++ compiled script. My forlorn hope is that Graphisoft would develop a library of Python AddOns so that users can "pick and choose" the capabilities that they want to see in Python script(s).&amp;nbsp; A duplication of the C++ API example files in Python would be a good start.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately, it seems that, of late, Graphisoft has relocated Python to the Goodies bin, rather than as a feature. It remains for the 'Community'&amp;nbsp; to resolve this as long as their AddOns are thoroughly tested and documentation is clear. This is where Graphisoft could help and benefit but is not interested. Soooooo -- up to us?????&lt;/P&gt;
&lt;DIV class=""&gt;Gerry&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 02 Sep 2022 21:50:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Create-Properties-in-Python/m-p/354839#M227</guid>
      <dc:creator>poco2013</dc:creator>
      <dc:date>2022-09-02T21:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Create Properties in Python</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Create-Properties-in-Python/m-p/354972#M228</link>
      <description>&lt;P&gt;Eh, I agree with you: I used to have a lot of expectations about the possibility that a Python API could provide to users...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my opinion this could be a good way to let "Geek" users or technicians provide new features to Archicad (especially localised ones, that are generally never implemented in a software that is sold in more than 100 countries like AC)...&lt;/P&gt;&lt;P&gt;But in the end it seems like they decided that Python is useful just to edit some properties, what a pity!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks anyway for your suggestion: I'll try to use the add-on you provided to understand how it works!&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 10:54:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Create-Properties-in-Python/m-p/354972#M228</guid>
      <dc:creator>Sq_TMO</dc:creator>
      <dc:date>2022-09-02T10:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Create Properties in Python</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Create-Properties-in-Python/m-p/382709#M229</link>
      <description>&lt;P&gt;Hi poco2013!&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;'m an architect and i'm trying to explore the archicad-python connection for some projects.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I have tried several methods to create elements in archicad via python, but the only solution seems to be editing the related .XML file&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I would be very interested in your Add-ON to integrate pyrhon functions in Archicad, but I can't access the youtube video you uploaded.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;How can I access it?&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;A thousand thanks&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 08:56:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Create-Properties-in-Python/m-p/382709#M229</guid>
      <dc:creator>pxel_tech</dc:creator>
      <dc:date>2023-06-08T08:56:48Z</dc:date>
    </item>
  </channel>
</rss>

