cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
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.

Get project element parameters

Crocodile
Beginner

Hello, I've been trying to get embeded library parts parameters. I'm not really sure if i name it correctly but You will know what i mean if you see the screenshot. 

I can iterate through all elements but still, not sure how to get it's params / info. The only thing i could get was ID property but that's all. I tought there would be parameters array when i get an element or maby some 'GetParameters(Element_Guid)' but didn't find any. (sorry for another language on screenshot, but i hope it's all clear so makred it with colors)

On the screenshot there is one .gsm imported library object, right click and the first option (ctrl+t) opens settings window. As I marked with red color, would like to get somehow this parameters as string values. 

Would appreciate help with some .cpp function or solution how to get this values.

 

archicad object parameters.png

1 REPLY 1

Hi Crocodile,

 

The parameters of placed objects are stored in the corresponding element memo in the memo.params array.

 

There's also the function API_LibraryPart_GetParams function to get these params from a given library part (instead of placed object).

It's a bit tough to get a grip on how to properly deal with params. I suggest you check out the example project LibPart_Test.

 

Best,

Bernd

Bernd Schwarzenbacher - Archicad Add-On Developer - Get Add-Ons & Archicad Tips on my Website: Archi-XT.com
Learn and get certified!