BIM Coordinator Program (INT) April 22, 2024

Find the next step in your career as a Graphisoft Certified BIM Coordinator!

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

[SOLVED] Create Stairs using C++ API

Anonymous
Not applicable
Hey there, I wasn't able to find a structure on the C++ API that can represent the stairs that is used on the graphical interface of ArchiCAD. I thought it would be in API_Element, just like walls, windows and the other elements.

Is there any way of creating stairs using C++ API?
2 REPLIES 2
Ralph Wessel
Mentor
Xylios wrote:
Hey there, I wasn't able to find a structure on the C++ API that can represent the stairs that is used on the graphical interface of ArchiCAD. I thought it would be in API_Element, just like walls, windows and the other elements.
A stair is simply an object, so you would use API_ObjectType. The one difference is specifying the correct object tool. Do this by setting the head.variationID to APIVarId_SymbStair.
Ralph Wessel BArch
Anonymous
Not applicable
Thank you for the answer! =]
Learn and get certified!