Returns the project of which the document is part.
Syntax: |
---|
DlxDocument.GetProject() |
Return Value
Returns the object corresponding to the parent project. Call the IsValid() method to determine if the object is valid.
Example
Copy code | |
---|---|
var doc = DlxApp.GetJob().FindDocument("Examples Sch", DlxApp.DOCTYPE_SCHEMATIC);
if (doc.GetProject().IsValid())
{
DlxApp.Printf(doc.GetProject().GetName());
}
|