Diagram / Import and Export / Import / GEDCOM Import
In This Topic

    GEDCOM Import

    In This Topic

    NOV Diagram can import family trees stored in the popular Genealogical Data Communication (GEDCOM) format.

    To use family tree shapes and diagram shapes with code-behind in general, you should set a compiler service in the entry point of your application, right after you initialize NOV:

    Set the compiler service
    Copy Code
    // Optional: If you plan to use Diagram smart shapes (for example Family Tree shapes), 
    // you should specify the compiler service to use to compile their code-behind 
    NApplication.CompilerService = new NRoslynCompilerService();
    
     Importing GEDCOM Files and Streams

    The following code examples show how to load GEDCOM data from a file and from a stream in a drawing view:

    Importing GEDCOM data from a file
    Copy Code
    drawingView.LoadFromLocalFile(@"D:\Documents\MyFamilyTree.ged");
    
    Importing a GEDCOM data from a stream
    Copy Code
    drawingView.LoadFromStream(stream, NDrawingFormat.Gedcom);
    
    See Also