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.Double
Dim IsXDirFlipped As System.Boolean
Dim IsYDirFlipped As System.Boolean
Dim SheetMetalOptions As System.Integer
Dim ViewsCount As System.Integer
Dim Views As System.String
Dim value As System.Boolean
value = instance.IExportToDWG2(FilePath, ModelName, Action, ExportToSingleFile, Alignment, IsXDirFlipped, IsYDirFlipped, SheetMetalOptions, ViewsCount, 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 (see Remarks)
- ExportToSingleFile
- True to save as one file; false to save as multiple files
- Alignment
- In-process, unmanaged C++: Pointer to an array of 12 double values that contain information related to output alignment (see Remarks)
- VBA, VB.NET, C#, and C++/CLI: Not supported
See In-process Methods for details about this type of method.
- 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 (See Remarks)
- ViewsCount
- Number of annotation views to export; valid only if Action = swExportToDWG_e.swExportToDWG_ExportAnnotationViews
- Views
- In-process, unmanaged C++: Pointer to an array of annotation view names to export; valid only if Action = swExportToDWG_e.swExportToDWG_ExportAnnotationViews
- VBA, VB.NET, C#, and C++/CLI: Not supported
See In-process Methods for details about this type of method.
Return Value
True if export is successful; false if not
Remarks
See Also
Availability
SOLIDWORKS 2014 FCS, Revision Number 22.0