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!

API_DatabaseUnid to GS::Unistring

Newbie
Participant

Is there way to convert api_databaseunid to unistring?

Please share any suggestion.

1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Joel Buehler
Enthusiast

urm, isnt the API_DatabaseUnId not just a struct with only a API_GUID in it? 

 

JoelBuehler_0-1691509577229.png

 

You can retrive the guid like this: API_Guid testguid = aApiDatabseUnId.elemSetId;

you can convert the API_Guid to a GS::UniString with the API Call "APIGuidToString(aGuid)"

 

View solution in original post

2 REPLIES 2
Solution
Joel Buehler
Enthusiast

urm, isnt the API_DatabaseUnId not just a struct with only a API_GUID in it? 

 

JoelBuehler_0-1691509577229.png

 

You can retrive the guid like this: API_Guid testguid = aApiDatabseUnId.elemSetId;

you can convert the API_Guid to a GS::UniString with the API Call "APIGuidToString(aGuid)"

 

Hi Joel,

Many thanks for your guidance.

 

Learn and get certified!