.NET Framework Class Library
Document.CheckIfDrawingExists Method

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > .NET API > MwPDMApi Namespace > Document Class > Document Methods >

.NET Framework Class Library
Document.CheckIfDrawingExists Method

Check if a drawing related to the specify part/assembly exists

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

Syntax

Visual Basic

Public Function CheckIfDrawingExists ( _

part_Asm_Uid As String, _
ByRef drawingUid As String, _
ByRef number_of_drawings As Integer, _
ByRef drawingIdArray As Object _
) As String

C#

public string CheckIfDrawingExists(

string part_Asm_Uid,
ref string drawingUid,
ref int number_of_drawings,
ref Object drawingIdArray
)

Visual C++

public:

String^ CheckIfDrawingExists(
String^ part_Asm_Uid,
String^% drawingUid,
int% number_of_drawings,
Object^% drawingIdArray
)

JavaScript

function checkIfDrawingExists(part_Asm_Uid, drawingUid, number_of_drawings, drawingIdArray);

Parameters

part_Asm_Uid

Type: System.String
part or assembly unique id

drawingUid

Type: System.String
Output. The unique id of the drawing; in case of more than one it contains the last one

number_of_drawings

Type: System.Int32
Output. The number of drawings found

drawingIdArray

Type: System.Object
Output. The array containing ids of drawings found

Return Value

The function assumes the value of the last (if more than one) drawing found or empty string if no drawing exist.

Remarks

See Also

Document Class

Document Members

MwPDMApi Namespace