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.

How to get the TypeID of a .gsm file

gehairing
Participant
Hi all

I want to register library parts that i receive from a distant server as .gsm files. I copy the gsm file locally on the computer and then i want to "register" the libpart.

This works if i give the "typeID" and the path to the local file like here :
libPart.typeID   = APILib_ObjectID;
			libPart.location = &myGsmFilePath;
			err = ACAPI_LibPart_Register(&libPart);
			if(err == NoError)
			{
				...
			}
But...it doesn't work anymore when i don't provide the typeID.
I mean...the libPart.location information is not enough.

How can i know what is the typeID of a libpart in a gsm file ?
0 REPLIES 0
Learn and get certified!