cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
2024 Technology Preview Program

2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations

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

How to identify 3D or 2D Hotlink Element

kristkun
Participant

Hi

 

Is there a way to identify if a hotlink element a 2D or 3D?
Right now the only way I can identify if the hotlink is a 2D or 3D is based on the HotlinkNode Source Location
(I am checking the directory folder where 2D modules are inside the 2D Folder. Something like this)

I checked the Hotlink Element and I don't think I can use the transformation parameter to detect if a hotlink is a 2d or 3d.
I manually placed a 2D and 3D hotlink in the project and upon checking the transformation parameters, both of their origin z axis (tmx[11]) are zero 
elemHLList[1]

kristkun_1-1714583207453.png

elemHLList[0]

kristkun_2-1714583227879.png

 

kristkun_0-1714583135878.png

kristkun_3-1714583315730.png


https://graphisoft.github.io/archicad-api-devkit/union_a_p_i___element.html
https://graphisoft.github.io/archicad-api-devkit/struct_a_p_i___hotlink_type.html

 

1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Akos Somorjai
Graphisoft
Graphisoft

Hi,

 

Sorry, there isn't any distinction between 2D and 3D in the hotlink or node structure on the API.

 

Best, Akos

View solution in original post

1 REPLY 1
Solution
Akos Somorjai
Graphisoft
Graphisoft

Hi,

 

Sorry, there isn't any distinction between 2D and 3D in the hotlink or node structure on the API.

 

Best, Akos