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

TRANMAT Rotation Z

ReignBough
Enthusiast
I used the transformation matrix function on AC22:
TRANMAT* tm;
Geometry::TMRotation_Z(tm, radAngle);

This is not existing in AC23 and it seems that the new function is:
TRANMAT* tm;
tm->CreateRotationZ(radAngle);

But this function returns 0 values on tmx.

Is this a bug? Or, am I using this function wrong? Or, am I using the wrong function?

Also, is there a documentation on what are the new TRANMAT functions?
~ReignBough~
ARCHICAD 26 INT (from AC18)
Windows 11 Pro, AMD Ryzen 7, 3.20GHz, 32.0GB RAM, 64-bit OS
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Akos Somorjai
Graphisoft
Graphisoft
The correct code would be:
TRANMAT tran = TRANMAT::CreateRotationZ (radAngle);
tran.FillStatus2D ();
Best, Akos

View solution in original post

1 REPLY 1
Solution
Akos Somorjai
Graphisoft
Graphisoft
The correct code would be:
TRANMAT tran = TRANMAT::CreateRotationZ (radAngle);
tran.FillStatus2D ();
Best, Akos