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

Scaling issue for Objects rendering using C++

sijocherian
Contributor

Hi,
I'm encountering a problem in my C++ project where objects loaded through a library appear smaller than their actual size. The issue corrects itself when I open and close the object settings without any changes. I'm attaching a video to demonstrate this. Has anyone experienced something similar or knows why this might be happening? I'm looking for any advice on how to ensure objects load at their correct size initially.

https://www.loom.com/share/4dbb83d01f8948a4a7f26b71fdbfd610?sid=06d29ee2-6b18-4dbd-a35e-bc1063833879

1 REPLY 1

Hi Sijo,

 

My first suspicion would be the A and B parameters of the library part. See API_LibraryPart_GetParams.

Also the object element has the following relevant fields:

  • useXYFixSize
  • xRatio
  • yRatio

I suggest you check what you put in these values and parameters when creating the objects.

 

Hope that helps,

Bernd