|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Commands Reference > Selection > GetSelection |
Returns in the variable @SELECTION the unique id of the document currently selected.
call DBWShell("GetSelection")
@SELECTION |
The unique id of the selected document(s) in the tree or in a grid |
MechworksPDM browser must be open and at least one document must be selected.
Sub Main()
DBWInit(TRUE)
DBWShell("GetSelection")
if (okDBW) then
selection = DBWResult("@SELECTION")
DBWShell("WorkingSetCreate " & selection)
end if
End Sub