Choose your top Archicad wishes!

Read more
Archicad C++ API
About Archicad add-on development using the C++ API.

How to Get DlantAngle/SlantDirectionAngle And endPos from Object on ACAPI

nishida_jp
Participant

In Archicad25
The rotation of an object (column/beam) on the XY plane can be obtained using "angle", but how do you obtain "slantAnge" and "slantDirectionAngle"?

Also, the starting point is "pos", but how do you obtain the coordinates that correspond to "endPos" in the case of a beam?

1 REPLY 1
Yohei Sekiguchi
Contributor

Hi.

 

You can get the element properties through the element type structures as shown below.

 

element.column.slantAngle
element.column.slantDirectionAngle

 

 

The help files installed in the following locations will help you.

C:\Program Files\GRAPHISOFT\API Development Kit 24.3009\Documentation\MSDN\APIDevKit

 

The start and end points of beams can be obtained using begC and begE properties.

 

element.beam.begC
element.beam.begE