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

Beam reference axis

abrakadabra
Contributor

Hello,

 

I do not find any information about the reference axis placement in the API_​BeamType structure.

Is it somewhere hidden in the corresponding memo?

abrakadabra_0-1654344713098.png

 

Regards,

 

1 ACCEPTED SOLUTION

Accepted Solutions
Solution

Hi!

 

Unfortunately it's not included in the documentation of API_BeamType for some reason.

But it's there! you can access it with something like: elem.beam.anchorPoint

 

And you can check the definition of API_BeamType in the "APIdefs_Elements.h" file of the API SDK. The datatype is short and I think you can also just use the API_AnchorID enum to identify which numbers correspond to which anchor: https://archicadapi.Graphisoft.com/documentation/api_anchorid

View solution in original post

1 REPLY 1
Solution

Hi!

 

Unfortunately it's not included in the documentation of API_BeamType for some reason.

But it's there! you can access it with something like: elem.beam.anchorPoint

 

And you can check the definition of API_BeamType in the "APIdefs_Elements.h" file of the API SDK. The datatype is short and I think you can also just use the API_AnchorID enum to identify which numbers correspond to which anchor: https://archicadapi.Graphisoft.com/documentation/api_anchorid