isPathInNoDBDirectory

<< Click to Display Table of Contents >>

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

isPathInNoDBDirectory

Description

This command check the option
General→[Only store/Do not store] records for documents within the following directories
and returns whether or not the path is in No DB Directories.

Syntax

call DBWShell("isPathInNoDBDirectory DocFullPathName")

Parameters

DocFullPathName

The full path name of the document

Results

@OK_IS_PATH_IN_NO_DB_DIRECTORIES

0: the record is managed by the MechworksPDM
1: the record is in a folder not managed by the MechworksPDM

Example

...
fileFullPath = "Z:\mydir\mysubdir\myDoc.SLDPRT"
call DBWShell("isPathInNoDBDirectory " & fileFullPath)
isManaged = DBWResult("@OK_IS_PATH_IN_NO_DB_DIRECTORIES")
...