Returns the project of which the document is part.

syntaxSyntax:
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 codeCopy code
var doc = DlxApp.GetJob().FindDocument("Examples Sch", DlxApp.DOCTYPE_SCHEMATIC);
if (doc.GetProject().IsValid())
{
  DlxApp.Printf(doc.GetProject().GetName());
}

See also