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.

API Column Example

poco2013
Mentor
I'm looking for an c++ example to draw a single segment column from scratch. The example in Element_Test uses the function "Do_Create_Column", However this does not explain the parameters needed to fill in the associated memo structure necessary to build the column. Do_Create_Column just uses Get_Default to copy in the default column settings without explanation.

My problem is that I need to set the cross section width and depth different from the defaults and I do not know what parameters in memo need be set or if they need be stacked in the coords parameter.

if someone could supply a simple example for a 2 x 4 x 8' rectangular column or just point me in the right direction -- much appreciated. The parameters within the API_ColumnType are self explanatory . Just need to work out the Memo structure for columns??
Gerry

Windows 11 - Visual Studio 2022; ArchiCAD 27
2 REPLIES 2
Boling1
Contributor

I have the same problem,can anybody answer?

ArchiCAD 25
Boling1
Contributor

@poco2013 have you get the parameters changed by code? ACAPI_Element_ChangeParameters or ACAPI_Element_Change should be used ?

ArchiCAD 25
Learn and get certified!