cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
Nayan
Booster

Change Navigator View property using "APINavigator_ChangeNavigatorViewID"

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 Solution

Accepted Solutions
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);

Go to post

2 Replies 2
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.

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!