Returns the active layer. The active layer is the one you are working on.

syntaxSyntax:
DlxApp.GetActiveLayer()

Return Value

Returns the object DlxLayer corresponding to the layer. Call the IsValid() method to determine if the object is valid.

Example

  Copy codeCopy code
if (DlxApp.GetActiveLayer().IsValid())
{
  DlxApp.Trace("Active layer: %s", DlxApp.GetActiveLayer().GetName());
}

See also