Index: openems_xml.c =================================================================== --- openems_xml.c (revision 31992) +++ openems_xml.c (revision 31993) @@ -28,10 +28,35 @@ static double def_end_crit = 1e-05; static long def_f_max = 2100000000; +static void openems_wr_xml_grp_copper(wctx_t *ctx, pcb_layergrp_t *g) +{ +TODO("Fix hardwired constants"); + fprintf(ctx->f, " \n", g->name); + fprintf(ctx->f, " \n"); + fprintf(ctx->f, " \n"); + fprintf(ctx->f, " \n"); +} + +static void openems_wr_xml_grp_substrate(wctx_t *ctx, pcb_layergrp_t *g) +{ +TODO("Fix hardwired constants"); + fprintf(ctx->f, " \n", g->name); + fprintf(ctx->f, " "); + fprintf(ctx->f, " "); + fprintf(ctx->f, " \n"); +} + static void openems_wr_xml_layers(wctx_t *ctx) { + rnd_cardinal_t gid; fprintf(ctx->f, " \n"); - + for(gid = 0; gid < ctx->pcb->LayerGroups.len; gid++) { + pcb_layergrp_t *g = &ctx->pcb->LayerGroups.grp[gid]; + if (g->ltype & PCB_LYT_COPPER) + openems_wr_xml_grp_copper(ctx, g); + else if (g->ltype & PCB_LYT_SUBSTRATE) + openems_wr_xml_grp_substrate(ctx, g); + } fprintf(ctx->f, " \n"); } @@ -82,6 +107,8 @@ } fprintf(ctx->f, " \n"); + fprintf(ctx->f, " \n", ctx->options[HA_void_epsilon].dbl, ctx->options[HA_void_mue].dbl); + openems_wr_xml_layers(ctx); openems_wr_xml_grid(ctx, mesh); fprintf(ctx->f, " \n");