|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Commands Reference > Selection > SelectById |
Activates the Documents Page and selects a document in a list given it's id and type.
call DBWShell("SelectById DocID DocType")
DocID |
ID of the document ( use '|' char for spaces ) |
|---|---|
DocType |
Document types allowed: |
Usually document Id and document type are stored in a single variable.
More, the document Id has to be in a specific format: spaces must be replaced by "|".
As a result the single variable containing both values has to be in the following format:
"The|document|id P"
Please note that between the last word of document id and the document type there is a space.
MechworksPDM browser must be open.
'Select the main assembly in the documents Page ( use '|' char for spaces )
docId = "Adjustement|knob|(spinkler) P"
call DBWShell( "SelectById " & docId )
if (okDBW = False) then exit sub