|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Commands Reference > CADSystem > IsManagedConfiguration |
available from build: 20050118 |
It checks if a couple document_file_name/configuration matches the rules assigned in the Options → Environment → Configuration page.
call DBWShell("IsManagedConfiguration DocFullPathName ConfigName")
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 |
@OK_MANAGED_CONFIGURATION |
0: it is not a managed configuration |
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