Saves various aspects of a part (sheet metal, faces, loops, and annotation views) to one or more DXF/DWG files, preserving the specified filename.
.NET Syntax
Visual Basic (Usage) | |
---|
Dim instance As IPartDoc
Dim FilePath As System.String
Dim ModelName As System.String
Dim Action As System.Integer
Dim ExportToSingleFile As System.Boolean
Dim Alignment As System.Object
Dim IsXDirFlipped As System.Boolean
Dim IsYDirFlipped As System.Boolean
Dim SheetMetalOptions As System.Integer
Dim Views As System.Object
Dim value As System.Boolean
value = instance.ExportToDWG2(FilePath, ModelName, Action, ExportToSingleFile, Alignment, IsXDirFlipped, IsYDirFlipped, SheetMetalOptions, Views) |
Parameters
- FilePath
- Path and filename of the exported DXF/DWG file
- ModelName
- Path and filename of the active part document
- Action
- Export action as defined in swExportToDWG_e
- ExportToSingleFile
- True to save as one file; false to save as multiple files
- Alignment
Array of 12 double values that contain information related to output alignment
- IsXDirFlipped
- True to flip the x direction; false otherwise
- IsYDirFlipped
- True to flip the y direction; false otherwise
- SheetMetalOptions
Bitmask that contains sheet metal export options; valid only if Action = swExportToDWG_e.swExportToDWG_ExportSheetMetal
- Views
- Array of annotation view names to export; valid only if Action = swExportToDWG_e.swExportToDWG_ExportAnnotationViews
Return Value
True if export is successful; false if not
Example
Remarks
See Also
Availability
SolidWorks 2014 FCS, Revision Number 22.0