SelectById

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Commands Reference > Selection >

SelectById

Description

Activates the Documents Page and selects a document in a list given it's id and type.

Syntax

call DBWShell("SelectById DocID DocType")

Parameters

DocID

ID of the document ( use '|' char for spaces )

DocType

Document types allowed:
A
P
D
G
0 (zero)

Remarks

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.

Example

'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