private Point3d GetInsertionPointBasedOnBarsLineCoordinates() { Line spanConstructionLine = new Line(spanPoint1, spanPoint2); Point3d closestPoint = spanConstructionLine.GetClosestPointTo(barPoint1, true); return closestPoint; }