Notifies the user program before the SOLIDWORKS software displays a dialog box prompting the end-user to browse for the referenced file.
.NET Syntax
Visual Basic (Declaration) | |
---|
Public Delegate Function DSldWorksEvents_ReferenceNotFoundNotifyEventHandler( _
ByVal FileName As System.String _
) As System.Integer |
C# | |
---|
public delegate System.int DSldWorksEvents_ReferenceNotFoundNotifyEventHandler(
System.string FileName
) |
C++/CLI | |
---|
public delegate System.int DSldWorksEvents_ReferenceNotFoundNotifyEventHandler(
& System.String^ FileName
) |
Parameters
- FileName
- Path and filename of the referenced file
Example
HRESULT swAppEvents::AppReferenceNotFoundNotify (BSTR FileName)
{
static bool test = true;
TRACE( _T(" TestbedEvents - SldWorks.swAppReferenceNotFoundNotify event fired\n"));
if( test)
{
LPSLDWORKS pSldWorks = NULL;
m_lpObject->QueryInterface(IID_ISldWorks, (void**)&pSldWorks);
pSldWorks->SetMissingReferencePathName( FileName);
pSldWorks->Release();
return S_false;
}
else
return S_OK;
}
Remarks
Availability
SOLIDWORKS 2001Plus FCS, Revision Number 10.0