private void ToolStripMenuItemGenerateBallotSubmission_Click(object sender, EventArgs e)
{
DialogResult res = this.folderBrowserDialog.ShowDialog();
if (res == System.Windows.Forms.DialogResult.OK)
{
// build dictionary to map IFC type name to entity and schema
Dictionary<string, DocObject> mapEntity = new Dictionary<string, DocObject>();
// build dictionary to map IFC type name to schema
Dictionary<string, string> mapSchema = new Dictionary<string, string>();
this.BuildMaps(mapEntity, mapSchema);
// swap out instances temporarily
Dictionary<long, SEntity> old = this.m_instances;
long lid = this.m_lastid;
try
{
this.m_instances = new Dictionary<long, SEntity>();
this.m_lastid = 0;
foreach (DocModelView docView in this.m_project.ModelViews)
{
NBIMS.Export(this.m_project, docView, this.folderBrowserDialog.SelectedPath, mapEntity, mapSchema);
}
}
finally
{
this.m_instances = old;
this.m_lastid = lid;
}
}
}