public static SpeckleObject ToSpeckle(this GSALoadCombo dummyObject) { var newLines = ToSpeckleBase <GSALoadCombo>(); var loadCombos = new SortedDictionary <int, GSALoadCombo>(); var keyword = dummyObject.GetGSAKeyword(); foreach (var k in newLines.Keys) { var p = newLines[k]; var combo = new GSALoadCombo() { GWACommand = p, GSAId = k }; try { combo.ParseGWACommand(); } catch (Exception ex) { Initialiser.AppResources.Messenger.Message(MessageIntent.TechnicalLog, MessageLevel.Error, ex, "Keyword=" + keyword, "Index=" + k); } loadCombos.Add(k, combo); } if (loadCombos.Values.Count() > 0) { Initialiser.GsaKit.GSASenderObjects.AddRange(loadCombos.Values.ToList()); } return((loadCombos.Keys.Count > 0) ? new SpeckleObject() : new SpeckleNull()); }