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

How to Get Parameters of Column, Beam, Object(Column, Beam) in ARCHICAD25 By C++ Addon

nishida_jp
Participant

How to Get Parameters of Column, Beam, Object(Column, Beam) in ARCHICAD25 By C++ Addon
[Parameters]
- Width, Height, Length (3D Width Length)
- Postion (3D: x, y z pos)
- Volume (true volume : H Type Steel etc)
- crossSectionArea

If you don't know the code, please let us know the URL of the site where it is posted.

2 REPLIES 2
poco2013
Mentor

You might want to look at the function: SavePropertyValuesofElement in Property_Test OR Do_CalcComponentQuantities in Element_Test  in the API Examples. Both use the same methods that you need. These main function(s) both write to the Session Report using WriteReport(). You will have to modify that function to use the returned values you want as it will return all the properties, so you would have to also filter the returns. i use these functions to write all this data to a Python script then use Pandas to filter the info, etc. You will get back a lot of data, but very fast.

Gerry

Windows 11 - Visual Studio 2022; ArchiCAD 27
Ralph Wessel
Mentor

Do you have access to the Archicad API developer site, i.e. have you registered as a developer?

Ralph Wessel BArch
Software Engineer Speckle Systems