.NET Framework Class Library
DataEntrHelper.GetDefaultDescription_Drawing Method
|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > .NET API > MwPDMApi Namespace > DataEntrHelper Class > DataEntrHelper Methods > .NET Framework Class Library |
Retrieves the default description for a drawing based on the current context.
The description is typically derived from the associated Part or Assembly if available. Specifically:
•In contexts SAVE_AS, GET_FILENAME_BEFORE_SAVEAS, or SAVE_AS_LINKED_DRAWING: Retrieves the UID of the linked model and uses its description.
•In context RENAME_DRAWING: No description is returned or modified.
•In all other cases: Prompts the user to enter a name manually and returns an empty string.
If called from the Assembly Duplication Wizard (ADW), no description is returned.
Namespace: MwPDMApi
Assembly: MwPDMApi (in MwPDMApi.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
Visual Basic |
|---|
Public Function GetDefaultDescription_Drawing As String |
C# |
|---|
public string GetDefaultDescription_Drawing() |
Visual C++ |
|---|
public: String^ GetDefaultDescription_Drawing() |
JavaScript |
|---|
function getDefaultDescription_Drawing(); |
Return Value
The resolved description string, or an empty string if unavailable.
See Also