.NET Framework Class Library
CADSystem.Save2 Method

<< Click to Display Table of Contents >>

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

.NET Framework Class Library
CADSystem.Save2 Method

Saves 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 Save2 ( _

Optional okUpdateLastModifiedFileDate As Boolean = True _
) As ShellResult

C#

public ShellResult Save2(

bool okUpdateLastModifiedFileDate = true
)

Visual C++

public:

ShellResult^ Save2(
bool okUpdateLastModifiedFileDate = true
)

JavaScript

function save2(okUpdateLastModifiedFileDate);

Parameters

okUpdateLastModifiedFileDate (Optional)

Type: System.Boolean
Optional. If FALSE, the save is executed without updating the database LAST_MODIFIED_FILE_DATE

Return Value

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

Remarks

In order to fully disable any database update when using the Save method, the TrackEvents("0") needs to be invoked before the call. Available starting from R15 release.

See Also

CADSystem Class

CADSystem Members

MwPDMApi Namespace