Developer forum
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Solution
Viktor Kovacs
Graphisoft Alumni
Graphisoft Alumni
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 Alumni
Graphisoft Alumni
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

Nayan
Booster
Thank you Viktor Kovacs.

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!