Gets the start point of the shape.

syntaxSyntax:
DlxShape.GetStartPoint()

Return Value

If the operation is successful, it returns a DlxPoint with the coordinates; otherwise it returns an invalid point. Use IsValid to verify that the point is valid.

Example

  Copy codeCopy code
var prj = DlxApp.GetJob().GetProject("Example Sch");
if (!prj.IsValid())
  prj = DlxApp.GetJob().NewProject("Example Sch");
var doc = prj.GetDocument("Examples Sch", DlxApp.DOCTYPE_SCHEMATIC);
if (!doc.IsValid())
{
  doc = prj.NewDocument("Examples Sch", DlxApp.DOCTYPE_SCHEMATIC);
  doc.SetPageFormat("A4", false);
}
if (doc.IsValid() && doc.Activate())
{
  var page = doc.GetActivePage();
  if (page.IsValid())
  {
    var layer = page.GetLayerFromType(DlxApp.LAYERTYPE_DRAWING);
    if (layer.IsValid())
    {
      var s = layer.DrawShape("V90,110,0;V110,130,0;V130,110,0;V90,110,-120;");

      layer.DrawLine(s.GetStartPoint(), new DlxPoint(0,0));
      layer.DrawLine(s.GetEndPoint(), new DlxPoint(0,0));
    }
  }
}

See also