License Delivery maintenance is expected to occur on Saturday, November 30, between 8 AM and 11 AM CET. This may cause a short 3-hours outage in which license-related tasks: license key upload, download, update, SSA validation, access to the license pool and Graphisoft ID authentication may not function properly. We apologize for any inconvenience.
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
Software Engineer Speckle Systems
Anonymous
Not applicable
wow)
Ralph, thank you so much again!)