I am new to Archicad AddOn development. I need to extract the material information and volume area and other information for MEP Elements like ducts, pipes, cables in Archicad. I tried to find some API for MEP elements but couldn't. Need help for proper way to extract these info using C++ APIs. If there is some demo sample provided in Archicad SDK that would also be helpful.
MEP elements are just GDL library objects. You extract their parameters the same as any other library object. Use the Library Part example in the sample SDK.
Be advised that not all the parameters listed are not necessarily calculated values but are just user fill ins fields. Also note that the A & B length fields are not used and just return one. Any values that are returned will be in metric units.
I have created a AddOn that does extract the Library values and prints them to the terminal. I use a Python script to communicate with the AddOn i have attached the same as a example. For Windows OS -- Archicad 26 - Python 3.7 or higher ONLY.