2024-03-06 03:26 PM - last edited on 2024-09-17 01:09 PM by Doreena Deng
API_Box3D objBox3 = { 0,0,0,0,0,0 };
ACAPI_Database(APIDb_GetExtent3DID, &objBox3);
//
If a GDL that is partially displayed by the 3Dfilter is included, the entire GDL range is returned instead of the displayed part.
If GDL is not included (columns and beams, etc.), the partially displayed range due to the 3Dfilter will be returned.
Please tell me how to obtain the range displayed by the 3Dfilter even if GDL is included.
note)
Windows10
Archicad26
API Development Kit 26.3000
Visuial Studio 2019
Solved! Go to Solution.
2024-06-11 09:07 AM
I think the problem is the editable 3D hotspot are used in this table object which seems affacts this function. I'll report this issue to our developers.
Thanks!
2024-03-07 05:30 PM
addition)
If a GDL object is partially displayed due to a "3D Cutting Plane", the entire size including the hidden part will be returned.
In the case of walls or beams, only the visible part will be returned.
2024-05-31 11:06 AM
Hi,
I've tried to reproduce the problem you mentioned, but failed. I added a cutplane in gdl and checked box zMax, it changes when switched ON/OFF cutopt parameter.
if cutopt then
addz 3
roty 20
CUTPLANE
del 2
endif
block a,b,zzyzx
if cutopt then
cutend
endif
2024-06-05 03:20 AM
Thank you for your answer.
But it's not what I want to know.
1. Create a selection shape on the Floor Plan that intersects with the GDL object.
2. Press [F5] on the keyboard.
3. The GDL object is cropped.
4. Run APIDb_GetExtent3DID().
5. The result is an uncropped GDL.
2024-06-06 11:46 AM
Sorry I couldn't reproduce the problem following your steps...
Let me send you a pln file I tested. Also here is the code I tried:
API_Box3D box{};
ACAPI_Element_GetExtent3D ( &box );
I can see the return values of box.xMax, box.yMax changes based on the selection shape.
Note, I tested on AC27.2.1, is it an issue only happens on AC26?
HTH
2024-06-06 06:43 PM
I tried it with Archicad27.
It worked fine with the GDL columns you provided.
But the crop is ignored with the office table in the library.
2024-06-11 09:07 AM
I think the problem is the editable 3D hotspot are used in this table object which seems affacts this function. I'll report this issue to our developers.
Thanks!
2024-06-12 03:41 AM
Thank you.
I think, if the hotspot has substance it should be cropped, if it has no substance it should not be included in the bounds size.