<?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 How to change a properties type to custom-defined? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-change-a-properties-type-to-custom-defined/m-p/354709#M1599</link>
    <description>&lt;P&gt;Hello dear Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to change a property with an AddOn but for some reason my values always turn out undefined.&lt;/P&gt;&lt;P&gt;The property starts with its default value:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/29405i93E931898A39D865/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Sorry for the german bits, let met translate the important part:&lt;/P&gt;&lt;P&gt;Standard (Nicht definiert) = Standard (not definied)&lt;/P&gt;&lt;P&gt;Individuell (Wert) = Custom (value)&lt;/P&gt;&lt;P&gt;Als nicht definiert festgelegt = Set as not defined // Custom (not defined)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now when i run the AddOn, the property gets set to "Custom (not defined)"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/29404i04845A83CEE6194F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and the value is &amp;lt;Nicht definiert&amp;gt; (not defined).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now when i set the property to Individuellen Wert festlegen (Set custom value) and put in anything (like "123")&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/29406i730536DF3C35F909/image-size/medium?v=v2&amp;amp;px=400" role="button" title="3.png" alt="3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and then run my AddOn, the property gets set the way i want to.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/29407i9F6163DDCF230E28/image-size/medium?v=v2&amp;amp;px=400" role="button" title="4.png" alt="4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But i can't find out how i can change the property to "Custom (value)", so that my property gets set by the AddOn, currently i only get &amp;lt;not defined&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here the important parts of my code:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/29410iC8D4752ACE1F381D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="5.png" alt="5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I left out the functions "getSelectedElements" and "findPropertyDefinition" because they work and should have no impact on the &amp;lt;not defined&amp;gt; part.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Aug 2022 09:55:06 GMT</pubDate>
    <dc:creator>Dayiz</dc:creator>
    <dc:date>2022-08-31T09:55:06Z</dc:date>
    <item>
      <title>How to change a properties type to custom-defined?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-change-a-properties-type-to-custom-defined/m-p/354709#M1599</link>
      <description>&lt;P&gt;Hello dear Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to change a property with an AddOn but for some reason my values always turn out undefined.&lt;/P&gt;&lt;P&gt;The property starts with its default value:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/29405i93E931898A39D865/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Sorry for the german bits, let met translate the important part:&lt;/P&gt;&lt;P&gt;Standard (Nicht definiert) = Standard (not definied)&lt;/P&gt;&lt;P&gt;Individuell (Wert) = Custom (value)&lt;/P&gt;&lt;P&gt;Als nicht definiert festgelegt = Set as not defined // Custom (not defined)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now when i run the AddOn, the property gets set to "Custom (not defined)"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/29404i04845A83CEE6194F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and the value is &amp;lt;Nicht definiert&amp;gt; (not defined).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now when i set the property to Individuellen Wert festlegen (Set custom value) and put in anything (like "123")&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/29406i730536DF3C35F909/image-size/medium?v=v2&amp;amp;px=400" role="button" title="3.png" alt="3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and then run my AddOn, the property gets set the way i want to.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/29407i9F6163DDCF230E28/image-size/medium?v=v2&amp;amp;px=400" role="button" title="4.png" alt="4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But i can't find out how i can change the property to "Custom (value)", so that my property gets set by the AddOn, currently i only get &amp;lt;not defined&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here the important parts of my code:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/29410iC8D4752ACE1F381D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="5.png" alt="5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I left out the functions "getSelectedElements" and "findPropertyDefinition" because they work and should have no impact on the &amp;lt;not defined&amp;gt; part.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 09:55:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-change-a-properties-type-to-custom-defined/m-p/354709#M1599</guid>
      <dc:creator>Dayiz</dc:creator>
      <dc:date>2022-08-31T09:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to change a properties type to custom-defined?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-change-a-properties-type-to-custom-defined/m-p/354716#M1600</link>
      <description>&lt;P&gt;I am nowhere near being C++ enabled, but on Archicad side I suspect the problem may be somewhere&amp;nbsp;&lt;SPAN&gt;on an elevated level. Each property, which is not set, has the &amp;lt;not defined&amp;gt; default value &lt;EM&gt;status&lt;/EM&gt;. You'll need to find a path to switch this &lt;EM&gt;status&lt;/EM&gt; from "Undefined" to "Value" first. But I have no clue as to how this can be triggered. A screenshot of Property Manager for better explanation of the mentioned "elevated" level:&lt;/SPAN&gt;&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="Miha_M_0-1661944400917.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/29411i183F0F841F923BA5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Miha_M_0-1661944400917.png" alt="Miha_M_0-1661944400917.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But in the first two of your screenshots it seems like you have managed to switch this status (&lt;SPAN&gt;API_PropertyCustomDefinitionType?&lt;/SPAN&gt;), only the value remains in a &amp;lt;not defined&amp;gt; state.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 11:42:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-change-a-properties-type-to-custom-defined/m-p/354716#M1600</guid>
      <dc:creator>Miha_M</dc:creator>
      <dc:date>2022-08-31T11:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to change a properties type to custom-defined?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-change-a-properties-type-to-custom-defined/m-p/354724#M1601</link>
      <description>&lt;P&gt;Thanks for your help Misa_M.&lt;/P&gt;&lt;P&gt;I figured it was a problem like that and tried to find the property setting in the API doc, but couldnt find it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What worked was to create a new property instead of copying and editing the old property&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/29414i6B56313DBE9126D9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="5.png" alt="5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Seems like the old property had the &amp;lt;not defined&amp;gt; part baked in or something like that.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 12:01:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-change-a-properties-type-to-custom-defined/m-p/354724#M1601</guid>
      <dc:creator>Dayiz</dc:creator>
      <dc:date>2022-08-31T12:01:00Z</dc:date>
    </item>
  </channel>
</rss>

