2017-12-12 10:28 AM - last edited on 2022-12-06 01:47 PM by Daniel Kassai
2017-12-12 06:05 PM
mar_kq wrote:Update: I have been reading through the Docu and found the "ACAPI_Element_GetDefaultsExt" which sounds like it can give me what I am looking for. The problem so far, it seems it only returns the Default Setting Values but not the ones linked to the specific selected door. I do not quite understand what is the right Mask expected by the function (archicadapi.graphisoft.com/documentation/api_subelemmemomask)
Hello.
I was hoping to get some clues as to the best approach for getting Door Label/Stamp Attributes with the API. The infos I am trying to get are in this linked picture (Doorstamp->Settings->Content3->...)
It is not clear to me wether these informations should be within the door object/libpart or in the stamp/label itself. My guess is that they are actually stored in the stamp/label settings. I do not know however how to get a handle to this from the door.
Anyone has experience with this? Any suggestions would be greatly appreciated.
markers[0].subType = (API_SubElemMemoMaskType) (APISubElemMemoMask_MainMarker | APISubElemMemoMask_NoParams); markers[1].subType = (API_SubElemMemoMaskType) (APISubElemMemoMask_SHMarker | APISubElemMemoMask_NoElem); markers[2].subType = (API_SubElemMemoMaskType) (APISubElemMemoMask_CWTag | APISubElemMemoMask_NoElem);
2017-12-13 09:53 AM
mar_kq wrote:Is there a detailed explanation of what the different Markers are? I have found only this list: archicadapi.graphisoft.com/documentation/api_subelemmemomask
So far I have tried using the folowing Masks but the memo.params for each marker is empty after calling ACAPI_Element_GetDefaultsExt...
2017-12-14 11:04 AM
mar_kq wrote:Update 2:
It is not clear to me wether these informations should be within the door object/libpart or in the stamp/label itself.
2017-12-29 03:52 PM
2018-01-11 11:15 AM
dfintha wrote:Thanks! This is what I was looking for!
Hello,
You can get the associated Door Stamp's GUID from the Door element, it's the element.door.openingBase.markGuid member.
After that, you can simply query its memo using ACAPI_Element_GetMemo with that GUID to get the parameter list of the
marker element in the memo.params member.
This way you'll get the parameters of the stamp related to the door, not the parameters of the door itself.
Best regards,
Dénes