Learn to manage BIM workflows and create professional Archicad templates with the BIM Manager Program.

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

Archicad Camera View Position Change

Emkave
Booster

Hello. I have been experimenting with ACAPI_View_GoToView and ACAPI_Drawing_GetDrawingLink functions. My idea was to make the camera to move to an selected element in Archicad environment, however, for some reason, ACAPI_Drawing_GetDrawingLink returns -2130313112 error. Here is the code:

Emkave_2-1739271716457.png

 

I also tried to use just ACAPI_View_GoToView() alone

Emkave_1-1739271592573.png

 

But ACAPI_View_GoToView() throws an exception. What is worse is that I can't print out what the exception is even with try-catch.

Have somebody had these issues before and how did you resolve them? Thank you in advance!

 

Operating system used: Windows 11

0 REPLIES 0

Setup info provided by author