GetActiveDocUniqueID

<< Click to Display Table of Contents >>

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

GetActiveDocUniqueID

Description

Gets the unique ID (if the doc is registered in the PDM database) of the currently open CAD model.

Syntax

call DBWShell("GetActiveDocUniqueID")

Return values

@DOCUMENT_UNIQUE_ID

unique id of the open document

Example

...

 DBWShell("GetActiveDocUniqueId")
 docUID = DBWResult("@DOCUMENT_UNIQUE_ID")
 DBWShell("EditRecord " & docUID)
...