.NET Framework Class Library
DataEntrHelper.GetDefaultNumber Method

<< Click to Display Table of Contents >>

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

.NET Framework Class Library
DataEntrHelper.GetDefaultNumber Method

Retrieves the full part or assembly number for a new model, based on the execution context and category settings.

If not called from the Assembly Duplication Wizard (ADW), this method launches the Category Wizard and uses the selected categories to compute a default ID via GetDefaultID.

If called from the duplication wizard:

If CheckIfInFiltering is enabled, writes dummy values for the ID and file name and exits.

Otherwise, retrieves the default ID based on the original file and selected category options.

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

Syntax

Visual Basic

Public Function GetDefaultNumber As String

C#

public string GetDefaultNumber()

Visual C++

public:

String^ GetDefaultNumber()

JavaScript

function getDefaultNumber();

Return Value

The computed part/assembly number as a string, or an empty string if the process fails or is cancelled.

See Also

DataEntrHelper Class

DataEntrHelper Members

MwPDMApi Namespace