We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2023-01-05 04:36 PM
Dear Graphisoft Community,
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.
So i was wondering if someone here knows how to access the Hotlink Master ID and edit it idealy.
Thanks for any Help!
Kind Regards
Dayiz
2023-01-05 05:30 PM - edited 2023-01-05 05:38 PM
A bit more Information:
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.
So another question: am I able to edit built in properties with c++ addons?
My Code:
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?
2023-01-06 02:20 PM
So i digged a bit deeper and found the following:
As it seems, the Master-ID is saved at filler_3 (to my surprise, there is no mention of it in https://archicadapi.Graphisoft.com/documentation/api_hotlinktype ).
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