Fixed export assembly. Dxf files had solidworks file extensions.
This commit is contained in:
@@ -632,6 +632,8 @@ namespace ExportDXF.Forms
|
|||||||
.Cast<Component2>()
|
.Cast<Component2>()
|
||||||
.Where(c => !c.IsHidden(true));
|
.Where(c => !c.IsHidden(true));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var componentGroups = assemblyComponents
|
var componentGroups = assemblyComponents
|
||||||
.GroupBy(c => c.GetTitle() + c.ReferencedConfiguration);
|
.GroupBy(c => c.GetTitle() + c.ReferencedConfiguration);
|
||||||
|
|
||||||
@@ -644,9 +646,8 @@ namespace ExportDXF.Forms
|
|||||||
if (model == null)
|
if (model == null)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
var name = component.ReferencedConfiguration.ToLower() == "default" ?
|
var n1 = Path.GetFileNameWithoutExtension(component.GetTitle());
|
||||||
component.GetTitle() :
|
var name = component.ReferencedConfiguration.ToLower() == "default" ? n1 : string.Format("{0} [{1}]", n1, component.ReferencedConfiguration);
|
||||||
string.Format("{0} [{1}]", component.GetTitle(), component.ReferencedConfiguration);
|
|
||||||
|
|
||||||
list.Add(new Item
|
list.Add(new Item
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user