.NET Framework Class Library
DataEntrHelper.GetDefaultFileName_Drawing Method
|
<< Click to Display Table of Contents >> Navigation: MwPDMApi Namespace > DataEntrHelper Class > DataEntrHelper Methods > .NET Framework Class Library |
Generates the default file name for a drawing based on the provided new number, current context, and optional conditions.
Behavior by context:
•ADW (Assembly Duplication Wizard): Constructs the file name using the new number and extension. Optionally, it may derive the name from the main component's file name, including a drawing index if ADWGetFileNameWithoutExt is enabled (currently commented).
•SAVE_AS, GET_FILENAME_BEFORE_SAVEAS, SAVE_AS_LINKED_DRAWING: Returns the new number with the standard extension.
•RENAME_DRAWING: Returns the new number with the extension. Optionally, the old component name in the current drawing file name may be replaced with the new component name if OnDrawingRenameUseComponentFileName is enabled (currently commented).
•No linked document: Prompts the user to manually enter a name and outputs a blank ID.
Namespace: MwPDMApi
Assembly: MwPDMApi (in MwPDMApi.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
Visual Basic |
|---|
Public Function GetDefaultFileName_Drawing ( _ NewNumber As String _ |
C# |
|---|
public string GetDefaultFileName_Drawing( string NewNumber |
Visual C++ |
|---|
public: String^ GetDefaultFileName_Drawing( |
JavaScript |
|---|
function getDefaultFileName_Drawing(NewNumber); |
Parameters
NewNumber
Type: System.String
The base name or identifier used to generate the drawing file name.
Return Value
The constructed drawing file name, or an empty string if the operation fails.
See Also