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

Set Working Unit Preferences using API

PaulDebus
Newcomer

Hello,

I am currently working on an Add-on using the C++ API and I think I found a missing API function.

 

I can read the preferences for the working units (length unit etc.) using the

APIEnv_GetPreferencesID

 function, just like in the corresponding example in the documentation: https://archicadapi.graphisoft.com/documentation/apienv_getpreferencesid

 

Writing my modifications back, however, does not work, as the corresponding API function

APIEnv_SetPreferencesID

does not exist. (Other people seem to have been having similar issues: https://community.graphisoft.com/t5/Developer-forum/A-few-things-api-wish/m-p/17211)

 

Did I just miss this function, or is there another way to change those preferences?

 

Thanks in advance for your time and help!
Best
Paul

0 REPLIES 0