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 String _
) As Integer |
Visual Basic (Usage) | |
---|
Dim instance As New DSldWorksEvents_ReferenceNotFoundNotifyEventHandler(AddressOf HandlerMethod)
|
C# | |
---|
public delegate int DSldWorksEvents_ReferenceNotFoundNotifyEventHandler(
string FileName
) |
C++/CLI | |
---|
public delegate int DSldWorksEvents_ReferenceNotFoundNotifyEventHandler(
& 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