Allows an out-of-process executable or a SOLIDWORKS macro to call back a function in a SOLIDWORKS add-in DLL.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function CallBack( _
ByVal CallBackFunc As System.String, _
ByVal DefaultRetVal As System.Integer, _
ByVal CallBackArgs As System.String _
) As System.Integer |
Visual Basic (Usage) | |
---|
Dim instance As ISldWorks
Dim CallBackFunc As System.String
Dim DefaultRetVal As System.Integer
Dim CallBackArgs As System.String
Dim value As System.Integer
value = instance.CallBack(CallBackFunc, DefaultRetVal, CallBackArgs) |
Parameters
- CallBackFunc
Function to call
- DefaultRetVal
Default return value
- CallBackArgs
Arguments to pass to the callback function
Return Value
Return value from the callback function, if it is called; DefaultRetVal if it is not called
Example
To set the filename:
result = swApp.CallBack("pworks@miEval", 0, "RenderToFile Filename d:\image\xyz.jpg")
Remarks
See Also