We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2024-03-04 03:29 AM - last edited on 2024-09-17 01:10 PM by Doreena Deng
2024-03-04 03:34 AM
note)
Windows10
Archicad26
API Development Kit 26.3000
Visuial Studio 2019
2024-03-05 12:38 AM
Can you upload a better quality and higher resolution screenshot? It is hard to see what it shows.
2024-03-06 01:41 AM - last edited on 2024-03-06 02:14 AM by Laszlo Nagy
Made it an attached file.
Please confirm.
2024-05-31 10:30 AM
Hi,
If you'd like to get the shape of model in 3D window, you can try 3D Manager functions to get the 3D polygon data.
(ex: ACAPI_3D_GetComponent())
You can find Example code in API Kit (3D_Test.c).
HTH
2024-05-31 11:05 AM
It looks like you need the geometry of the element as it appears in the 3D window rather than the geometry of the original element (without cropping). If so, you want to look at the documentation for the ModelAccess API. This provides access to the 3D bodies displayed in the 3D view. The documentation for ACAPI_ModelAccess_GetComponent includes a small code snippet that should help you get started. Once you have the body of the target element, you can extract faces, vertices, surfaces etc for a full 3D description.
2024-06-05 03:16 AM
Thank you for your answer.
But what I want to know is not the shape of the clopped object, but the shape of the clopping.
2024-06-05 11:06 AM
Do you want the shape of the 2D marquee the user drew?
2024-06-05 04:59 PM
That's right.
It is the shape of (3) in the image I presented.
Note)
At this point, the selected shape drawn by the user will be erased.
2024-06-05 09:59 PM
Use ACAPI_Selection_Get to populate a API_SelectionInfo structure. API_SelectionInfo.marquee will contain the coordinates of the selection polyline