.NET Framework Class Library
DataEntrHelper.RunChecks Method

<< Click to Display Table of Contents >>

Navigation:  MwPDMApi Namespace > DataEntrHelper Class > DataEntrHelper Methods >

.NET Framework Class Library
DataEntrHelper.RunChecks Method

Performs validation checks before executing file operations such as Save As or Rename.

Checks performed:

Save As context: If context = "GET_FILENAME_BEFORE_SAVEAS" and a valid part/assembly UID is provided, checks for existing associated drawings. If any are found, displays a warning that CAD Save As will not include drawings.

Rename context: If context = "RENAME", ensures a valid UID is present and that the file is not a drawing. - If UID is missing, shows an error message.
- If file is a drawing, displays a message prohibiting renaming from a drawing.
- If both checks pass, retrieves the active configuration name.

Return Value

True if all checks pass; otherwise, False.

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

Syntax

Visual Basic

Public Function RunChecks As Boolean

C#

public bool RunChecks()

Visual C++

public:

bool RunChecks()

JavaScript

function runChecks();

See Also

DataEntrHelper Class

DataEntrHelper Members

MwPDMApi Namespace