.NET Framework Class Library
DataEntrHelper.GetDefaultFolder_Drawing Method
|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > .NET API > MwPDMApi Namespace > DataEntrHelper Class > DataEntrHelper Methods > .NET Framework Class Library |
Determines and returns the default folder path for the drawing based on the execution context.
The returned path always includes a trailing backslash (\). Folder resolution depends on the following contexts:
•ADW (Assembly Duplication Wizard): Uses the folder of the new component file.
•SAVE_AS / GET_FILENAME_BEFORE_SAVEAS / SAVE_AS_LINKED_DRAWING: Attempts to retrieve the model's folder via UID lookup. If unavailable, falls back to the original script folder.
•RENAME_DRAWING: Retrieves the folder from the original part/assembly UID.
•Fallback: If no valid document is found, prompts the user to enter a name manually and returns an empty string.
Namespace: MwPDMApi
Assembly: MwPDMApi (in MwPDMApi.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
Visual Basic |
|---|
Public Function GetDefaultFolder_Drawing As String |
C# |
|---|
public string GetDefaultFolder_Drawing() |
Visual C++ |
|---|
public: String^ GetDefaultFolder_Drawing() |
JavaScript |
|---|
function getDefaultFolder_Drawing(); |
Return Value
The resolved folder path ending with \, or an empty string if resolution fails.
See Also