<?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 Re: Ilogic reading what file type is used for a derived part in Inventor Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-forum/ilogic-reading-what-file-type-is-used-for-a-derived-part/m-p/7624858#M250211</link>
    <description>&lt;P&gt;I will test this out and let you know. Thanks for the fast response.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Dec 2017 19:01:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-12-14T19:01:34Z</dc:date>
    <item>
      <title>Ilogic reading what file type is used for a derived part</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/ilogic-reading-what-file-type-is-used-for-a-derived-part/m-p/7624699#M250209</link>
      <description>&lt;P&gt;After searching and hurting my head trying to figure out the code here is basically what I am trying to do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in&amp;nbsp; a drawing place a single view of a part.&lt;/P&gt;&lt;P&gt;Part is derived from either a &lt;U&gt;part&lt;/U&gt; or an &lt;U&gt;assembly&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ilogic to read what the file type is being derived in and run appropriate code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Part: DerivedPartComponents&lt;/P&gt;&lt;P&gt;Assembly: DerivedAssemblyComponents&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have searched and only found suggestions on how to create derived parts. I need it to read the file type of the Derived file in the part.&lt;/P&gt;&lt;P&gt;All help in this matter will be greatly appreciated.&lt;/P&gt;&lt;P&gt;I am able to get the program to work if I keep to the part or the assembly however then I would need two codes written and have the user decide which code to use. I would prefer having one code that Read the .ipt or .iam from the derived link. One other possible layer that will need to be addressed is that these files are in iparts.(already have a possible solution for this.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 18:09:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/ilogic-reading-what-file-type-is-used-for-a-derived-part/m-p/7624699#M250209</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-14T18:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic reading what file type is used for a derived part</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/ilogic-reading-what-file-type-is-used-for-a-derived-part/m-p/7624837#M250210</link>
      <description>&lt;P&gt;Here is a quick code that will do what I think you are looking for.&lt;/P&gt;
&lt;PRE&gt;Dim oDoc As DrawingDocument
Dim oSheet As Sheet
Dim oDwgView As DrawingView
Dim oModelDoc As Document
Dim oBaseDoc As Document

oDoc = ThisApplication.ActiveDocument
oDwgView = oDoc.Sheets.Item(1).DrawingViews.Item(1)
oModelDoc = oDwgView.ReferencedDocumentDescriptor.ReferencedDocument
oBaseDoc = oModelDoc.ReferencedDocuments.Item(1)

If oBaseDoc.DocumentType = DocumentTypeEnum.kPartDocumentObject Then
	MessageBox.Show("This is a part")
	
ElseIf oBaseDoc.DocumentType = DocumentTypeEnum.kAssemblyDocumentObject Then
	MessageBox.Show("This is an assembly")
	
End If&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Dec 2017 18:54:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/ilogic-reading-what-file-type-is-used-for-a-derived-part/m-p/7624837#M250210</guid>
      <dc:creator>andrewiv</dc:creator>
      <dc:date>2017-12-14T18:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic reading what file type is used for a derived part</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/ilogic-reading-what-file-type-is-used-for-a-derived-part/m-p/7624858#M250211</link>
      <description>&lt;P&gt;I will test this out and let you know. Thanks for the fast response.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 19:01:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/ilogic-reading-what-file-type-is-used-for-a-derived-part/m-p/7624858#M250211</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-14T19:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic reading what file type is used for a derived part</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/ilogic-reading-what-file-type-is-used-for-a-derived-part/m-p/7624908#M250212</link>
      <description>&lt;P&gt;One other Caveat that I am working&amp;nbsp;with Is I want the properties for the&amp;nbsp;number and description to populate the Parts list which I was able to modify from another source however I am now getting an error with either the assembly&amp;nbsp;or the part direction.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Otherwise the Code works great. I figured it was going to be something simple and I just couldn't wrap my head around it at the moment. so thank you for that.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 19:21:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/ilogic-reading-what-file-type-is-used-for-a-derived-part/m-p/7624908#M250212</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-14T19:21:06Z</dc:date>
    </item>
  </channel>
</rss>

