Exports data for the specified Toolbox standard.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function ExportToolboxItem( _
ByVal StdToExport As System.String, _
ByVal DestinationFolderPath As System.String _
) As System.Integer |
Visual Basic (Usage) | |
---|
Dim instance As ISldWorks
Dim StdToExport As System.String
Dim DestinationFolderPath As System.String
Dim value As System.Integer
value = instance.ExportToolboxItem(StdToExport, DestinationFolderPath) |
Parameters
- StdToExport
- Standard to export (see Remarks)
- DestinationFolderPath
- Path where to export the data (see Remarks)
Return Value
0 if successful, 1 if errors
Example
'VBA Preconditions'
'Open a part.
'Ensure that c:\temp exists.
Dim swApp As SldWorks.SldWorks
Dim SourceHWItem As String
Dim DestinationFoldeName As String
Dim longstatus As Long
Option Explicit
Sub Main()
Set swApp = Application.SldWorks
SourceHWItem = "ansi inch\bolts and screws\hex head\heavy hex bolt_ai.sldprt"
DestinationFolderName = "C:\temp"
longstatus = swApp.ExportToolboxItem(SourceHWItem, DestinationFolderName)
Exit Sub
End Sub
Remarks
See Also
Availability
SOLIDWORKS 2018 FCS, Revision Number 26.0