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!

Change Navigator View property using "APINavigator_ChangeNavigatorViewID"

Nayan
Booster
Hi,
I am try to change the Navigator Item "overrideCombination" and the type defination is " GS::uchar_t overrideCombination[API_UniLongNameLen];".

Using the "ACAPI_Override_GetOverrideCombination(combination, nullptr);" I am retrieving override combination "name" which is of type GS::UniString.

So whenever I trying to set the "API_NavigatorView.overrideCombination" with combination name it's showing error as it's trying to convert GS::UniString to GS::uchar_t.

Any suggestion how can I convert Unistring to GS::uchar_t and also how can I change "overrideCombination" item of the Navigator Item?
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Viktor Kovacs
Graphisoft
Graphisoft
From the "Override_Test" Add-On:

GS::UniString newCombinationName = "Override Test Add-on Combination Name";
GS::ucsncpy (view.overrideCombination, newCombinationName.ToUStr (), API_UniLongNameLen);

View solution in original post

2 REPLIES 2
Solution
Viktor Kovacs
Graphisoft
Graphisoft
From the "Override_Test" Add-On:

GS::UniString newCombinationName = "Override Test Add-on Combination Name";
GS::ucsncpy (view.overrideCombination, newCombinationName.ToUStr (), API_UniLongNameLen);
Nayan
Booster
Thank you Viktor Kovacs.