IsManagedConfiguration

<< Click to Display Table of Contents >>

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

IsManagedConfiguration

available from build: 20050118

Description

It checks if a couple document_file_name/configuration matches the rules assigned in the Options Environment Configuration page.

Syntax

call DBWShell("IsManagedConfiguration DocFullPathName ConfigName")

Parameters

DocFullPathName

The full file name.

Please note any space char in filenames and paths must be replaced by "|" char.

ConfigName

the name of the configuration to check

Results

@OK_MANAGED_CONFIGURATION

0: it is not a managed configuration
1: it's recognized as managed configuration

Example

filename="c:\sw samples\staple wizard\staple_wizard.SLDASM"

filename= replace(filename," ","|")
call DBWShell ("IsManagedConfiguration " & filename & " " & config)
if  DBWResult("@OK_MANAGED_CONFIGURATION") then
 DBWMsgBox "it's a managed configuration"
else
 DBWMsgBox "cannot recognize a managed configuration"
end if