private void GetRevitSnapshot()
{
try
{
var tempImg = Path.Combine(Path.GetTempPath(), "BCFier", Path.GetTempFileName() + ".png");
var success = SaveControlPng(_control, tempImg);
if (!success)
{
return;
}
AddViewControl.AddViewpoint(tempImg);
File.Delete(tempImg);
}
catch (Exception ex)
{
MessageBox.Show("Error!", "exception: " + ex);
}
}