We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

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
Software Engineer Speckle Systems
Anonymous
Not applicable
Thank you for the answer! =]