Index: read.c =================================================================== --- read.c (revision 30904) +++ read.c (revision 30905) @@ -1016,7 +1016,7 @@ new_module = pcb_subc_alloc(); pcb_subc_create_aux(new_module, module_X, module_Y, 0.0, 0); - pcb_attribute_put(&new_module->Attributes, "refdes", "A1"); + rnd_attribute_put(&new_module->Attributes, "refdes", "A1"); pcb_subc_reg(st->pcb->Data, new_module); pcb_subc_bind_globals(st->pcb, new_module); Index: write.c =================================================================== --- write.c (revision 30904) +++ write.c (revision 30905) @@ -519,8 +519,8 @@ silk_layer = 7; fprintf(ctx->f, "COMP\r\n%s\r\n", or_empty(subc->refdes)); - fprintf(ctx->f, "%s\r\n", or_empty(pcb_attribute_get(&subc->Attributes, "footprint"))); - fprintf(ctx->f, "%s\r\n", or_empty(pcb_attribute_get(&subc->Attributes, "value"))); + fprintf(ctx->f, "%s\r\n", or_empty(rnd_attribute_get(&subc->Attributes, "footprint"))); + fprintf(ctx->f, "%s\r\n", or_empty(rnd_attribute_get(&subc->Attributes, "value"))); pcb_fprintf(ctx->f, "%.0ml %.0ml 100 0 10 %d\r\n", xPos, yPos, silk_layer); /* designator */ pcb_fprintf(ctx->f, "%.0ml %.0ml 100 0 10 %d\r\n", xPos, yPos2, silk_layer); /* pattern */ pcb_fprintf(ctx->f, "%.0ml %.0ml 100 0 10 %d\r\n", xPos, yPos3, silk_layer); /* comment field */