<?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: OnFileInsertDialog in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/onfileinsertdialog/m-p/7870952#M91189</link>
    <description>&lt;P&gt;it work fine..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Private WithEvents f_uievents As FileUIEvents&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;out it in addin activation sub:&lt;/P&gt;&lt;P&gt;g_inventorApplication = addInSiteObject.Application&lt;BR /&gt;f_uievents = g_inventorApplication.FileUIEvents&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Private Sub m_fileEvents_OnFileInsertDialog(ByRef FileTypes() As String, DocumentObject As _Document, ParentHWND As Integer, ByRef FileName As String, ByRef RelativeFileName As String, ByRef LibraryName As String, ByRef CustomLogicalName() As Byte, Context As NameValueMap, ByRef HandlingCode As HandlingCodeEnum) Handles f_uievents.OnFileInsertDialog&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FileName = "C:\Vault\Projekty\36000\Typowe\36001\32-9-900851.ipt"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox(FileName)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HandlingCode = HandlingCodeEnum.kEventHandled&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;/P&gt;</description>
    <pubDate>Wed, 21 Mar 2018 10:40:37 GMT</pubDate>
    <dc:creator>marcin_otręba</dc:creator>
    <dc:date>2018-03-21T10:40:37Z</dc:date>
    <item>
      <title>OnFileInsertDialog</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/onfileinsertdialog/m-p/7853531#M91187</link>
      <description>&lt;P&gt;Hi all, in .net I would like to intercept the component replace event (single and multiple).&lt;BR /&gt;As a guide inventor, I've tried to use the "FileUIEvents.OnFileInsertDialog" event but it doesn't work ...&lt;BR /&gt;I set "FileName" and "HandlingCode" the parameters but always appears the standard dialog without path and filename.&lt;BR /&gt;Anything else to set? What's wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;P&gt;Alder&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Private Sub m_fileEvents_OnFileInsertDialog(ByRef FileTypes() As String, DocumentObject As _Document, ParentHWND As Integer, ByRef FileName As String, ByRef RelativeFileName As String, ByRef LibraryName As String, ByRef CustomLogicalName() As Byte, Context As NameValueMap, ByRef HandlingCode As HandlingCodeEnum) Handles m_fileEvents.OnFileInsertDialog&lt;BR /&gt;&amp;nbsp; &amp;nbsp;FileName = "C:\DIERRE\Designs\DIERRE\aa\AAAGU0000150.ipt"&lt;BR /&gt;&amp;nbsp; &amp;nbsp;HandlingCode = HandlingCodeEnum.kEventHandled&lt;BR /&gt;End Sub&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 17:00:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/onfileinsertdialog/m-p/7853531#M91187</guid>
      <dc:creator>alder_moriggi</dc:creator>
      <dc:date>2018-03-14T17:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: OnFileInsertDialog</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/onfileinsertdialog/m-p/7870833#M91188</link>
      <description>&lt;P&gt;If the dialog still pops up that seems your code does not catch the event, can you add a breakpoint in the event code&amp;nbsp;and debug it to see if it will run into the code? If it does not hit the code, then you can check if you defined the m_fileEvents as a member of the Class but not a function, and if the m_fileEvents&amp;nbsp; is set properly, and if you added proper event handler for the event etc.. And you can also refer to the sample code in the SDK (C:\Users\Public\Documents\Autodesk\Inventor 2018\SDK\DeveloperTools\Samples\VB.NET\AddIns\SimpleAddIn) to see how to change your code. If you still have problem you can attach your project here and we can have a look into it.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 09:52:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/onfileinsertdialog/m-p/7870833#M91188</guid>
      <dc:creator>YuhanZhang</dc:creator>
      <dc:date>2018-03-21T09:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: OnFileInsertDialog</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/onfileinsertdialog/m-p/7870952#M91189</link>
      <description>&lt;P&gt;it work fine..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Private WithEvents f_uievents As FileUIEvents&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;out it in addin activation sub:&lt;/P&gt;&lt;P&gt;g_inventorApplication = addInSiteObject.Application&lt;BR /&gt;f_uievents = g_inventorApplication.FileUIEvents&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Private Sub m_fileEvents_OnFileInsertDialog(ByRef FileTypes() As String, DocumentObject As _Document, ParentHWND As Integer, ByRef FileName As String, ByRef RelativeFileName As String, ByRef LibraryName As String, ByRef CustomLogicalName() As Byte, Context As NameValueMap, ByRef HandlingCode As HandlingCodeEnum) Handles f_uievents.OnFileInsertDialog&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FileName = "C:\Vault\Projekty\36000\Typowe\36001\32-9-900851.ipt"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox(FileName)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HandlingCode = HandlingCodeEnum.kEventHandled&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 10:40:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/onfileinsertdialog/m-p/7870952#M91189</guid>
      <dc:creator>marcin_otręba</dc:creator>
      <dc:date>2018-03-21T10:40:37Z</dc:date>
    </item>
  </channel>
</rss>

