Open viniciostorres opened 1 year ago
I'll have to look into it, would you be able to share the data file that caused the error? You could email it to me if needed (r@genegenie.com).
HI, Ryan,
I have found some issues, I think. First, it is not enough to create new GedcomDatabase using:
var exportGedcom = new GedcomDatabase();
It have generated null exception because the abscence of Header. So, to solve that I created a gedcom file with just header to be a base of new database.
And I discovered that I must use:
exportGedcom.Add( individual.XRefID, individual);
to add an imported person (and events, photos, families) to new database. Initially I thought I should use exportGedcom.Individuals.Add(individual);
I will continue testing here and then report back to you my experience with the library.
Tahks.
Tanks for excelent c# library for Gedcom. I think this is the best library I found to this.
I have a Gedcom file exported from MyHeritage that have hundreds of Individuals and Families. I want to export only a specific family to a new Gedcom file. I open the original file and select the individuals I need and added to new database.
But when I write a new Gedcom using GedcomRecordWriter.OutputGedcom(exportGedcom, "Rewritten.ged"); I get the error:
What I need to do to build a valid new Gedcom using informations from another Gedcom file?
Thanks again,
Vinicios Torres