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

2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations

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! =]