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

Change Value of canValueBeEditable=false Property

Dayiz
Booster

Hello everyone,

 

I'm currently trying to change properties, but I struggle with BuiltIn Properties.

In the PropertyDefinition we have a bool "canValueBeEditable".

If this is set to false, is there anyway to change to Property? Or am I not able to access that with the C++ API.

Specifically, this is about the Property "HotlinkMasterID" in the "GeneralElemProperties" group. When i try to change it I get the error code -2130312310 which is "APIERR_READONLY".

 

Thx for any help

Kind Regards

Dayiz

1 ACCEPTED SOLUTION

Accepted Solutions
Solution
kovacsv
Booster

The field canValueBeEditable is an output only parameter that tells you if the given parameter can be modified using an API call. The hotlink master id can't be modified on element level (since it's tied to the hotlink object and not the element).

View solution in original post

1 REPLY 1
Solution
kovacsv
Booster

The field canValueBeEditable is an output only parameter that tells you if the given parameter can be modified using an API call. The hotlink master id can't be modified on element level (since it's tied to the hotlink object and not the element).