When opening files with Solidworks my Solidworks Addin is hooked into the ReferenceNotFoundNotify-event. When this event fires, I search in our ERP-system for the correct file location for the missing file and show a window like the Solidworks window below:
Difference is that I first show the locations from our ERP-system, followed by a browse and suppress button.
I cannot find a way to supress a file from the ReferenceNotFoundNotify-event. Setting the SldWorks::SetMissingReferencePathName to an empty string or null in combination with returning 0 or 1 in the ReferenceNotFoundNotify-event do not work.
Is there someone wo knows how to supress a file in the ReferenceNotFoundNotify-event and preventing the default Solidworks window from showing?

I thought of that, but then I don't have the benefits of using the SOLIDWORKS file search sequence. I ended up waiting for the SOLIDWORKS window to popup, iterate through the components of the window and sending a Windows message to the 'Suppress this component'-button.
– JohanYou can use the solidworks search sequence in the arguments. https://help.solidworks.com/2026/english/api/sldworksapi/SolidWorks.Interop.sldworks~SolidWorks.Interop.sldworks.ISldWorks~GetDocumentDependencies2.html
– JJZSorry for the late response. Missed that in the documentation, thank you! I am going to implement this
– Johan