<?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 New Python utility Function in Archicad Python API</title>
    <link>https://community.graphisoft.com/t5/Archicad-Python-API/New-Python-utility-Function/m-p/323231#M132</link>
    <description>&lt;P&gt;The Present Python API is quite limited in its Data Access capacity. And there have been many requests for improved functionality, I made up a AddOn to add additional capabilities via the Execute Command Handler. The Handler just adds on to Tibor's previous fine examples.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Added functions are:&lt;/P&gt;&lt;P&gt;Getelem - returns the Guid of the selected element&lt;/P&gt;&lt;P&gt;GetParams - returns all of the AutoText properties available for a element type. - writes to the session report&lt;/P&gt;&lt;P&gt;GetValue - returns any AutoText value available for a element -- Same as AutoText Label&lt;/P&gt;&lt;P&gt;GetProjInfo -returns the list of keys and values for the project information - writes to the report writer.&lt;/P&gt;&lt;P&gt;GetPoint - returns the x &amp;amp; y coordinates of a clicked point - available for element placement&lt;/P&gt;&lt;P&gt;GetSelected - returns the Guid for all elements selected in order of their selection&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: now returns Array of -- [Guid, LayerName, Floor name, Element ID] in order to identify returned elements&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SetProjInfo - sets a new value into any Project info property&lt;/P&gt;&lt;P&gt;GetProjvalue - gets the value of a project info property.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: added function "GetValuefromGuid": Input -- Guid &amp;amp; AutoText Property Name -- Returns Value&lt;/P&gt;&lt;P&gt;Third Release on GitHub.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully this will provide access for most of requests made here. If you&amp;nbsp; have an needed function/capability leave it in the comments and I'll see if it is feasible to add on.&lt;/P&gt;&lt;P&gt;I hope that Graphisoft will shortly incorporate all this capability natively into Python without the use of a AddOn.&lt;/P&gt;&lt;P&gt;If you agree that Python should be promptly expanded , you can send a message to Graphisoft by clinking on like on this post??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The video which demos this utility is posted on YouTube:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://youtu.be/zgQzTMvuAQc" target="_self"&gt;New Python Utility Functions&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The AddOn apx file is posted on the GitHub site listed in the Video description&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i would be interested to hear of any applications which are freed up with the additional commands. And a note on performance. I doubt that Python will be very fast, but manual operations should not be a problem.&lt;/P&gt;</description>
    <pubDate>Sat, 27 Nov 2021 08:06:16 GMT</pubDate>
    <dc:creator>poco2013</dc:creator>
    <dc:date>2021-11-27T08:06:16Z</dc:date>
    <item>
      <title>New Python utility Function</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/New-Python-utility-Function/m-p/323231#M132</link>
      <description>&lt;P&gt;The Present Python API is quite limited in its Data Access capacity. And there have been many requests for improved functionality, I made up a AddOn to add additional capabilities via the Execute Command Handler. The Handler just adds on to Tibor's previous fine examples.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Added functions are:&lt;/P&gt;&lt;P&gt;Getelem - returns the Guid of the selected element&lt;/P&gt;&lt;P&gt;GetParams - returns all of the AutoText properties available for a element type. - writes to the session report&lt;/P&gt;&lt;P&gt;GetValue - returns any AutoText value available for a element -- Same as AutoText Label&lt;/P&gt;&lt;P&gt;GetProjInfo -returns the list of keys and values for the project information - writes to the report writer.&lt;/P&gt;&lt;P&gt;GetPoint - returns the x &amp;amp; y coordinates of a clicked point - available for element placement&lt;/P&gt;&lt;P&gt;GetSelected - returns the Guid for all elements selected in order of their selection&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: now returns Array of -- [Guid, LayerName, Floor name, Element ID] in order to identify returned elements&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SetProjInfo - sets a new value into any Project info property&lt;/P&gt;&lt;P&gt;GetProjvalue - gets the value of a project info property.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: added function "GetValuefromGuid": Input -- Guid &amp;amp; AutoText Property Name -- Returns Value&lt;/P&gt;&lt;P&gt;Third Release on GitHub.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully this will provide access for most of requests made here. If you&amp;nbsp; have an needed function/capability leave it in the comments and I'll see if it is feasible to add on.&lt;/P&gt;&lt;P&gt;I hope that Graphisoft will shortly incorporate all this capability natively into Python without the use of a AddOn.&lt;/P&gt;&lt;P&gt;If you agree that Python should be promptly expanded , you can send a message to Graphisoft by clinking on like on this post??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The video which demos this utility is posted on YouTube:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://youtu.be/zgQzTMvuAQc" target="_self"&gt;New Python Utility Functions&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The AddOn apx file is posted on the GitHub site listed in the Video description&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i would be interested to hear of any applications which are freed up with the additional commands. And a note on performance. I doubt that Python will be very fast, but manual operations should not be a problem.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Nov 2021 08:06:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/New-Python-utility-Function/m-p/323231#M132</guid>
      <dc:creator>poco2013</dc:creator>
      <dc:date>2021-11-27T08:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: New Python utility Function</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/New-Python-utility-Function/m-p/323241#M133</link>
      <description>&lt;P&gt;Realy great work!&lt;/P&gt;&lt;P&gt;Do these AddOns "based on the&amp;nbsp;&lt;SPAN&gt;Execute Command Handler" work only in AC25 or also in AC24 ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Nov 2021 08:36:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/New-Python-utility-Function/m-p/323241#M133</guid>
      <dc:creator>Ady84a</dc:creator>
      <dc:date>2021-11-26T08:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: New Python utility Function</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/New-Python-utility-Function/m-p/323267#M134</link>
      <description>&lt;P&gt;I have not tested them, but Probably not. They were compiled with the 25 version of the API development kit and generally are not backward compatible.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Nov 2021 12:06:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/New-Python-utility-Function/m-p/323267#M134</guid>
      <dc:creator>poco2013</dc:creator>
      <dc:date>2021-11-26T12:06:17Z</dc:date>
    </item>
  </channel>
</rss>

