public SpiroDrawing FromPlateString(string plate) { var shapes = SpiroPlate.ToShapes(plate); if (shapes != null) { return(new SpiroDrawing() { Width = _drawing.Width, Height = _drawing.Height, Shapes = shapes, Guides = _drawing.Guides }); } return(null); }
public void ExecuteScript(string script) { try { var shapes = SpiroPlate.ToShapes(script); if (shapes != null) { foreach (var shape in shapes) { _drawing.Shapes.Add(shape); RunSpiro(shape); } _invalidate(); } } catch (Exception ex) { Debug.WriteLine(ex.Message); Debug.WriteLine(ex.StackTrace); } }
public string ToPlateString() { return(SpiroPlate.FromShapes(_drawing.Shapes)); }