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] Convert API_Guid to GS::UniString or char array

Anonymous
Not applicable
Hi

I need to send Element guid to web service.
Here guid is a struct
struct API_Guid {
	UInt32		time_low;
	unsigned short	time_mid;
	unsigned short	time_hi_and_version;
	unsigned char	clock_seq_hi_and_reserved;
	unsigned char	clock_seq_low;
	unsigned char	node[6];
}
How I can convert API_Guid to UniString or char array.

Please advise.
3 REPLIES 3
ReignBough
Enthusiast
GS::Guid::ConvertToString()
~ReignBough~
ARCHICAD 26 INT (from AC18)
Windows 11 Pro, AMD Ryzen 7, 3.20GHz, 32.0GB RAM, 64-bit OS
Tibor Lorantfy
Graphisoft Alumni
Graphisoft Alumni
ggiloyan wrote:
How I can convert API_Guid to UniString or char array.
Solution:
API_Guid apiGuid = ...
char guidStr[64];
APIGuid2GSGuid (apiGuid).ConvertToString (guidStr);
Anonymous
Not applicable
Thanks
Learn and get certified!