cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
nishida_jp
Booster

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

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 Solution

Accepted Solutions
Hiromichi Shinkawa
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

Go to post

1 Reply 1
Hiromichi Shinkawa
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

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!