Fixed empty item number when exporting assembly.
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
<UpdatePeriodically>false</UpdatePeriodically>
|
||||
<UpdateRequired>false</UpdateRequired>
|
||||
<MapFileExtensions>true</MapFileExtensions>
|
||||
<ApplicationRevision>12</ApplicationRevision>
|
||||
<ApplicationRevision>15</ApplicationRevision>
|
||||
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
||||
<UseApplicationTrust>false</UseApplicationTrust>
|
||||
<PublishWizardCompleted>true</PublishWizardCompleted>
|
||||
|
||||
@@ -206,22 +206,22 @@ namespace ExportDXF.Forms
|
||||
Print("Found " + bomTables.Count);
|
||||
Print("");
|
||||
|
||||
var items = new List<Item>();
|
||||
|
||||
foreach (var bom in bomTables)
|
||||
{
|
||||
if (worker.CancellationPending)
|
||||
return;
|
||||
|
||||
Print(bom.BomFeature.Name);
|
||||
|
||||
Print("Fetching components...");
|
||||
|
||||
var items = GetItems(bom);
|
||||
|
||||
Print("Found " + items.Count);
|
||||
Print("");
|
||||
|
||||
ExportToDXF(items);
|
||||
items.AddRange(GetItems(bom));
|
||||
}
|
||||
|
||||
Print("Found " + items.Count + " total");
|
||||
ExportToDXF(items);
|
||||
}
|
||||
|
||||
private void ExportToDXF(PartDoc part)
|
||||
@@ -579,6 +579,7 @@ namespace ExportDXF.Forms
|
||||
|
||||
list.Add(new Item
|
||||
{
|
||||
ItemNo = name,
|
||||
PartNo = name,
|
||||
Quantity = group.Count(),
|
||||
Component = component
|
||||
|
||||
Reference in New Issue
Block a user