To generate ER-Diagram it is necessary to insert the following to function HTMLReport
...
Report.GenerateERD = true;
for(var i=0;i
Report.SelectedWorkspaces.Add(Model.Workspaces.GetObject(i));
}
...
It should be placed before calling Report.Generate(). (see attached document)
For more settings, see reference guide class BasicHTMLPERReport.