Index: cam_compile.c =================================================================== --- cam_compile.c (revision 29102) +++ cam_compile.c (revision 29103) @@ -156,6 +156,7 @@ pcb_hid_save_and_show_layergrp_ons(save_g_ons); } + pcb_event(&PCB->hidlib, PCB_EVENT_EXPORT_SESSION_BEGIN, NULL); for(n = 0; n < ctx->code.used; n++) { if (cam_exec_inst(ctx, &ctx->code.array[n]) != 0) { res = 1; @@ -162,6 +163,7 @@ break; } } + pcb_event(&PCB->hidlib, PCB_EVENT_EXPORT_SESSION_END, NULL); if (ctx->partial) { pcb_data_clear_flag(PCB->Data, PCB_FLAG_EXPORTSEL, 0, 0);