cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Developer forum

3d Model dump example?

Anonymous
Not applicable
I am trying to learn the basics of the API.
I usually learn simply by example. Its easier for me.

I would like to ask if there is somewhere an example of a model dump.
I mean loop through all elements
and for each element output geometry materials and so on in a simple text file.

In the documentation its says about a plan dump but there is no link for the example.

Thx in advance
5 REPLIES 5

Karl Ottenstein
Moderator
Did you try the example folder called "Plan_Dump"? 😉 (Ignore the comment at the top of Plan_Dump.cpp which suggests that the source file does something else.)

Karl
One of the forum moderators   •   AC 26 USA and earlier   •   macOS Ventura 13.2, iMac Pro 10-Core, Radeon Pro Vega 64

stefan
Advocate
I have a non-optimised, badly structured but working add-on, based on the API-examples, which "dumps" the geometry of the ArchiCAD scene into ascii-files. I export to the radiance format, but I'm hoping to generalise it to other formats as well...

I don't handle texture mapping (yet?) and also ignore smoothing/normals, so it's in no way a releasable addon.

I've had quite some input from other developers on this forum, so in that spirit I can share what I have.
--- stefan boeykens --- bim-expert-architect-engineer-musician ---
Archicad26/Revit2022/Rhino7/Unity/Solibri/Zoom
MBP2019:i9Octo2.4GHz32GBVega20/Ventura+Win11
ARCHICAD-user since 1998

Anonymous
Not applicable
stefan wrote:
I have a non-optimised, badly structured but working add-on, based on the API-examples, which "dumps" the geometry of the ArchiCAD scene into ascii-files. I export to the radiance format, but I'm hoping to generalise it to other formats as well...

I don't handle texture mapping (yet?) and also ignore smoothing/normals, so it's in no way a releasable addon.

I've had quite some input from other developers on this forum, so in that spirit I can share what I have.
Im a noob to ArchiCad as well, and would really really really like to iterate thru a model and get the coordinates of all elememts and their x,y,z coordinates ~ Im specifically interested in 'Zones' and Objects like chairs, tables etc etc.

Cheers,
Kon.
KonMan

Anonymous
Not applicable
Program Files\Graphisoft\API Development Kit 6.1\Examples\Plan_Dump\

This is a basic example, just printing parts of the API_Element structure. If you need more detailed information about how the objects look you should look at the function ACAPI_LibPart_ShapePrims

Anonymous
Not applicable
Thanks Adam - I will dive in and check it out.

Regards,
Kon.

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!