<?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: Object Browser for Inventor in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/object-browser-for-inventor/m-p/10671375#M44937</link>
    <description>&lt;P&gt;I think you have several otions.&lt;/P&gt;&lt;P&gt;1: In the VBa editor you can press F2&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JelteDeJong_0-1633550132893.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/974177i57EAEDCFC1D8AA3C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JelteDeJong_0-1633550132893.png" alt="JelteDeJong_0-1633550132893.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;for the object browser. (VBa is obsolete in my opinion and is not installed anymore by default with Inventor. but you will get exactly what you are asking for.)&lt;/P&gt;&lt;P&gt;2: The "Programing/API Help" is good in my opinion.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JelteDeJong_1-1633550327980.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/974178iAE3AD06FD33727D9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JelteDeJong_1-1633550327980.png" alt="JelteDeJong_1-1633550327980.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3: you can &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" rel="noopener"&gt;download&lt;/A&gt; the object model tree as PDF "Poster"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JelteDeJong_2-1633550805364.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/974182i4C3CB0AB57AF0105/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JelteDeJong_2-1633550805364.png" alt="JelteDeJong_2-1633550805364.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;4: If you are working in Visual studio and you have made a reference to the "Autodesk.Inventor.Interop.dll" then you can use the object browser from Visual Studio.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JelteDeJong_3-1633550938617.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/974184iE7F67AAB8F7DEED3/image-size/large?v=v2&amp;amp;px=999" role="button" title="JelteDeJong_3-1633550938617.png" alt="JelteDeJong_3-1633550938617.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Oct 2021 20:10:16 GMT</pubDate>
    <dc:creator>JelteDeJong</dc:creator>
    <dc:date>2021-10-06T20:10:16Z</dc:date>
    <item>
      <title>Object Browser for Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/object-browser-for-inventor/m-p/10671266#M44936</link>
      <description>&lt;P&gt;This is probably a reach, but I do lot's of work for both Inventor and Solid Edge.&amp;nbsp; In SE we have a tool called Spy (see attachment) that is invaluable for programming.&amp;nbsp; &amp;nbsp;Does anything exist in the Inventor world?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 19:15:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/object-browser-for-inventor/m-p/10671266#M44936</guid>
      <dc:creator>breinkemeyer</dc:creator>
      <dc:date>2021-10-06T19:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Object Browser for Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/object-browser-for-inventor/m-p/10671375#M44937</link>
      <description>&lt;P&gt;I think you have several otions.&lt;/P&gt;&lt;P&gt;1: In the VBa editor you can press F2&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JelteDeJong_0-1633550132893.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/974177i57EAEDCFC1D8AA3C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JelteDeJong_0-1633550132893.png" alt="JelteDeJong_0-1633550132893.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;for the object browser. (VBa is obsolete in my opinion and is not installed anymore by default with Inventor. but you will get exactly what you are asking for.)&lt;/P&gt;&lt;P&gt;2: The "Programing/API Help" is good in my opinion.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JelteDeJong_1-1633550327980.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/974178iAE3AD06FD33727D9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JelteDeJong_1-1633550327980.png" alt="JelteDeJong_1-1633550327980.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3: you can &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" rel="noopener"&gt;download&lt;/A&gt; the object model tree as PDF "Poster"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JelteDeJong_2-1633550805364.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/974182i4C3CB0AB57AF0105/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JelteDeJong_2-1633550805364.png" alt="JelteDeJong_2-1633550805364.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;4: If you are working in Visual studio and you have made a reference to the "Autodesk.Inventor.Interop.dll" then you can use the object browser from Visual Studio.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JelteDeJong_3-1633550938617.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/974184iE7F67AAB8F7DEED3/image-size/large?v=v2&amp;amp;px=999" role="button" title="JelteDeJong_3-1633550938617.png" alt="JelteDeJong_3-1633550938617.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 20:10:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/object-browser-for-inventor/m-p/10671375#M44937</guid>
      <dc:creator>JelteDeJong</dc:creator>
      <dc:date>2021-10-06T20:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Object Browser for Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/object-browser-for-inventor/m-p/10672595#M44938</link>
      <description>&lt;P&gt;I'm using following VBA macro for this. You need to display Locals window in VBA editor and run this method.&lt;/P&gt;&lt;P&gt;You can see in Locals&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;First selected object&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;All selected objects&lt;/LI&gt;&lt;LI&gt;Application&lt;/LI&gt;&lt;LI&gt;Active document&lt;/LI&gt;&lt;LI&gt;Active edit document (Edited part in assembly context)&lt;/LI&gt;&lt;LI&gt;Active edit object (Active sketch for example)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Now you can expand all of them and look what is inside&lt;/P&gt;&lt;P&gt;For quick info what is selected I print to Immediate window type of first selected object. For this you need to implement conversion function (ObjectTypeEnumToString). This function is too big to paste here, but you can generate the code using iLogic.&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="michaelnavara_0-1633598940783.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/974391iF9A9D3623C6B275A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="michaelnavara_0-1633598940783.png" alt="michaelnavara_0-1633598940783.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Spy function (VBA)&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Public Sub Spy()
    Dim SelectedObject As Variant
    Dim Selection As ObjectCollection
    
    Dim app As Inventor.Application
    Set app = ThisApplication
    
    Dim ActiveDoc As Document
    Set ActiveDoc = app.ActiveDocument
    
    Dim EditedDoc As Document
    Set EditedDoc = app.ActiveEditDocument
    
    Dim ActiveObject As Variant
    Set ActiveObject = app.ActiveEditObject
    
MainCode:
    On Error GoTo ErrLine1
    Set SelectedObject = ActiveDoc.SelectSet.Item(1)
    Set Selection = app.TransientObjects.CreateObjectCollection(ActiveDoc.SelectSet)
    Debug.Print ObjectTypeEnumToString(SelectedObject.Type)

    Stop
    Exit Sub
    
ErrLine1:
    Debug.Print "&amp;lt;No Selection&amp;gt;"
    Set SelectedObject = ThisApplication
   
    Stop
End Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ObjectTypeEnumToString function stub (VBA)&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Function ObjectTypeEnumToString(t As ObjectTypeEnum) As String
   Select Case t
      Case kEdgeCollectionObject: ObjectTypeEnumToString = "kEdgeCollectionObject": Exit Function
...
   End Select
End Function&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ObjectTypeEnumToString code generator (iLogic)&lt;/P&gt;&lt;P&gt;This function creates full code and set them to the system clipboard. Then you can just paste the code to VBA module&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim code As New System.Text.StringBuilder
Dim ote = ThisDoc.Document.Type
Dim oteType As Type = ote.GetType()
code.AppendLine("Function ObjectTypeEnumToString(t as ObjectTypeEnum) As String")
code.AppendLine("   Select Case t")
For Each value In [Enum].GetValues(oteType)
	Dim name = [Enum].GetName(oteType, value)
	code.AppendFormat("      Case {0}: ObjectTypeEnumToString = ""{1}"": Exit Function{2}", value, name, vbCrLf)
Next
code.AppendLine("   End Select")
code.AppendLine("End Function")
System.Windows.Forms.Clipboard.SetText(code.ToString())
MsgBox("Code is in clipboard", Title :="ObjectTypeEnumToString")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope it helps&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 09:37:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/object-browser-for-inventor/m-p/10672595#M44938</guid>
      <dc:creator>Michael.Navara</dc:creator>
      <dc:date>2021-10-07T09:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Object Browser for Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/object-browser-for-inventor/m-p/10672806#M44939</link>
      <description>&lt;P&gt;Thanks guys.&amp;nbsp; Using Visual studio here working in c#&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 11:31:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/object-browser-for-inventor/m-p/10672806#M44939</guid>
      <dc:creator>breinkemeyer</dc:creator>
      <dc:date>2021-10-07T11:31:09Z</dc:date>
    </item>
  </channel>
</rss>

