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:

I also tried to use just ACAPI_View_GoToView() alone

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