Fixed export assembly. Dxf files had solidworks file extensions.

This commit is contained in:
AJ
2018-07-26 11:23:11 -04:00
parent 780780ba3c
commit b1d7540924

View File

@@ -632,6 +632,8 @@ namespace ExportDXF.Forms
.Cast<Component2>()
.Where(c => !c.IsHidden(true));
var componentGroups = assemblyComponents
.GroupBy(c => c.GetTitle() + c.ReferencedConfiguration);
@@ -644,9 +646,8 @@ namespace ExportDXF.Forms
if (model == null)
continue;
var name = component.ReferencedConfiguration.ToLower() == "default" ?
component.GetTitle() :
string.Format("{0} [{1}]", component.GetTitle(), component.ReferencedConfiguration);
var n1 = Path.GetFileNameWithoutExtension(component.GetTitle());
var name = component.ReferencedConfiguration.ToLower() == "default" ? n1 : string.Format("{0} [{1}]", n1, component.ReferencedConfiguration);
list.Add(new Item
{