Reset active configuration after exporting part.

This commit is contained in:
AJ
2020-02-01 11:22:18 -05:00
parent eb96fec147
commit 3b19fc39a2

View File

@@ -271,6 +271,8 @@ namespace ExportDXF.Forms
{
var prefix = prefixTextBox.Text;
var model = part as ModelDoc2;
var activeConfig = ((Configuration)model.GetActiveConfiguration()).Name;
var dir = UserSelectFolder();
if (dir == null)
@@ -288,6 +290,8 @@ namespace ExportDXF.Forms
var savePath = Path.Combine(dir, prefix + name + ".dxf");
SavePartToDXF(part, savePath);
model.ShowConfiguration(activeConfig);
}
private void ExportToDXF(AssemblyDoc assembly)
@@ -498,7 +502,6 @@ namespace ExportDXF.Forms
Print(partModel.GetTitle() + " - Saved to \"" + savePath + "\"", Color.Green);
drawingModel.SelectByName(0, view.Name);
drawingModel.DeleteSelection(false);