cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Spline: how to determine the number of points?

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
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
Central Innovation
Anonymous
Not applicable
wow)
Ralph, thank you so much again!)

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!