<?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 Property LibraryName (ReferencedFileDescriptor) in onSaveDocument-Event in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/property-libraryname-referencedfiledescriptor-in-onsavedocument/m-p/9441028#M107997</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I try to figure out, wether a component is member of an external library or not (e.g. Cadenas). As far as I know I have to use the property "LibraryName" wich is part of the ReferencedFileDescriptor. But how can I get fom a "Document"-Object to the ReferencedFileDescriptor?&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Private Sub oAppEvents_OnSaveDocument(ByVal DocumentObject As Document, ByVal BeforeOrAfter As EventTimingEnum,                                            ByVal Context As NameValueMap, ByRef HandlingCode As HandlingCodeEnum) _                                           Handles m_oAppEvents.OnSaveDocument

' Ignore Content-Center
If DocumentObject.DocumentType = DocumentTypeEnum.kPartDocumentObject Then
   Dim part As Inventor.PartDocument = DocumentObject
   If part.ComponentDefinition.IsContentMember Then
      HandlingCode = HandlingCodeEnum.kEventNotHandled
      Exit Sub
   End If
End If

' Ignore library-components.
?&lt;/LI-CODE&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;</description>
    <pubDate>Tue, 14 Apr 2020 06:47:05 GMT</pubDate>
    <dc:creator>IQUADRATAG</dc:creator>
    <dc:date>2020-04-14T06:47:05Z</dc:date>
    <item>
      <title>Property LibraryName (ReferencedFileDescriptor) in onSaveDocument-Event</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/property-libraryname-referencedfiledescriptor-in-onsavedocument/m-p/9441028#M107997</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I try to figure out, wether a component is member of an external library or not (e.g. Cadenas). As far as I know I have to use the property "LibraryName" wich is part of the ReferencedFileDescriptor. But how can I get fom a "Document"-Object to the ReferencedFileDescriptor?&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Private Sub oAppEvents_OnSaveDocument(ByVal DocumentObject As Document, ByVal BeforeOrAfter As EventTimingEnum,                                            ByVal Context As NameValueMap, ByRef HandlingCode As HandlingCodeEnum) _                                           Handles m_oAppEvents.OnSaveDocument

' Ignore Content-Center
If DocumentObject.DocumentType = DocumentTypeEnum.kPartDocumentObject Then
   Dim part As Inventor.PartDocument = DocumentObject
   If part.ComponentDefinition.IsContentMember Then
      HandlingCode = HandlingCodeEnum.kEventNotHandled
      Exit Sub
   End If
End If

' Ignore library-components.
?&lt;/LI-CODE&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 06:47:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/property-libraryname-referencedfiledescriptor-in-onsavedocument/m-p/9441028#M107997</guid>
      <dc:creator>IQUADRATAG</dc:creator>
      <dc:date>2020-04-14T06:47:05Z</dc:date>
    </item>
  </channel>
</rss>

