<?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: Changing value of label via API in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Changing-value-of-label-via-API/m-p/326306#M2281</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;Yes, I managed to get all of my user defined zone parameters using &lt;SPAN&gt;ACAPI_Element_GetMemo.&lt;BR /&gt;I tried it on AC24.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jan 2022 01:19:24 GMT</pubDate>
    <dc:creator>Eshanta</dc:creator>
    <dc:date>2022-01-06T01:19:24Z</dc:date>
    <item>
      <title>Changing value of label via API</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Changing-value-of-label-via-API/m-p/325271#M2271</link>
      <description>&lt;P&gt;I am currently trying to create a zone label in which the values are updated programmatically via the API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've tried the following so far without any success:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) &lt;STRONG&gt;Tried setting the parameter value of the label's display text using&amp;nbsp;the API.&lt;/STRONG&gt; While this worked for other GDL object types, it did not work for labels.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2)&lt;STRONG&gt;Tried&amp;nbsp;ACAPI_Element_GetPropertyDefinitions&lt;/STRONG&gt; to get the property definitions first, so that I can somehow set the value later. However, I get null value in property definitions for labels. It works fine for other objects like walls.&lt;BR /&gt;&lt;BR /&gt;Is it possible to update text in labels programmatically&amp;nbsp; ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 09:23:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Changing-value-of-label-via-API/m-p/325271#M2271</guid>
      <dc:creator>Eshanta</dc:creator>
      <dc:date>2024-09-09T09:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Changing value of label via API</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Changing-value-of-label-via-API/m-p/325275#M2272</link>
      <description>&lt;P&gt;I don't have a solution for you.&lt;/P&gt;
&lt;P&gt;But just for clarity.&lt;/P&gt;
&lt;P&gt;Are you trying to update text settings such as font, colour, size, justification, etc.?&lt;/P&gt;
&lt;P&gt;Or are you trying to adjust the values of what the text is actually displaying?&lt;/P&gt;
&lt;P&gt;Apart from choosing what property or parameter you want to display, labels get the actual values from the associated element.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 10:48:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Changing-value-of-label-via-API/m-p/325275#M2272</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2021-12-20T10:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Changing value of label via API</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Changing-value-of-label-via-API/m-p/325281#M2273</link>
      <description>&lt;P&gt;Create label that read property of zone (or use standart) and change zone property via API.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 12:16:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Changing-value-of-label-via-API/m-p/325281#M2273</guid>
      <dc:creator>kuvbur</dc:creator>
      <dc:date>2021-12-20T12:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Changing value of label via API</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Changing-value-of-label-via-API/m-p/325321#M2274</link>
      <description>&lt;P&gt;Labels in the C++ API can more complicated. Zones, as of 25, can use either the "zone stamp" which is a label that uses a library object or a standard associated label. Do you just want to change text or a AutoText property. If a property, you must have the property key. Do want to change an exiting label or create and attach one, if so, how do you want to select and attach?? Sounds like, the better choice would be to just use the AutoText feature in 25?.&lt;/P&gt;&lt;P&gt;To set or modify existing labels, you may want to check out using the Python AddOn described below your post.&lt;/P&gt;&lt;P&gt;Else, check out the example functions in the Element_test example in the C++ Development Kit. An example of a associated label is given there.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 19:48:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Changing-value-of-label-via-API/m-p/325321#M2274</guid>
      <dc:creator>poco2013</dc:creator>
      <dc:date>2021-12-20T19:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Changing value of label via API</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Changing-value-of-label-via-API/m-p/325329#M2275</link>
      <description>&lt;P&gt;Hi Barry&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am actually trying to do the latter.&lt;/P&gt;&lt;P&gt;I tried creating a label GDL that is supposed to get the properties from the associated element. However, it did not work for zones. The same script works without any problem for slabs.&lt;BR /&gt;&lt;BR /&gt;Since, getting properties directly from the zone did not work, I am trying to create an empty label and then get the properties and display it in the label via the API. However, this does not seem to work for zones as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eshanta&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 00:06:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Changing-value-of-label-via-API/m-p/325329#M2275</guid>
      <dc:creator>Eshanta</dc:creator>
      <dc:date>2021-12-21T00:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Changing value of label via API</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Changing-value-of-label-via-API/m-p/325330#M2276</link>
      <description>&lt;P&gt;Hi kuvbur, poco2013,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a label GDL with blank fields. I tried getting it's properties from the associated zone using GDL script. However, I was not able to get the property values for cases when the element type is zone.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hence, I thought an alternative might be to create a blank label GDL, define parameters inside it and then change the values of those parameters via API. If it is not a GDL of type Label, I can change it's parameters via the API without any problem. But for labels, although it does not return any errors, the parameter is not updated in the Label GDL.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In any case I will check out the ELement_test example from the API development kit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eshanta&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 00:16:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Changing-value-of-label-via-API/m-p/325330#M2276</guid>
      <dc:creator>Eshanta</dc:creator>
      <dc:date>2021-12-21T00:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Changing value of label via API</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Changing-value-of-label-via-API/m-p/325341#M2277</link>
      <description>&lt;P&gt;You may not be interested,&amp;nbsp; but I made a short video which demos the ease of doing what you described in Python. All we need is some increased cooperation from Graphisoft to make several issues like this viable.&lt;/P&gt;&lt;P&gt;I would be interested in any comments?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://youtu.be/hUQ40lMS9WU" target="_self"&gt;AutoText Zone Label with Multiple Variables&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 04:34:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Changing-value-of-label-via-API/m-p/325341#M2277</guid>
      <dc:creator>poco2013</dc:creator>
      <dc:date>2021-12-21T04:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Changing value of label via API</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Changing-value-of-label-via-API/m-p/325457#M2278</link>
      <description>&lt;P&gt;Hi Gerry,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for the demo.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The solution seems interesting.&amp;nbsp; I have to use the API in C++ and the Archicad version needs to be 24.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the potential with python does look promising.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eshanta&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 02:20:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Changing-value-of-label-via-API/m-p/325457#M2278</guid>
      <dc:creator>Eshanta</dc:creator>
      <dc:date>2021-12-23T02:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Changing value of label via API</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Changing-value-of-label-via-API/m-p/325458#M2279</link>
      <description>&lt;P&gt;Just in case it might be useful to someone, I achieved this by getting the element memo using ACAPI_Element_GetMemo and then I extracted the value of the parameters from the element memo.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I changed the parameter values in the program and&amp;nbsp;then used ACAPI_Element_Change to write back the changed parameters to the element.&lt;BR /&gt;&lt;BR /&gt;By doing this, I was able to change the parameter values of the label.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 02:27:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Changing-value-of-label-via-API/m-p/325458#M2279</guid>
      <dc:creator>Eshanta</dc:creator>
      <dc:date>2021-12-23T02:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Changing value of label via API</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Changing-value-of-label-via-API/m-p/326132#M2280</link>
      <description>&lt;P&gt;Heelo, did you manage to retrieve all of the zone stamp parameters with&amp;nbsp;ACAPI_Element_GetMemo? I'm trying something similar on AC25, but it is only returning the first one for whatever reason.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 14:49:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Changing-value-of-label-via-API/m-p/326132#M2280</guid>
      <dc:creator>gustavorochakv</dc:creator>
      <dc:date>2022-01-04T14:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Changing value of label via API</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Changing-value-of-label-via-API/m-p/326306#M2281</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;Yes, I managed to get all of my user defined zone parameters using &lt;SPAN&gt;ACAPI_Element_GetMemo.&lt;BR /&gt;I tried it on AC24.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 01:19:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Changing-value-of-label-via-API/m-p/326306#M2281</guid>
      <dc:creator>Eshanta</dc:creator>
      <dc:date>2022-01-06T01:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Changing value of label via API</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Changing-value-of-label-via-API/m-p/326409#M2282</link>
      <description>&lt;P&gt;Interesting. I guess I'll try it on a previous version to see whether I'm messing things up somewhere or if it's an issue with AC25.&lt;/P&gt;&lt;P&gt;Thanks for the info&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 19:30:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Changing-value-of-label-via-API/m-p/326409#M2282</guid>
      <dc:creator>gustavorochakv</dc:creator>
      <dc:date>2022-01-06T19:30:09Z</dc:date>
    </item>
  </channel>
</rss>

