cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
til0byte
Participant

How to get true/actual dimensions of Library Parts (placed and unplaced)?

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!

1 Solution

Accepted Solutions
rwessel
Booster

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.

Central Innovation Ltd

Go to post

1 Reply 1
rwessel
Booster

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.

Central Innovation Ltd

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!