Detects if the document is open in the editor.
Syntax: |
---|
DlxDocument.IsOpen() |
Return Value
Returns true if the document is open in the editor otherwise it returns false.
Remarks
An open document may not be the active document. To make a document the active document use Activate.
Example
Copy code | |
---|---|
var doc = DlxApp.GetJob().FindDocument("Examples Sch", DlxApp.DOCTYPE_SCHEMATIC);
if (doc.IsValid() && doc.IsOpen())
{
DlxApp.Trace("The document is open.");
}
else
{
DlxApp.Trace("The document is closed or does not exist.");
}
|