<?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: Limiting Visible.Documents to open IDW files in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/limiting-visible-documents-to-open-idw-files/m-p/10818128#M42441</link>
    <description>&lt;P&gt;OK Alan, this sounds like a good starting point:&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;The object model diagram doesn't have everything included so the help file is needed. I have just found that the index works well for seeing the hierarchy.&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;I'll try this soon as I have some free time, and let you know how it works for me.&lt;/P&gt;&lt;P&gt;I beginning to see that a lot of what I've learned so far came from observation/musing about others code and trial-and-error hacking together others code.&amp;nbsp;Not my favorite way to learn.&lt;/P&gt;&lt;P&gt;Thanx again for the direction!&lt;/P&gt;</description>
    <pubDate>Sun, 12 Dec 2021 23:36:22 GMT</pubDate>
    <dc:creator>cadman777</dc:creator>
    <dc:date>2021-12-12T23:36:22Z</dc:date>
    <item>
      <title>Limiting Visible.Documents to open IDW files</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/limiting-visible-documents-to-open-idw-files/m-p/10814928#M42431</link>
      <description>&lt;P&gt;Here I am back again, stuck on lack of information.&lt;/P&gt;&lt;P&gt;Maybe someone can direct me to the rabbithole that shows me what calls I can make to limit "Visible.Documents" to only open IDW files and not &lt;EM&gt;try&lt;/EM&gt; to any open IAM or IPT files.&lt;/P&gt;&lt;P&gt;Here's the scenario:&lt;/P&gt;&lt;P&gt;I have a pile of IDW files open along with an assembly and some parts.&lt;/P&gt;&lt;P&gt;I'm running a rule that will only process IDW files, so when it tries to open an IAM or IPT file, it opens a DB with an error.&lt;/P&gt;&lt;P&gt;I want to prevent that error from poping up so the rule can continue processing files that are only IDWs.&lt;/P&gt;&lt;P&gt;I tried 'error handling' but to no avail.&lt;/P&gt;&lt;P&gt;So now I'm trying an 'If/Then/End If' statment.&lt;/P&gt;&lt;P&gt;But I can't figure out how to reach into 'VISIBLE.DOCUMENTS' to tell it to skip non-IDW files, or to only process IDW files.&lt;/P&gt;&lt;P&gt;Anyone in here able to direct me to some reading on what applies to 'Visible.Documents'?&lt;BR /&gt;Here's the code in question (don't recall where I picked it up, but it works very well):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;' This rule runs the below rule on all open parts
Dim addIn As ApplicationAddIn
Dim addIns As ApplicationAddIns = ThisApplication.ApplicationAddIns
Dim iLogicAuto
For Each addIn In addIns
    If InStr(addIn.DisplayName, "iLogic") &amp;gt; 0 Then
        iLogicAuto = addIn.Automation
        Exit For
    End If
Next
For Each oDoc As Document In ThisApplication.Documents.VisibleDocuments
    oDoc.Activate()
	   	iLogicAuto.RunExternalRule(oDoc, "rule_filename")
Next

'This is what I tried but failed:
'For Each oDoc As Document In ThisApplication.Documents.VisibleDocuments
'	If oDoc.PropertySets.Item("Design Tracking Properties").Item("Document SubType Name").Value = "Sheet Metal"  Then
'    	oDoc.Activate() 'This is the added code that doesn't work
'		iLogicAuto.RunExternalRule(oDoc, "rule_filename")
'	End If
'Next&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanx...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 17:02:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/limiting-visible-documents-to-open-idw-files/m-p/10814928#M42431</guid>
      <dc:creator>cadman777</dc:creator>
      <dc:date>2021-12-10T17:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting Visible.Documents to open IDW files</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/limiting-visible-documents-to-open-idw-files/m-p/10815063#M42432</link>
      <description>&lt;P&gt;Just add a document type filter in there like this:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;For Each oDoc As Document In ThisApplication.Documents.VisibleDocuments
	If oDoc.DocumentType &amp;lt;&amp;gt; DocumentTypeEnum.kDrawingDocumentObject Then Continue For
	oDoc.Activate()
	iLogicAuto.RunExternalRule(oDoc, "rule_filename")
Next&lt;/LI-CODE&gt;
&lt;P&gt;That way, if the document is not a DrawingDocument, it will immediately skip to the next oDoc in the collection.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 18:15:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/limiting-visible-documents-to-open-idw-files/m-p/10815063#M42432</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2021-12-10T18:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting Visible.Documents to open IDW files</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/limiting-visible-documents-to-open-idw-files/m-p/10815083#M42433</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/88249"&gt;@cadman777&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In addition to the previous reply, you can use something like the example below to process only drawing files.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just as a general side note, I can tell you're struggling to understand how others are able to find their way around and you are not... and I think it might help to understand that the newer versions of Inventor have improved iLogic authoring tools that helps us navigate the API as we type.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately, since you're still on a much older version still ( I think ), you must dig through the API help and find these things on your own which can be difficult ( many of us did it that way for years also).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know this isn't much help, but maybe it will provide some understanding of why it seems easier for others.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Curtis_W_0-1639160548410.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/999990i8BC184769CE59EE2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Curtis_W_0-1639160548410.png" alt="Curtis_W_0-1639160548410.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A href="http://inventortrenches.blogspot.com" target="_blank" rel="noopener"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Document&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;Documents&lt;/SPAN&gt;.&lt;SPAN&gt;VisibleDocuments&lt;/SPAN&gt;
	&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;DocumentType&lt;/SPAN&gt; = &lt;SPAN&gt;DocumentTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kDrawingDocumentObject&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
		&lt;SPAN&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;FullFileName&lt;/SPAN&gt;,,&lt;SPAN&gt;"iLogic"&lt;/SPAN&gt;)
	&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
&lt;SPAN&gt;Next&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 18:27:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/limiting-visible-documents-to-open-idw-files/m-p/10815083#M42433</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2021-12-10T18:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting Visible.Documents to open IDW files</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/limiting-visible-documents-to-open-idw-files/m-p/10815120#M42434</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;&amp;nbsp;&amp;amp;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/105031"&gt;@Curtis_Waguespack&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Excellent!&lt;/P&gt;&lt;P&gt;Now please tell me how you knew to use that line of code and not the line I used?&lt;/P&gt;&lt;P&gt;Don't they all look for a file type?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/105031"&gt;@Curtis_Waguespack&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Precisely!&lt;/P&gt;&lt;P&gt;I'm permanently offline, so I have to access the Help system from a separate computer that's online.&lt;/P&gt;&lt;P&gt;Also, I'm working on an old version of Inventor, which means I have to massage every snippet I get from here to make it work. One example is use of the VB Dictionary function. It won't work in 2010, so I have to use an Array and then use a round about method to sort it. But that still has problems b/c I'm 'green'. But the help in here goes a LONG way towards keeping my head above water.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gentlemen, your expertise is appreciated!&lt;/P&gt;</description>
      <pubDate>Sun, 12 Dec 2021 17:34:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/limiting-visible-documents-to-open-idw-files/m-p/10815120#M42434</guid>
      <dc:creator>cadman777</dc:creator>
      <dc:date>2021-12-12T17:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting Visible.Documents to open IDW files</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/limiting-visible-documents-to-open-idw-files/m-p/10815138#M42435</link>
      <description>&lt;P&gt;Just throwing another 'bone' out there, in case file extension is important, since a file extension is used in the title of the post.&amp;nbsp; In stead of, or in addition to checking DocumentType, you could also check the file's extension without 'too much' trouble.&amp;nbsp; Here is one way to do that.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;For Each oDoc As Document In ThisApplication.Documents.VisibleDocuments
	'check file extension for ".idw" (or .dwg)
	'I use Try...Catch, because if an open document has not been saved yet, it won't have a 'FullFileName'.
	Try
		If System.IO.Path.GetExtension(oDoc.FullFileName) &amp;lt;&amp;gt; ".idw" Then Continue For
	Catch
	End Try
	oDoc.Activate()
	iLogicAuto.RunExternalRule(oDoc, "rule_filename")
Next&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 18:46:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/limiting-visible-documents-to-open-idw-files/m-p/10815138#M42435</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2021-12-10T18:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting Visible.Documents to open IDW files</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/limiting-visible-documents-to-open-idw-files/m-p/10815382#M42436</link>
      <description>&lt;P&gt;Thanx for the 'added value'!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only thing about all this is, I didn't save any of the IDW files, so they technically don't have a file extension.&lt;/P&gt;&lt;P&gt;I don't know if you recall, but I asked in another post how to make and process IDW's without opening them.&lt;/P&gt;&lt;P&gt;But since that appeared to be tied strictly to the API and Apprentice, I figrued it was well above my pay-grade, so I opted to go this route instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far I'm gaining on it thanx to your help and that of the other kind experts in here!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:07:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/limiting-visible-documents-to-open-idw-files/m-p/10815382#M42436</guid>
      <dc:creator>cadman777</dc:creator>
      <dc:date>2021-12-10T21:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting Visible.Documents to open IDW files</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/limiting-visible-documents-to-open-idw-files/m-p/10817527#M42437</link>
      <description>&lt;P&gt;Hey Curtis,&lt;/P&gt;&lt;P&gt;I have one question about your code.&lt;/P&gt;&lt;P&gt;Considering this line:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Document&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;Documents&lt;/SPAN&gt;.&lt;SPAN&gt;VisibleDocuments&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;How would I know to use the Method "DocumentTypeEnum" in the below code if I never knew it before?&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;DocumentType&lt;/SPAN&gt; = &lt;SPAN&gt;DocumentTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kDrawingDocumentObject&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;In other words, when I see "VisibleDocuments", where would I look to find the Methods and Properties that would clue me in that I needed to choose "DocumentType" and then "DocumentTypeEnum" to accomplish my objective?&amp;nbsp;Where is the MAP that shows me all the Methods and Properties I can use with "VisibleDocuments" to do FILTERING?&amp;nbsp;&amp;nbsp;This is where I get stuck every time when trying to construct a rule. Another example is this: How am I supposed to know to use "VisibleDocuments" instead of something else (like "OpenDocuments")? Are there other ways to do this? I don't know. Where can I find the ways to do this in TOPICAL format?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example of what I tried with this inquiry. I opened Inventor's VBA environment, pressed F2 and typed into the Search box "visibledocuments" and got this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cadman777_0-1639320589549.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1000348i0E80DE8CD7BD5FCA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cadman777_0-1639320589549.png" alt="cadman777_0-1639320589549.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then I clicked on "DocumentsEnumerator" in the bottom description and got this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cadman777_1-1639320624710.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1000349iEAE8FD0A6BA1F55F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cadman777_1-1639320624710.png" alt="cadman777_1-1639320624710.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then I clicked on Type, and then on "ObjectTypeEnum" in the bottom description and got this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cadman777_2-1639320669750.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1000350i4F09F61700D377AF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cadman777_2-1639320669750.png" alt="cadman777_2-1639320669750.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I searched the entire list(!) and didn't find ANYTHING related to a Drawing DOCUMENT. You can see that "kDrawingDocumentObject" is nowhere to be found in that list.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I ask you: How am I supposed to track down the Methods and Properties for this when they don't appear in the MAP that Autodesk has provided in it's VBA environment? Let me say it this way: AS A LINEAR THINKER, how am I supposed to approach this work from LINEAR LEARNING?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I start w/the tools Inventor provides (the VBA environment) and also my objective. I know I want to filter out all kinds of documents but Drawing documents. So where do I begin to find the right code to do that? Where is the TOPICAL INDEX that I can consult to find ALL BASIC FILTERING METHODS? Let me give you a hypothetical example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Suppose you start out knowing nothing but your objective that you want to achieve. You do not have a forum where you can go to consult with experts in the field. You do not know any experts or can't get any help from others. Then where do you start looking for the code words that match the topic you want to code and the syntax you need to do that? This is where I get stuck every time. I don't know where to START writing my code, and I don't know how to look up what I need to know, b/c there's so many different code words that seem to say what I want to do. And the help doesn't go into the details on what those code words each are intended to accomplish nor examples on how to use them.&amp;nbsp;I think part of my problem is I don't do well at THINKING BACKWARDS. It seems that you have to think backwards to construct code. It seems like the same as filing a law suit. You have to think backwards, which is the opposite of linear thinking.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Until I get an answer to this inquiry, which I've asked many times in here, I'll NEVER be able to do this myself, and will be forever dependent on everybody else's code and help, which I will eventually abandon doing. Occasional help is fine, but total dependence is not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanx for the help!&lt;/P&gt;</description>
      <pubDate>Sun, 12 Dec 2021 17:38:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/limiting-visible-documents-to-open-idw-files/m-p/10817527#M42437</guid>
      <dc:creator>cadman777</dc:creator>
      <dc:date>2021-12-12T17:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting Visible.Documents to open IDW files</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/limiting-visible-documents-to-open-idw-files/m-p/10817923#M42438</link>
      <description>&lt;P&gt;I think you may have looked in the wrong location. Required was the&amp;nbsp;DocumentTypeEnum class.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AAcheson_0-1639338432401.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1000388iFFA48E3A4FA90DE4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AAcheson_0-1639338432401.png" alt="AAcheson_0-1639338432401.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And from the API help search documents, properties -DocumentType, click to documentTypeEnum&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AAcheson_1-1639338672779.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1000390iD518EDB5077941A0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AAcheson_1-1639338672779.png" alt="AAcheson_1-1639338672779.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AAcheson_2-1639338794424.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1000391i0678831D7F3FC916/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AAcheson_2-1639338794424.png" alt="AAcheson_2-1639338794424.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Or alternately in API Help API Navigate through fly out tabs&amp;nbsp; &amp;gt;Reference Manual&amp;gt;Enums&amp;gt;DocumentTypeEnumsEnums.&lt;/P&gt;&lt;P&gt;This document type method doesn;t have a physical smaple in the help docuemnt so it isn't that clear on how to use it. But for these workflow gaps looking to the&amp;nbsp; forum to produce a sample helps a lot then you can backtrack and find the path used.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a link to API Object Model. However I am not sure why it is not listed under documents.&lt;/P&gt;&lt;P&gt;&lt;A href="https://knowledge.autodesk.com/search-result/caas/simplecontent/content/autodesk-C2-AE-inventor-C2-AE-api-object-model-reference-document-pdfs.html" target="_blank"&gt;https://knowledge.autodesk.com/search-result/caas/simplecontent/content/autodesk-C2-AE-inventor-C2-AE-api-object-model-reference-document-pdfs.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Dec 2021 20:23:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/limiting-visible-documents-to-open-idw-files/m-p/10817923#M42438</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2021-12-12T20:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting Visible.Documents to open IDW files</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/limiting-visible-documents-to-open-idw-files/m-p/10817943#M42439</link>
      <description>&lt;P&gt;Hi Alan,&lt;/P&gt;&lt;P&gt;Thanx for the guidance. It helps a little, but not enough.&lt;/P&gt;&lt;P&gt;I see what you did, but that would not have occurred to me.&lt;/P&gt;&lt;P&gt;When you go backwards you have to know how far back to go.&lt;/P&gt;&lt;P&gt;So why did you start with 'Documents' instead of 'Drawings'?&lt;/P&gt;&lt;P&gt;I want to filter Drawings, not general Documents.&lt;/P&gt;&lt;P&gt;See what I mean?&lt;/P&gt;&lt;P&gt;Doesn't make sense.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, let me explain how I go about it and see if you can identify where I'm making my mistake/s.&lt;/P&gt;&lt;P&gt;Let's start from the very beginning using the ObjectModel (OM).&lt;/P&gt;&lt;P&gt;1. I want to filter out every kind of document but Drawings (idw).&lt;/P&gt;&lt;P&gt;2. So I look at the yellow part of the OM (Drawings) and don't see anything that can help me.&lt;/P&gt;&lt;P&gt;3. So then I go up one level and look till I find what looks relevant, the white part of the OM (Documents):&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Document&amp;gt;DocumentDescriptorsEnumerator&amp;gt;DocumentDescriptor.&lt;/P&gt;&lt;P&gt;4. That's the end of the line so I then open the VBA editor and look up DocumentDescriptor.&lt;/P&gt;&lt;P&gt;5. That brings me to a list where I find DrawingDocument (Class).&lt;/P&gt;&lt;P&gt;6. The Members of that Class are many, so I scroll through them and find Type.&lt;/P&gt;&lt;P&gt;7. The bottom line description says Property Type as ObjectTypeEnum, so I click on that&lt;/P&gt;&lt;P&gt;8. That brings me to another list of Members, so I scroll through them and do NOT find anything related to DrawingType.&lt;/P&gt;&lt;P&gt;9. At that point I'm stuck.&lt;/P&gt;&lt;P&gt;10. Result: What you just told me above makes no sense at all when I follow the rabbithole in the VBA editor.&lt;/P&gt;&lt;P&gt;11. How am I supposed to make the connection to the Method you know you should use and the misleading ObjectBrowser system that is embedded in Inventor VBA that I am navigating? I just want to know how to make the jump from the OM to the ObjectBrowser to writing code that works.&lt;/P&gt;&lt;P&gt;The above is how linear thinkers follow scripts.&lt;/P&gt;&lt;P&gt;Please advise...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Dec 2021 21:38:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/limiting-visible-documents-to-open-idw-files/m-p/10817943#M42439</guid>
      <dc:creator>cadman777</dc:creator>
      <dc:date>2021-12-12T21:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting Visible.Documents to open IDW files</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/limiting-visible-documents-to-open-idw-files/m-p/10818083#M42440</link>
      <description>&lt;P&gt;In this case for me it was just something I have picked up while search posts. I suppose enough time working with the help documents and having some training in terminology of programming would help also.&lt;/P&gt;&lt;P&gt;Another path is DrawingDocument&amp;gt;DocumentType&amp;gt;DocumentTypeEnum&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AAcheson_0-1639345644526.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1000420iB2D5D88E5A773E88/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AAcheson_0-1639345644526.png" alt="AAcheson_0-1639345644526.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;or from the API help Drawing Document&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AAcheson_1-1639345955098.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1000423iBB191FDBBC3CAC7B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AAcheson_1-1639345955098.png" alt="AAcheson_1-1639345955098.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As regards knowing to check the document collection (group of document) called documents. I think this is&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;something that has to be picked up.&amp;nbsp; The object model diagram doesn't have everything&amp;nbsp; included so the help file is needed. I have just found that the index works well for seeing the hierarchy.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AAcheson_3-1639348044862.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1000439iABD8CAD2D68D6CD5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AAcheson_3-1639348044862.png" alt="AAcheson_3-1639348044862.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Dec 2021 22:37:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/limiting-visible-documents-to-open-idw-files/m-p/10818083#M42440</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2021-12-12T22:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting Visible.Documents to open IDW files</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/limiting-visible-documents-to-open-idw-files/m-p/10818128#M42441</link>
      <description>&lt;P&gt;OK Alan, this sounds like a good starting point:&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;The object model diagram doesn't have everything included so the help file is needed. I have just found that the index works well for seeing the hierarchy.&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;I'll try this soon as I have some free time, and let you know how it works for me.&lt;/P&gt;&lt;P&gt;I beginning to see that a lot of what I've learned so far came from observation/musing about others code and trial-and-error hacking together others code.&amp;nbsp;Not my favorite way to learn.&lt;/P&gt;&lt;P&gt;Thanx again for the direction!&lt;/P&gt;</description>
      <pubDate>Sun, 12 Dec 2021 23:36:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/limiting-visible-documents-to-open-idw-files/m-p/10818128#M42441</guid>
      <dc:creator>cadman777</dc:creator>
      <dc:date>2021-12-12T23:36:22Z</dc:date>
    </item>
  </channel>
</rss>

