.NET Framework Class Library
DataEntrHelper.GetThisDrawingComponentUid Method
|
<< Click to Display Table of Contents >> Navigation: MwPDMApi Namespace > DataEntrHelper Class > DataEntrHelper Methods > .NET Framework Class Library |
Retrieves the UID of the Part or Assembly linked to the current drawing, based on the active save context. This method checks if the drawing is being processed in a Save As–related context (e.g., SAVE_AS, GET_FILENAME_BEFORE_SAVEAS, or SAVE_AS_LINKED_DRAWING). It then verifies the saved configuration and attempts to resolve the UID of the associated component.
Namespace: MwPDMApi
Assembly: MwPDMApi (in MwPDMApi.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
Visual Basic |
|---|
Public Function GetThisDrawingComponentUid ( _ ByRef compUid As String _ |
C# |
|---|
public bool GetThisDrawingComponentUid( ref string compUid |
Visual C++ |
|---|
public: bool GetThisDrawingComponentUid( |
JavaScript |
|---|
function getThisDrawingComponentUid(compUid); |
Parameters
compUid
Type: System.String
[ByRef] Returns the UID of the linked Part or Assembly if found; otherwise, an empty string.
Return Value
True if the linked component UID was successfully retrieved; otherwise, False.
See Also