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