<?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 get Favorite object and dimension marker by Name ?? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-Favorite-object-and-dimension-marker-by-Name/m-p/200747#M6355</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;I need to know How to get Favorite object and dimension marker by Name selected ??&lt;BR /&gt;&lt;BR /&gt;I found the function "ACAPI_Favorite_GetDefaults ()" but when I used this function. and change the defult by used the function "ACAPI_Element_ChangeDefaults ()", some parameters are failed or error such as the dimension marker.&lt;BR /&gt;&lt;FONT color="#b60000"&gt;The Dimension Marker always show only the default but not show my favorite selection.&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;this is my code.
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;GS::UniString	name_Fav = gSelectionName;
short		indexs_Fav = 0;
API_Element	element, elemmarker, mask;
API_ElementMemo	memo, memomarker;

BNZeroMemory (&amp;amp;element, sizeof (API_Element));
element.header.typeID = gCurrentTypeID;
element.header.variationID = gCurrentVarID;
element.header.index = index_list;

BNZeroMemory (&amp;amp;memo, sizeof (API_ElementMemo));
BNZeroMemory (&amp;amp;elemmarker, sizeof (API_Element));
BNZeroMemory (&amp;amp;memomarker, sizeof (API_ElementMemo));

err = ACAPI_Favorite_GetDefaults(&amp;amp;element, &amp;amp;memo, &amp;amp;elemmarker, &amp;amp;memomarker, &amp;amp;name_Fav, &amp;amp;indexs_Fav);

err = ACAPI_Element_ChangeDefaults (&amp;amp;element, &amp;amp;memomarker, &amp;amp;mask);
&lt;/PRE&gt;
I can't get the help of the ACAPI_Favorite_XX Function, who know where can I read the help of them?&lt;BR /&gt;I need anyone who can help me solve the problem, please.&lt;/DIV&gt;</description>
    <pubDate>Wed, 02 Aug 2023 15:15:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-08-02T15:15:26Z</dc:date>
    <item>
      <title>How to get Favorite object and dimension marker by Name ??</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-Favorite-object-and-dimension-marker-by-Name/m-p/200747#M6355</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;I need to know How to get Favorite object and dimension marker by Name selected ??&lt;BR /&gt;&lt;BR /&gt;I found the function "ACAPI_Favorite_GetDefaults ()" but when I used this function. and change the defult by used the function "ACAPI_Element_ChangeDefaults ()", some parameters are failed or error such as the dimension marker.&lt;BR /&gt;&lt;FONT color="#b60000"&gt;The Dimension Marker always show only the default but not show my favorite selection.&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;this is my code.
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;GS::UniString	name_Fav = gSelectionName;
short		indexs_Fav = 0;
API_Element	element, elemmarker, mask;
API_ElementMemo	memo, memomarker;

BNZeroMemory (&amp;amp;element, sizeof (API_Element));
element.header.typeID = gCurrentTypeID;
element.header.variationID = gCurrentVarID;
element.header.index = index_list;

BNZeroMemory (&amp;amp;memo, sizeof (API_ElementMemo));
BNZeroMemory (&amp;amp;elemmarker, sizeof (API_Element));
BNZeroMemory (&amp;amp;memomarker, sizeof (API_ElementMemo));

err = ACAPI_Favorite_GetDefaults(&amp;amp;element, &amp;amp;memo, &amp;amp;elemmarker, &amp;amp;memomarker, &amp;amp;name_Fav, &amp;amp;indexs_Fav);

err = ACAPI_Element_ChangeDefaults (&amp;amp;element, &amp;amp;memomarker, &amp;amp;mask);
&lt;/PRE&gt;
I can't get the help of the ACAPI_Favorite_XX Function, who know where can I read the help of them?&lt;BR /&gt;I need anyone who can help me solve the problem, please.&lt;/DIV&gt;</description>
      <pubDate>Wed, 02 Aug 2023 15:15:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-Favorite-object-and-dimension-marker-by-Name/m-p/200747#M6355</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-02T15:15:26Z</dc:date>
    </item>
  </channel>
</rss>

