Get length of a edge using A3DCurveLength
which computes the length of a curve with interval of edge
https://docs.techsoft3d.com/exchange/latest/build/_a3_d_s_d_k_advanced_tools_8h.html#aab8b78e53cb8dab5d914300438e1e30c
...
For the full code, check out our forum post.