Fixed missing description when exporting assembly.

This commit is contained in:
AJ
2018-04-26 13:47:08 -04:00
parent 9856c9eb92
commit 9e527acec5

View File

@@ -303,6 +303,12 @@ namespace ExportDXF.Forms
item.KFactor = sheetMetalData.KFactor; item.KFactor = sheetMetalData.KFactor;
} }
if (item.Description == null)
item.Description = model.Extension.CustomPropertyManager[config].Get("Description");
if (item.Description == null)
item.Description = model.Extension.CustomPropertyManager[""].Get("Description");
var db = string.Empty; var db = string.Empty;
item.Material = part.GetMaterialPropertyName2(config, out db); item.Material = part.GetMaterialPropertyName2(config, out db);
@@ -573,6 +579,11 @@ namespace ExportDXF.Forms
{ {
var component = group.First(); var component = group.First();
var model = component.GetModelDoc2() as ModelDoc2;
if (model == null)
continue;
var name = component.ReferencedConfiguration.ToLower() == "default" ? var name = component.ReferencedConfiguration.ToLower() == "default" ?
component.GetTitle() : component.GetTitle() :
string.Format("{0} [{1}]", component.GetTitle(), component.ReferencedConfiguration); string.Format("{0} [{1}]", component.GetTitle(), component.ReferencedConfiguration);