We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

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

[SOLVED] Parameters

Anonymous
Not applicable
Could i get parameters using ACAPI_Element_Select.
F.e. get parameters from selected object and use these parameters for other object. I need hight, width, lenght, and position, probably sym_pos, or is there other way to get position?

I hope this makes sense.
13 REPLIES 13
Ralph Wessel
Mentor
kzaremba wrote:
Why it used to work without casting before ?
It didn't necessarily – I may have written that straight into the forum rather than a copy/paste from code. Can't be sure because C++ and the API are both constantly evolving, and old code won't necessarily compile in the future.
Ralph Wessel BArch
Software Engineer Speckle Systems
Anonymous
Not applicable
Ralph wrote:
Can't be sure because C++ and the API
So true

Anyway, I have put it inside a class and suddenly it's starting to crash again. I'm not sure why. Is putting it to the class changes handle somehow?
Ralph Wessel
Mentor
No, we've wrapped the whole API in classes without problems.
Ralph Wessel BArch
Software Engineer Speckle Systems
Anonymous
Not applicable
Thanks Ralph. You made me double check and I forgot to initialize getParam in the constructor. Now it's working.