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

How translate/rotate an existing element ?

LVirone Greisch
Booster

Hello,

 

I can't find how to translate/rotate an existing element, can someone help me ?

 

The devKit project Element_Test doesn't contains an example for this, and I didn't found the function in the API Documentation.

 

Thanks

Virone Lorenzo
1 ACCEPTED SOLUTION

Accepted Solutions
Solution

Use ACAPI_Element_Edit. Take a look at the Element_Test example project, specifically in "Element_Edit.cpp" and the functions:

  • Do_DragElems
  • Do_StretchElems
  • Do_ResizeElems
  • Do_RotateElems
  • Do_MirrorElems
  • Do_ElevElems
Ralph Wessel BArch
Central Innovation

View solution in original post

2 REPLIES 2
Solution

Use ACAPI_Element_Edit. Take a look at the Element_Test example project, specifically in "Element_Edit.cpp" and the functions:

  • Do_DragElems
  • Do_StretchElems
  • Do_ResizeElems
  • Do_RotateElems
  • Do_MirrorElems
  • Do_ElevElems
Ralph Wessel BArch
Central Innovation

Thanks @Ralph Wessel 

 

I was searching for "Translate" or "Move", not for "Drag".

Virone Lorenzo