BIM Coordinator Program (INT) April 22, 2024

Find the next step in your career as a Graphisoft Certified BIM Coordinator!

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

uchar_t to UniString conversion

Anonymous
Not applicable
Hello everyone,

im struggling a little bit with the the roomName of the API_​ZoneType. It's an array of type GS::uchar_t and i want to convert it to Unistring to export it to an excel sheet with LibXl. Anyone has an idea how this can be done? Thanks in advance!
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Tibor Lorantfy
Graphisoft Alumni
Graphisoft Alumni
You can simply use the operator= or the constructor function of the GS::UniString.
GS::UniString	roomNameUniStr = elem->zone.roomName;

View solution in original post

2 REPLIES 2
Solution
Tibor Lorantfy
Graphisoft Alumni
Graphisoft Alumni
You can simply use the operator= or the constructor function of the GS::UniString.
GS::UniString	roomNameUniStr = elem->zone.roomName;
Anonymous
Not applicable
Tibor wrote:
You can simply use the operator= or the constructor function of the GS::UniString.
GS::UniString	roomNameUniStr = elem->zone.roomName;
Thanks Tibor! That was easy. 😃
Learn and get certified!