// TODO: Create a proper method, this is just fun. // TODO: Add parameters (if any? do grids have parameters?) public static GridLine ToSpeckle(this Grid myGrid) { var start = myGrid.Curve.GetEndPoint(0); var end = myGrid.Curve.GetEndPoint(1); var myGridLine = new GridLine() { ApplicationId = myGrid.UniqueId, elementId = myGrid.Id.ToString(), Value = new List <double>() { start.X / Scale, start.Y / Scale, start.Z / Scale, end.X / Scale, end.Y / Scale, end.Z / Scale }, parameters = GetElementParams(myGrid) }; myGridLine.ApplicationId = myGrid.UniqueId; myGridLine.GenerateHash(); return(myGridLine); }