<?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: Change label's text to an autotext in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Change-label-s-text-to-an-autotext/m-p/398288#M8592</link>
    <description>&lt;P&gt;Hi Gerry&lt;BR /&gt;Thank you very much for the really fast response!&lt;BR /&gt;I'm not sure that I clearly understood that... in both cases, if I create an associative label or an independent one, I didn't succeed in placing an autotext in the text field instead of the default text that creates when I create a new label. I didn't try to make an existing associative Label independent, or make an existing independent Label associative.&lt;BR /&gt;Thanks&amp;nbsp;again!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Windows 11, Visual Studio 2019, ArchiCAD 26&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Sep 2023 21:58:41 GMT</pubDate>
    <dc:creator>yahavsa</dc:creator>
    <dc:date>2023-09-14T21:58:41Z</dc:date>
    <item>
      <title>Change label's text to an autotext</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Change-label-s-text-to-an-autotext/m-p/398266#M8590</link>
      <description>&lt;P&gt;Hi there&lt;BR /&gt;I'm trying to change a label's text to an autotext, which&amp;nbsp;depends on it's parent type in this case. I got the key and value of the autotext that I need. Now I'm trying to insert the autotext into the label text, but haven't succeeded yet.&lt;BR /&gt;I'll really appreciated any solution.&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 12:18:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Change-label-s-text-to-an-autotext/m-p/398266#M8590</guid>
      <dc:creator>yahavsa</dc:creator>
      <dc:date>2024-09-16T12:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Change label's text to an autotext</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Change-label-s-text-to-an-autotext/m-p/398271#M8591</link>
      <description>&lt;P&gt;From the API Documentation ----&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"...an associative Label cannot be made independent, and an independent Label cannot be made associative."&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 17:52:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Change-label-s-text-to-an-autotext/m-p/398271#M8591</guid>
      <dc:creator>poco2013</dc:creator>
      <dc:date>2023-09-14T17:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Change label's text to an autotext</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Change-label-s-text-to-an-autotext/m-p/398288#M8592</link>
      <description>&lt;P&gt;Hi Gerry&lt;BR /&gt;Thank you very much for the really fast response!&lt;BR /&gt;I'm not sure that I clearly understood that... in both cases, if I create an associative label or an independent one, I didn't succeed in placing an autotext in the text field instead of the default text that creates when I create a new label. I didn't try to make an existing associative Label independent, or make an existing independent Label associative.&lt;BR /&gt;Thanks&amp;nbsp;again!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Windows 11, Visual Studio 2019, ArchiCAD 26&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 21:58:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Change-label-s-text-to-an-autotext/m-p/398288#M8592</guid>
      <dc:creator>yahavsa</dc:creator>
      <dc:date>2023-09-14T21:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Change label's text to an autotext</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Change-label-s-text-to-an-autotext/m-p/398295#M8593</link>
      <description>&lt;P&gt;I understand that you are trying to change a autotext attribute to a different autotext attributive for the same&amp;nbsp; element? But you did not say of what type script are you using. If C++, you must use the proper autotext key format i.e with &amp;lt;&amp;gt; enclosure and format of &amp;lt;PROPERTY_ (GUID).&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2023 00:47:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Change-label-s-text-to-an-autotext/m-p/398295#M8593</guid>
      <dc:creator>poco2013</dc:creator>
      <dc:date>2023-09-15T00:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Change label's text to an autotext</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Change-label-s-text-to-an-autotext/m-p/398326#M8595</link>
      <description>&lt;P&gt;Hello Gerry&lt;BR /&gt;That's right, I forgot to mention that I'm using C++, sorry about that.&lt;BR /&gt;I did try to use the proper autotext key format and I got an exception.&lt;BR /&gt;I'll go throw the process I did so maybe you can find something I did wrong:&lt;/P&gt;&lt;P&gt;- First of all, I created a default label element and change it's parent to a given window GUID (See attached TestLabelAutotext picture), Then:&lt;/P&gt;&lt;P&gt;1. First, I tried to use the relevant key given by the Hash table that I get when using the APIAny_GetPropertyAutoTextKeyTableID function.&lt;BR /&gt;It gives the format of PROPERTY_ (GUID) without the &amp;lt;&amp;gt; enclosure so I added it manually. When doing that, I get the exception (see picture Test1).&lt;/P&gt;&lt;P&gt;2. I tried to add the format of PROPERTY_ (GUID) manually, and I got the same exaption (See picture Test2)&lt;/P&gt;&lt;P&gt;3. I tried to change the format of PROPERTY_ (GUID) without using the &amp;lt;&amp;gt; enclosure. The label's text was changed, not to the autotext I need but to the&amp;nbsp;format of PROPERTY_ (GUID) itself (See&amp;nbsp;picture&amp;nbsp;Test3)&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/57000iEE4CB4EF2832EDF3/image-size/large?v=v2&amp;amp;px=999" border="0" alt="TestLabelAutotext.jpg" title="TestLabelAutotext.jpg" /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/57001i12A50DE2DFDE289E/image-size/large?v=v2&amp;amp;px=999" border="0" alt="Test1.jpg" title="Test1.jpg" /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/57002i0D887680D739E9EE/image-size/large?v=v2&amp;amp;px=999" border="0" alt="test2.jpg" title="test2.jpg" /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/57003i71B3323AB3E63C0B/image-size/large?v=v2&amp;amp;px=999" border="0" alt="test3.jpg" title="test3.jpg" /&gt;</description>
      <pubDate>Fri, 15 Sep 2023 07:27:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Change-label-s-text-to-an-autotext/m-p/398326#M8595</guid>
      <dc:creator>yahavsa</dc:creator>
      <dc:date>2023-09-15T07:27:32Z</dc:date>
    </item>
  </channel>
</rss>

