Index: matlab/AddPcbrndVia.m =================================================================== --- matlab/AddPcbrndVia.m (revision 30279) +++ matlab/AddPcbrndVia.m (revision 30280) @@ -1,4 +1,4 @@ -function CSX = AddPcbrndVia(CSX, PCBRND, layer_start, layer_stop, points, dia_id, dia_od, filler) +function CSX = AddPcbrndVia(CSX, PCBRND, layer_start, layer_stop, points, dia_id, dia_od, filler, platting) % % CSX = CSX Cad data structure as defined by openems % PCBRND = the pcb-rnd data structure as defined by this library @@ -45,8 +45,8 @@ % unlike the other public functions in pcb2csx this currently doesn't obey any % changes on 2D vs 3D copper layers. -CSX = AddCylinder(CSX, current.name, PCBRND.prio.copperplane, start_point, stop_point, dia_od); -CSX = AddCylinder(CSX, filler, PCBRND.prio.void, start_point, stop_point, dia_id); +CSX = AddCylinder(CSX, platting.name, PCBRND.prio.copperplane, start_point, stop_point, dia_od); +CSX = AddCylinder(CSX, filler.name, PCBRND.prio.void, start_point, stop_point, dia_id); endfunction