Archicad C++ API
About Archicad add-on development using the C++ API.
SOLVED!

Configure/Edit/Get Hotlink Master Id via API

kristkun
Participant

I am trying to create/place hotlink module via API.
However, I cannot find where can I set or get the Hotlink Master Id in either API_HotlinkNode or API_Element data.

 

I found this old thread:
https://community.graphisoft.com/t5/Archicad-C-API/Edit-Hotlink-Master-ID/td-p/366791
However, upon debugging, API_Element filler_3 doesn't have any data even though I specified a Master Id in my test hotlink module (I manually placed a hotlink module, specify the Master Id and read the hotlink element and hotlink node via API)

kristkun_1-1714501524159.png

 

kristkun_0-1714501441340.png

 

I am not sure if this master id is in the Hotlink Node userData as I did not find any existing hotlink manager api to process this API_HotlinkUserData (Not also available in the examples)
https://graphisoft.github.io/archicad-api-devkit/group___hotlink.html

1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Akos Somorjai
Graphisoft
Graphisoft

Hi,

 

That ID was moved to its more natural place in the element memo, under `elemInfoString`. Please use that field to get and set the ID.

 

Best, Akos

View solution in original post

1 REPLY 1
Solution
Akos Somorjai
Graphisoft
Graphisoft

Hi,

 

That ID was moved to its more natural place in the element memo, under `elemInfoString`. Please use that field to get and set the ID.

 

Best, Akos