DBWGetDocProject

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Library Reference > Document >

DBWGetDocProject

Description

Returns all the projects that a document belongs to.

Syntax

Function DBWGetDocProject(DocUid, ByRef LastProjectUidByRef number_of_projectsByRef ProjectsIdArray)

Parameters

DocUid

document unique id

Return Values

The function assumes the value of the last (if more than one) project id found.

LastProjectUid

unique id of the project; in case of more than one it contains the last one.

number_of_projects

number of projects found

ProjectsIdArray

array containing ids of projects found

Example

DocUid = 169
LastProjId=DBWGetDocProject(DocUid, LastProjUid, numofproj, projIdArray)
msgbox cstr(numofproj) & " project(s) found!"
for i=1 to Ubound(projIdArray)
 msgbox projIdArray(i)
next