Archicad C++ API
About Archicad add-on development using the C++ API.

export obj

Anonymous
Not applicable
hey, i try to write a script which export floors automatic to obj files,
can you please direct me what to learn from the api devkit?
3 REPLIES 3
Ralph Wessel
Mentor
zyben wrote:
hey, i try to write a script which export floors automatic to obj files,
can you please direct me what to learn from the api devkit?
Can you clarify your request a bit? Do you want to save the 3D model as a WaveFront (.obj) file? If so, this is already included in ArchiCAD.

If you mean something else, please explain in greater detail.
Ralph Wessel BArch
Software Engineer Speckle Systems
Anonymous
Not applicable
what i am trying to do is making a button which save each floor as an obj file in a local folder, this mean that it isolate every floor at a time and save it, and the result is that i have one button that export me all the floors in one click.
Akos Somorjai
Graphisoft
Graphisoft
zyben wrote:
what i am trying to do is making a button which save each floor as an obj file in a local folder, this mean that it isolate every floor at a time and save it, and the result is that i have one button that export me all the floors in one click.

You can switch between stories with APIEnv_ChangeStorySettingsID, then enumerate all elements there with ACAPI_Element_Filter(). After that, for 2D export you can use ACAPI_Element_ShapePrims, and for 3D export ACAPI_Element_Get3DInfo and its friends.

Hope this helps,

Akos