.NET Framework Class Library
DataEntrHelper.GetDefaultNumber_Drawing 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_Drawing Method

Generates the default number (ID) for a new or renamed drawing based on the current context and related component data.

The returned number is determined by the execution context, such as:

ADW (Assembly Duplication Wizard): Uses NewComponentID, optionally appending a counter.

SAVE_AS, SAVE_AS_LINKED_DRAWING, GET_FILENAME_BEFORE_SAVEAS: Retrieves the associated component UID, checks existing drawings, and computes the next available drawing ID.

RENAME_DRAWING: Determines the new drawing name by analyzing the original and current IDs and parent relationships.

If no valid drawing context is detected or an error occurs, an empty string is returned.

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

Syntax

Visual Basic

Public Function GetDefaultNumber_Drawing As String

C#

public string GetDefaultNumber_Drawing()

Visual C++

public:

String^ GetDefaultNumber_Drawing()

JavaScript

function getDefaultNumber_Drawing();

Return Value

The computed drawing number, or an empty string if the operation fails.

See Also

DataEntrHelper Class

DataEntrHelper Members

MwPDMApi Namespace