|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Commands Reference > Document > IsDocumentOpened |
available from build: 20040916 |
The command checks if the passed file name is already opened in the hosting CAD application.
call DBWShell("IsDocumentOpened DocPathName")
DocPathName |
full path name of the document to check |
@OK_OPENED |
1: the document is already opened |
ffn="c:\my documents\store\assembly1.sldasm"
ffn=replace(ffn," ", "|")
Call DBWShell ("IsDocumentOpened " & ffn)
okOpened = DBWResult("@OK_OPENED")
if okOpened then
DBWMsgBox "the document is already opened"
end if