.NET Framework Class Library
Revision.RenameCurrentRevision Method

<< Click to Display Table of Contents >>

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

.NET Framework Class Library
Revision.RenameCurrentRevision Method

Renames the revision of the currently selected document with the assigned new name. If docUid is passed as optional argument, it works on the document with that unique id. If ecoID is passed as optional argument, the ECO_ID field of the REVISIONS table record is filled with the value passed to the function (used if docUid is specified).

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

Syntax

Visual Basic

Public Sub RenameCurrentRevision ( _

newRevName As String, _
Optional docUid As String = "", _
Optional ecoID As String = "" _
)

C#

public void RenameCurrentRevision(

string newRevName,
string docUid = "",
string ecoID = ""
)

Visual C++

public:

void RenameCurrentRevision(
String^ newRevName,
String^ docUid = L"",
String^ ecoID = L""
)

JavaScript

function renameCurrentRevision(newRevName, docUid, ecoID);

Parameters

newRevName

Type: System.String
new name for the revision

docUid (Optional)

Type: System.String
Optional. The document unique id

ecoID (Optional)

Type: System.String
Optional. Value that will be written in the ECO_ID field of the REVISION table (used if docUid is specified)

Remarks

See Also

Revision Class

Revision Members

MwPDMApi Namespace