Quantcast
Channel: ArchiCAD-Talk - Developer Forum
Viewing all articles
Browse latest Browse all 564

Door - Relation Parameters / Properties

$
0
0
Author:mar_kq
Posted: Thu Jan 11, 2018 11:13 am (GMT+1)


Akos Somorjai wrote:


Hi,

The following code snippet will give you the label(s) connected to a door/window:

Code:
   GS::Array<API_Guid> connectedLabels;
   ACAPI_Element_GetConnectedElements (doorGuid, API_LabelID, &connectedLabels);

[/code]

Best, Akos


Hi Akos,

thanks for the suggestion.

I was able to retrieve the information using the guid of the door stamp directly through ACAPI_Element_GetMemo as suggested here:
archicad-talk.graphisoft.com/viewtopic.php?t=58645&sid=01ca91a39e2d5b62729678c17b88a1c5

But When I try using the ACAPI_Element_GetConnectedElements (with element.header.guid or element.door.head.guid) the resulting Array is empty. Any ideas why I am getting this behaviour?

I am trying this now on AC21 by the way.


Viewing all articles
Browse latest Browse all 564

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>