Fixed export assembly. Dxf files had solidworks file extensions.
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user