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

Spline: how to determine the number of points?

Anonymous
Not applicable
ArchiCAD API 19.

I need to move and rotate the spline.
Memo contains **coords but where are stored the number of points?

Thank you!)
2 REPLIES 2
Ralph Wessel
Mentor
Tsepov wrote:
I need to move and rotate the spline.
Memo contains **coords but where are stored the number of points?
You can get the size of the allocated handle and divide it by the size of a single coordinate, e.g.
BMGetHandleSize((GSHandle) memo.coords) / sizeof(API_Coord)
However, if you want to move and/or rotate the whole spline it would be easier to apply a transformation to the element with ACAPI_Element_Edit and passing the transformation in a API_EditPars structure.
Ralph Wessel BArch
Anonymous
Not applicable
wow)
Ralph, thank you so much again!)