<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to get the TypeID of a .gsm file in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-the-TypeID-of-a-gsm-file/m-p/227192#M4939</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;Hi all &lt;IMG style="display: inline;" src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" border="0" /&gt;&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;This works if i give the "typeID" and the path to the local file like here :&lt;BR /&gt;
&lt;PRE&gt;libPart.typeID   = APILib_ObjectID;
			libPart.location = &amp;amp;myGsmFilePath;
			err = ACAPI_LibPart_Register(&amp;amp;libPart);
			if(err == NoError)
			{
				...
			}&lt;/PRE&gt;
But...it doesn't work anymore when i don't provide the typeID.&lt;BR /&gt;I mean...the libPart.location information is not enough.&lt;BR /&gt;&lt;BR /&gt;How can i know what is the typeID of a libpart in a gsm file ?&lt;/DIV&gt;</description>
    <pubDate>Thu, 13 Jul 2023 12:59:48 GMT</pubDate>
    <dc:creator>gehairing</dc:creator>
    <dc:date>2023-07-13T12:59:48Z</dc:date>
    <item>
      <title>How to get the TypeID of a .gsm file</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-the-TypeID-of-a-gsm-file/m-p/227192#M4939</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi all &lt;IMG style="display: inline;" src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" border="0" /&gt;&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;This works if i give the "typeID" and the path to the local file like here :&lt;BR /&gt;
&lt;PRE&gt;libPart.typeID   = APILib_ObjectID;
			libPart.location = &amp;amp;myGsmFilePath;
			err = ACAPI_LibPart_Register(&amp;amp;libPart);
			if(err == NoError)
			{
				...
			}&lt;/PRE&gt;
But...it doesn't work anymore when i don't provide the typeID.&lt;BR /&gt;I mean...the libPart.location information is not enough.&lt;BR /&gt;&lt;BR /&gt;How can i know what is the typeID of a libpart in a gsm file ?&lt;/DIV&gt;</description>
      <pubDate>Thu, 13 Jul 2023 12:59:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-the-TypeID-of-a-gsm-file/m-p/227192#M4939</guid>
      <dc:creator>gehairing</dc:creator>
      <dc:date>2023-07-13T12:59:48Z</dc:date>
    </item>
  </channel>
</rss>

