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

Get the Type ID and Variation ID from API_LibPart

$
0
0
Author:gehairing
Posted: Mon Feb 22, 2016 11:00 am (GMT+1)


Thank you for the answer...but i don't understand what you mean.
Do you mean the ownUnID can give me an element from wich i can extract typeID and VariationID ?

I have tried playing around with something like this :

Code:
GS::UniString s = libPart.ownUnID;
   GS::Guid gs_guid(s);
   API_Element  element;
   BNZeroMemory (&element, sizeof (API_Element));
   element.header.guid  = GSGuid2APIGuid (gs_guid);
   GSErrCode err = ACAPI_Element_Get(&element);
   if(err == NoError)
   {
      typeID = element.header.typeID;
      variationID = element.header.variationID;
   }


But because i don't really know what it means i can't say why it doesn't work Laughing


Viewing all articles
Browse latest Browse all 564


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