<?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: Restore &amp;quot;Link to Default&amp;quot; property values by Python in Archicad Python API</title>
    <link>https://community.graphisoft.com/t5/Archicad-Python-API/Restore-quot-Link-to-Default-quot-property-values-by-Python/m-p/614421#M1025</link>
    <description>&lt;P&gt;I'd like to put this thread into the praxis context it came from.&lt;/P&gt;
&lt;P&gt;I was working on a door list with odd 1800 items when I realised that a large number of elements had an override of "from/to room number" calculated properties into a fixed custom value. It came from ill prepared favourites.&lt;/P&gt;
&lt;P&gt;This could have been a fatal error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is important to fish out elements whose calculations are overridden and possibly set them by script.&lt;/P&gt;</description>
    <pubDate>Sat, 06 Jul 2024 05:09:19 GMT</pubDate>
    <dc:creator>_c_</dc:creator>
    <dc:date>2024-07-06T05:09:19Z</dc:date>
    <item>
      <title>Restore "Link to Default" property values by Python</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Restore-quot-Link-to-Default-quot-property-values-by-Python/m-p/614359#M1024</link>
      <description>&lt;P&gt;I am trying to set elements' values to their &lt;STRONG&gt;defaults&lt;/STRONG&gt;: be it undefined, expression, or value. Whatever is in the Attribute Manager for the property definition. For clarifying, by default will look like this upon selection:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD height="30px"&gt;default undefined value&lt;/TD&gt;
&lt;TD height="30px"&gt;default defined value&lt;/TD&gt;
&lt;TD height="30px"&gt;default expression&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="183px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="def undefined.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/65736iD27B7AFF67490FE8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="def undefined.png" alt="def undefined.png" /&gt;&lt;/span&gt;&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="183px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="def value.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/65737i4C61E233E7C87831/image-size/medium?v=v2&amp;amp;px=400" role="button" title="def value.png" alt="def value.png" /&gt;&lt;/span&gt;&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="183px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="def expr.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/65744iB448569CDDC3C7DD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="def expr.png" alt="def expr.png" /&gt;&lt;/span&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is no direct access in the JSON API, but I found a trick to determine if a property is defined by expression: they DON'T have a "&lt;SPAN&gt;defaultValue"&amp;nbsp;&lt;/SPAN&gt;dict key.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems nevertheless to be impossible to actually SET the property value to "Link to Default". Whenever I copy the defaults from the property definition into the element's value this turns into "custom".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone know a trick?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jul 2024 05:13:08 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Restore-quot-Link-to-Default-quot-property-values-by-Python/m-p/614359#M1024</guid>
      <dc:creator>_c_</dc:creator>
      <dc:date>2024-07-06T05:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Restore "Link to Default" property values by Python</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/Restore-quot-Link-to-Default-quot-property-values-by-Python/m-p/614421#M1025</link>
      <description>&lt;P&gt;I'd like to put this thread into the praxis context it came from.&lt;/P&gt;
&lt;P&gt;I was working on a door list with odd 1800 items when I realised that a large number of elements had an override of "from/to room number" calculated properties into a fixed custom value. It came from ill prepared favourites.&lt;/P&gt;
&lt;P&gt;This could have been a fatal error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is important to fish out elements whose calculations are overridden and possibly set them by script.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jul 2024 05:09:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/Restore-quot-Link-to-Default-quot-property-values-by-Python/m-p/614421#M1025</guid>
      <dc:creator>_c_</dc:creator>
      <dc:date>2024-07-06T05:09:19Z</dc:date>
    </item>
  </channel>
</rss>

