2024-06-20 01:38 AM
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
Solved! Go to Solution.
2024-06-21 12:58 AM
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
2024-06-21 12:58 AM
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