.NET Framework Class Library
CADSystem.SaveAs Method

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > .NET API > MwPDMApi Namespace > CADSystem Class > CADSystem Methods >

.NET Framework Class Library
CADSystem.SaveAs Method

Saves with a specified name the currently opened file in CAD application.

Namespace: MwPDMApi
Assembly:  MwPDMApi (in MwPDMApi.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

Visual Basic

Public Function SaveAs ( _

fullFileName As String, _
Optional saveAsCopy As Boolean = False _
) As ShellResult

C#

public ShellResult SaveAs(

string fullFileName,
bool saveAsCopy = false
)

Visual C++

public:

ShellResult^ SaveAs(
String^ fullFileName,
bool saveAsCopy = false
)

JavaScript

function saveAs(fullFileName, saveAsCopy);

Parameters

fullFileName

Type: System.String
full name of the file to save

saveAsCopy (Optional)

Type: System.Boolean
Optional. TRUE performs ‘save as copy’ of the currently activated document, FALSE otherwise

Return Value

Shell result object. For SolidWorks, the following items are available: "@SWSAVEAS_SOLIDWORKS_ERROR", "@SWSAVEAS_SOLIDWORKS_ERROR_STRING", "@SWSAVEAS_SOLIDWORKS_WARNING"

Remarks

See Also

CADSystem Class

CADSystem Members

MwPDMApi Namespace