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 Get Elements(Column/Beam/Object) touch/cross/near By Element

nishida_jp
Participant

Please teach me

ArchiCAD25/VC++2019/c++14

How to Get Elements(Column/Beam/Object) touch/cross/near By Element

 

get guid list from one element (Column/Beam/Object) to elements((Column/Beam/Object))

 

cannot function by my test

ACAPI_Element_GetCollisions

ACAPI_Element_GetConnectedElements

ACAPI_Element_GetRelations

1 ACCEPTED SOLUTION

Accepted Solutions
Solution
LChen
Graphisoft
Graphisoft

Hi,
Unfortunately, as I know there is no API function that you can simply check touch/cross/near between elements.
You can use ACAPI_Element_GetRalations() to check between beams but not work for beam to object, for example.
Using solid operation functions can be a workaround for different types.
But for checking 'near', the only idea come to my mind is to get 3D element polygons and check the distance between polygons one by one by yourself.
HTH

View solution in original post

1 REPLY 1
Solution
LChen
Graphisoft
Graphisoft

Hi,
Unfortunately, as I know there is no API function that you can simply check touch/cross/near between elements.
You can use ACAPI_Element_GetRalations() to check between beams but not work for beam to object, for example.
Using solid operation functions can be a workaround for different types.
But for checking 'near', the only idea come to my mind is to get 3D element polygons and check the distance between polygons one by one by yourself.
HTH