Quantcast
Channel: ArchiCAD-Talk - Developer Forum
Viewing all articles
Browse latest Browse all 564

How to get the TypeID of a .gsm file

$
0
0
Author:gehairing
Posted: Fri Oct 23, 2015 5:43 pm (GMT+1)


Hi all Smile

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 :

Code:
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 ?


Viewing all articles
Browse latest Browse all 564

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>