<?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 Label Favorite in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Label-Favorite/m-p/304704#M8162</link>
    <description>&lt;P&gt;I created a function that will generate a label based on favorite.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;API_Favorite favTag = {};
favTag.name = "DOOR TAG";
favTag.memo.New();
favTag.properties.New();
favTag.classifications.New();
favTag.elemCategoryValues.New();
err = ACAPI_Favorite_Get(&amp;amp;favTag);
if (err != NoError)
{
    DebugPrintlnf("ACAPI_Favorite_Get failed (Name: DOOR SIGNAGE TAG)");
    ACAPI_DisposeElemMemoHdls(&amp;amp;favTag.memo.Get());
}
API_Element&amp;amp; elemTagDef = favTag.element;
API_ElementMemo&amp;amp; memoTagDef = favTag.memo.Get();
err = ACAPI_Element_Create(&amp;amp;elemTagDef, &amp;amp;memoTagDef);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the generated tag (especially the "SYMBOL LABEL" part) is not the same as the favorite.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EDIT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I looked into the returned value of &lt;FONT color="#FF00FF"&gt;ACAPI_Favorite_Get()&lt;/FONT&gt; and found out that the value of &lt;FONT color="#FF00FF"&gt;textWay&lt;/FONT&gt; is still &lt;FONT color="#FF00FF"&gt;APIDir_Parallel&lt;/FONT&gt;. With this, I harcoded the value of &lt;FONT color="#FF00FF"&gt;textWay&lt;/FONT&gt;&amp;nbsp;to &lt;FONT color="#FF00FF"&gt;APIDir_General&lt;/FONT&gt; and also the value of &lt;FONT color="#FF00FF"&gt;u.symbol.fixedAngle&lt;/FONT&gt; to &lt;FONT color="#FF00FF"&gt;0&lt;/FONT&gt;. But the generated tag still uses &lt;FONT color="#FF00FF"&gt;APIDir_Parallel&lt;/FONT&gt; for &lt;FONT color="#FF00FF"&gt;textWay&lt;/FONT&gt; and &lt;FONT color="#FF00FF"&gt;1&lt;/FONT&gt; for &lt;FONT color="#FF00FF"&gt;u.symbol.fixedAngle&lt;/FONT&gt;.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Sep 2021 03:33:45 GMT</pubDate>
    <dc:creator>ReignBough</dc:creator>
    <dc:date>2021-09-07T03:33:45Z</dc:date>
    <item>
      <title>Label Favorite</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Label-Favorite/m-p/304704#M8162</link>
      <description>&lt;P&gt;I created a function that will generate a label based on favorite.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;API_Favorite favTag = {};
favTag.name = "DOOR TAG";
favTag.memo.New();
favTag.properties.New();
favTag.classifications.New();
favTag.elemCategoryValues.New();
err = ACAPI_Favorite_Get(&amp;amp;favTag);
if (err != NoError)
{
    DebugPrintlnf("ACAPI_Favorite_Get failed (Name: DOOR SIGNAGE TAG)");
    ACAPI_DisposeElemMemoHdls(&amp;amp;favTag.memo.Get());
}
API_Element&amp;amp; elemTagDef = favTag.element;
API_ElementMemo&amp;amp; memoTagDef = favTag.memo.Get();
err = ACAPI_Element_Create(&amp;amp;elemTagDef, &amp;amp;memoTagDef);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the generated tag (especially the "SYMBOL LABEL" part) is not the same as the favorite.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EDIT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I looked into the returned value of &lt;FONT color="#FF00FF"&gt;ACAPI_Favorite_Get()&lt;/FONT&gt; and found out that the value of &lt;FONT color="#FF00FF"&gt;textWay&lt;/FONT&gt; is still &lt;FONT color="#FF00FF"&gt;APIDir_Parallel&lt;/FONT&gt;. With this, I harcoded the value of &lt;FONT color="#FF00FF"&gt;textWay&lt;/FONT&gt;&amp;nbsp;to &lt;FONT color="#FF00FF"&gt;APIDir_General&lt;/FONT&gt; and also the value of &lt;FONT color="#FF00FF"&gt;u.symbol.fixedAngle&lt;/FONT&gt; to &lt;FONT color="#FF00FF"&gt;0&lt;/FONT&gt;. But the generated tag still uses &lt;FONT color="#FF00FF"&gt;APIDir_Parallel&lt;/FONT&gt; for &lt;FONT color="#FF00FF"&gt;textWay&lt;/FONT&gt; and &lt;FONT color="#FF00FF"&gt;1&lt;/FONT&gt; for &lt;FONT color="#FF00FF"&gt;u.symbol.fixedAngle&lt;/FONT&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 03:33:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Label-Favorite/m-p/304704#M8162</guid>
      <dc:creator>ReignBough</dc:creator>
      <dc:date>2021-09-07T03:33:45Z</dc:date>
    </item>
  </channel>
</rss>

