3d Model dump example?
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2005-04-15
04:59 PM
- last edited on
2023-08-07
12:05 PM
by
Doreena Deng
2005-04-15
04:59 PM
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
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
Labels:
- Labels:
-
Add-On (C++)
5 REPLIES 5

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2005-04-17 03:17 AM
2005-04-17
03:17 AM
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
Karl
AC 28 USA and earlier • macOS Sequoia 15.4, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2005-04-18 09:53 AM
2005-04-18
09:53 AM
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.
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 ---
Archicad28/Revit2024/Rhino8/Solibri/Zoom
MBP2023:14"M2MAX/Sequoia+Win11
Archicad-user since 1998
my Archicad Book
Archicad28/Revit2024/Rhino8/Solibri/Zoom
MBP2023:14"M2MAX/Sequoia+Win11
Archicad-user since 1998
my Archicad Book
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2005-11-08 06:41 AM
2005-11-08
06:41 AM
stefan wrote: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.
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.
Cheers,
Kon.
KonMan
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2005-11-08 08:17 AM
2005-11-08
08:17 AM
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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2005-11-10 12:01 AM
2005-11-10
12:01 AM
Thanks Adam - I will dive in and check it out.
Regards,
Kon.
Regards,
Kon.