|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Library Reference > Document > DBWGetDocProject |
Returns all the projects that a document belongs to.
Function DBWGetDocProject(DocUid, ByRef LastProjectUid, ByRef number_of_projects, ByRef ProjectsIdArray)
DocUid |
document unique id |
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 |
DocUid = 169
LastProjId=DBWGetDocProject(DocUid, LastProjUid, numofproj, projIdArray)
msgbox cstr(numofproj) & " project(s) found!"
for i=1 to Ubound(projIdArray)
msgbox projIdArray(i)
next