<?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: Edit Hotlink Master ID in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Edit-Hotlink-Master-ID/m-p/366867#M1323</link>
    <description>&lt;P&gt;So, I dug a bit deeper and found the following:&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="quellcode.PNG" style="width: 600px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/33191i3467BA29A2051DCC/image-dimensions/600x338?v=v2" width="600" height="338" role="button" title="quellcode.PNG" alt="quellcode.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As it seems, the Master-ID is saved at filler_3 (to my surprise, there is no mention of it in&amp;nbsp;&lt;A href="https://archicadapi.Graphisoft.com/documentation/api_hotlinktype" target="_blank" rel="noopener"&gt;https://archicadapi.Graphisoft.com/documentation/api_hotlinktype&lt;/A&gt;&amp;nbsp;).&lt;BR /&gt;So I converted it to a string and tried to print it out with DG::InformationAlert, but i only receive an empty string. Why does it behave that way? Where is the master-id saved? I'm so confused and there are no ressources that cover the master-id&lt;/P&gt;</description>
    <pubDate>Mon, 16 Feb 2026 14:58:01 GMT</pubDate>
    <dc:creator>Dayiz</dc:creator>
    <dc:date>2026-02-16T14:58:01Z</dc:date>
    <item>
      <title>Edit Hotlink Master ID</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Edit-Hotlink-Master-ID/m-p/366791#M1321</link>
      <description>&lt;P&gt;Dear Graphisoft Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to write an AddOn which changes the Hotlink Master ID, but im having trouble to find the property for hotlink elements. Neither the hotlink node nor the hotlink elements seem to have the value.&lt;/P&gt;&lt;P&gt;So i was wondering if someone here knows how to access the Hotlink Master ID and edit it idealy.&lt;/P&gt;&lt;P&gt;Thanks for any Help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Dayiz&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 15:36:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Edit-Hotlink-Master-ID/m-p/366791#M1321</guid>
      <dc:creator>Dayiz</dc:creator>
      <dc:date>2023-01-05T15:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Hotlink Master ID</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Edit-Hotlink-Master-ID/m-p/366799#M1322</link>
      <description>&lt;P&gt;A bit more Information:&lt;/P&gt;
&lt;P&gt;i was able to find the property (it is a built in property) and if i select an element, get it and then proceed to get the property, i can receive the Hotlink Master-ID. But for some reason I'm not able to set it.&lt;/P&gt;
&lt;P&gt;So another question: am I able to edit built in properties with c++ addons?&lt;/P&gt;
&lt;P&gt;My Code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;API_SelectionInfo selI;
GS::Array&amp;lt;API_Neig&amp;gt; neig;
ACAPI_Selection_Get(&amp;amp;selI, &amp;amp;neig, false);
if(neig.GetSize() == 0)
{
   break;
}
API_Element elem;
elem.header.guid = neig.GetFirst().guid;
ACAPI_Element_Get(&amp;amp;elem);
Toolbox tb;
API_PropertyDefinition propDef;
tb.findPropertyDefinition(propDef, "Hotlink Master-ID", "ID und Kategorien");
API_Property propValue;
ACAPI_Element_GetPropertyValue(elem.header.guid, propDef.guid, propValue);
API_Property newPropValue;
newPropValue.definition = propValue.definition;
newPropValue.value.singleVariant.variant.type = propValue.definition.valueType;
newPropValue.value.singleVariant.variant.uniStringValue = (GS::UniString)"Renamed MasterID";
newPropValue.isDefault = false;
GS::Array&amp;lt;API_Guid&amp;gt; guidList;
guidList.Push(elem.header.guid);
ACAPI_ElementList_ModifyPropertyValue(newPropValue, guidList);
ACAPI_Element_SetProperty(elem.header.guid, newPropValue);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried to set the value with SetProperty and ModifyPropertyList, both didn't work. My guess is, that the Hotlink-Master ID is saved somewhere else and the property of the element just points to the value. But how can i edit that value? Where is it saved?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Feb 2026 14:57:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Edit-Hotlink-Master-ID/m-p/366799#M1322</guid>
      <dc:creator>Dayiz</dc:creator>
      <dc:date>2026-02-16T14:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Hotlink Master ID</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Edit-Hotlink-Master-ID/m-p/366867#M1323</link>
      <description>&lt;P&gt;So, I dug a bit deeper and found the following:&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="quellcode.PNG" style="width: 600px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/33191i3467BA29A2051DCC/image-dimensions/600x338?v=v2" width="600" height="338" role="button" title="quellcode.PNG" alt="quellcode.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As it seems, the Master-ID is saved at filler_3 (to my surprise, there is no mention of it in&amp;nbsp;&lt;A href="https://archicadapi.Graphisoft.com/documentation/api_hotlinktype" target="_blank" rel="noopener"&gt;https://archicadapi.Graphisoft.com/documentation/api_hotlinktype&lt;/A&gt;&amp;nbsp;).&lt;BR /&gt;So I converted it to a string and tried to print it out with DG::InformationAlert, but i only receive an empty string. Why does it behave that way? Where is the master-id saved? I'm so confused and there are no ressources that cover the master-id&lt;/P&gt;</description>
      <pubDate>Mon, 16 Feb 2026 14:58:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Edit-Hotlink-Master-ID/m-p/366867#M1323</guid>
      <dc:creator>Dayiz</dc:creator>
      <dc:date>2026-02-16T14:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Hotlink Master ID</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Edit-Hotlink-Master-ID/m-p/693127#M10780</link>
      <description>&lt;P&gt;I´m with you, years dealing with this issues and always I ending hand crafting.&amp;nbsp;&lt;/P&gt;&lt;P&gt;¿have you got the correct script?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Mon, 16 Feb 2026 10:09:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Edit-Hotlink-Master-ID/m-p/693127#M10780</guid>
      <dc:creator>cagarruta</dc:creator>
      <dc:date>2026-02-16T10:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Hotlink Master ID</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Edit-Hotlink-Master-ID/m-p/693196#M10783</link>
      <description>&lt;P&gt;If you select a placed Hotlink in Archicad, right-click and go to the Hotlink Settings Dialog, is the Master ID field filled out with some value? Because if it is not, there is only an empty string that the API can return.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Feb 2026 15:01:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Edit-Hotlink-Master-ID/m-p/693196#M10783</guid>
      <dc:creator>Laszlo Nagy</dc:creator>
      <dc:date>2026-02-16T15:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Hotlink Master ID</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Edit-Hotlink-Master-ID/m-p/693274#M10786</link>
      <description>&lt;P&gt;I think the comment at filler_3 is a mistake. All fields prefixed with 'filler' are only padding to maintain the structure size and byte alignment - they never contain data and will probably be filled with zeros by default (hence appearing to be an empty string).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The listing ID for an element (element info string) is now held in &lt;EM&gt;API_ElementMemo::elemInfoString.&lt;/EM&gt; You can write changes to the memo structure with&amp;nbsp;&lt;EM&gt;ACAPI_Element_Change&lt;/EM&gt;, but be careful to set the mask for this value accordingly. I haven't tried (because I've never had to set the master ID) but I assume this is also true for&amp;nbsp;&lt;EM&gt;API_HotlinkType&lt;/EM&gt; elements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that you can read the element info string by calling&amp;nbsp;&lt;EM&gt;ACAPI_Element_GetElementInfoString&lt;/EM&gt;. You can also read the combination of master ID and element info string with&amp;nbsp;&lt;EM&gt;ACAPI_Element_GetCompoundInfoString&lt;/EM&gt;, so you could deduce the master ID by stripping the element info from the compound info.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Feb 2026 11:19:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Edit-Hotlink-Master-ID/m-p/693274#M10786</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2026-02-17T11:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Hotlink Master ID</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Edit-Hotlink-Master-ID/m-p/693289#M10788</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The comment is not valid any more; filler_3 used to contain the master ID when it was not filler_3 &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best, Akos&lt;/P&gt;</description>
      <pubDate>Tue, 17 Feb 2026 15:48:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Edit-Hotlink-Master-ID/m-p/693289#M10788</guid>
      <dc:creator>Akos Somorjai</dc:creator>
      <dc:date>2026-02-17T15:48:38Z</dc:date>
    </item>
  </channel>
</rss>

