Index: trunk/src_plugins/export_bom2/bom2.c =================================================================== --- trunk/src_plugins/export_bom2/bom2.c (revision 37996) +++ trunk/src_plugins/export_bom2/bom2.c (revision 37997) @@ -328,7 +328,7 @@ typedef struct { pcb_subc_t *subc; /* one of the subcircuits picked randomly, for the attributes */ - char *id, *value, *footprint; + char *id; /* key for sorting */ gds_t refdes_list; long cnt; } item_t; @@ -374,8 +374,6 @@ ctx.subc = subc; ctx.name = (char *)refdes; - ctx.footprint = (char *)RND_UNKNOWN(pcb_subc_name(subc, "export_bom2::footprint")); - ctx.value = (char *)RND_UNKNOWN(pcb_attribute_get(&subc->Attributes, "value")); id = freeme = render_templ(&ctx, templ->subc2id); i = htsp_get(&tbl, id); @@ -382,9 +380,6 @@ if (i == NULL) { i = malloc(sizeof(item_t)); i->id = id; - - i->value = rnd_strdup(ctx.value); - i->footprint = rnd_strdup(ctx.footprint); i->subc = subc; i->cnt = 1; gds_init(&i->refdes_list); @@ -413,8 +408,6 @@ for(n = 0; n < arr.used; n++) { item_t *i = arr.array[n]; ctx.subc = i->subc; - ctx.footprint = i->footprint; - ctx.value = i->value; ctx.name = i->refdes_list.array; ctx.count = i->cnt; fprintf_templ(fp, &ctx, templ->item); @@ -428,8 +421,6 @@ genht_uninit_deep(htsp, &tbl, { item_t *i = htent->value; free(i->id); - free(i->value); - free(i->footprint); gds_uninit(&i->refdes_list); free(i); }); Index: trunk/src_plugins/export_bom2/export_bom2.conf =================================================================== --- trunk/src_plugins/export_bom2/export_bom2.conf (revision 37996) +++ trunk/src_plugins/export_bom2/export_bom2.conf (revision 37997) @@ -13,8 +13,8 @@ # Quantity, Description, Value, RefDes # -------------------------------------------- } -geda.subc2id = {%subc.prefix%__%subc.footprint%__%subc.value%} -geda.item = {%count%,"%subc.footprint%","%subc.value%",%names% +geda.subc2id = {%subc.prefix%__%subc.a.footprint%__%subc.a.value%} +geda.item = {%count%,"%subc.a.footprint%","%subc.a.value%",%names% } geda.footer = {} geda.needs_escape = {"}