2026-01-22 12:30 PM
Hi,
I need to get the real width, depth, and height of GDL Objects.
My problem is that ACAPI_LibraryPart_GetParams gives A/B values, but these are often not the actual size - the real dimensions are calculated in the GDL script (e.g. using ZZYZX, custom parameters, etc.).
My Idea was placing the object temporarily at 0° rotation, use ACAPI_Element_CalcBounds, then delete it. Would this give me the correct dimensions?
What is the recommended way to get the actual 3D size (width, depth, height) of an Object - both for placed elements and unplaced Library Parts?
ArchiCAD 29, Windows
Thanks!
Solved! Go to Solution.
2026-01-26 02:24 PM
As you've already noted, objects can have varying behaviour than means some functions like ACAPI_LibraryPart_GetParams don't always return what you want. The same is true for ACAPI_Element_CalcBounds, although it works far more often. But sometimes the only way to get reliable bounds for a 3D object is to extract the underlying 3D primitives for the element and calculate the bounds using the list of vertices.
2026-01-26 02:24 PM
As you've already noted, objects can have varying behaviour than means some functions like ACAPI_LibraryPart_GetParams don't always return what you want. The same is true for ACAPI_Element_CalcBounds, although it works far more often. But sometimes the only way to get reliable bounds for a 3D object is to extract the underlying 3D primitives for the element and calculate the bounds using the list of vertices.