Index: trunk/doc/user/09_appendix/action_details.html =================================================================== --- trunk/doc/user/09_appendix/action_details.html (revision 33220) +++ trunk/doc/user/09_appendix/action_details.html (revision 33221) @@ -3674,14 +3674,15 @@
@@ -3733,7 +3734,13 @@
Index: trunk/doc/user/09_appendix/action_reference.html =================================================================== --- trunk/doc/user/09_appendix/action_reference.html (revision 33220) +++ trunk/doc/user/09_appendix/action_reference.html (revision 33221) @@ -13,7 +13,7 @@
Action | Description | Syntax | Plugin |
---|---|---|---|
About | Present the about box | About() | dialogs plugin | @@ -366,7 +366,7 @@
SetOctagon | oldactions plugin | ||
SetSame | Sets current layer and sizes to match indicated item. | SetSame() | |
SetSquare | oldactions plugin | -||
SetThermal | Set the thermal (on the current layer) of padstacks to the given style. Style = 0 means no thermal. Style = 1 horizontal/vertical, round. Style = 2 horizontal/vertical, sharp. Style = 3 is a solid connection to the polygon. Style = 4 (invalid). Style = 5 diagonal, round. Style = 6 diagonal, sharp. | SetThermal(Object|SelectedPins|SelectedVias|Selected, Style) | + |
SetThermal | Set the thermal (on the current layer) of padstacks to the given style. Style is one of: 0: means no thermal. 1: horizontal/vertical, round. 2: horizontal/vertical, sharp. 3: is a solid connection to the polygon. 4: (invalid). 5: diagonal, round. 6: diagonal, sharp. noshape: no copper shape on layer | SetThermal(Object|SelectedPins|SelectedVias|Selected, Style) | |
SetUnits | Set the default measurement units. | SetUnits(mm|mil) | |
SetValue | Change various board-wide values and sizes. | SetValue(Grid|Line|LineSize|Text|TextScale, delta) | |
shape | Interactive shape generator. | shape() | shape plugin | Index: trunk/doc/user/09_appendix/action_src/setthermal.html =================================================================== --- trunk/doc/user/09_appendix/action_src/setthermal.html (revision 33220) +++ trunk/doc/user/09_appendix/action_src/setthermal.html (revision 33221) @@ -27,6 +27,9 @@
6 | 45 degree fingers with sharp edges, + | ||
noshape + | remove copper shape on layer + |
Index: trunk/src/change_act.c =================================================================== --- trunk/src/change_act.c (revision 33220) +++ trunk/src/change_act.c (revision 33221) @@ -654,14 +654,15 @@ static const char pcb_acts_SetThermal[] = "SetThermal(Object|SelectedPins|SelectedVias|Selected, Style)"; static const char pcb_acth_SetThermal[] = - "Set the thermal (on the current layer) of padstacks to the given style.\n" - "Style = 0 means no thermal.\n" - "Style = 1 horizontal/vertical, round.\n" - "Style = 2 horizontal/vertical, sharp.\n" - "Style = 3 is a solid connection to the polygon.\n" - "Style = 4 (invalid).\n" - "Style = 5 diagonal, round.\n" - "Style = 6 diagonal, sharp.\n"; + "Set the thermal (on the current layer) of padstacks to the given style. Style is one of:\n" + "0: means no thermal.\n" + "1: horizontal/vertical, round.\n" + "2: horizontal/vertical, sharp.\n" + "3: is a solid connection to the polygon.\n" + "4: (invalid).\n" + "5: diagonal, round.\n" + "6: diagonal, sharp.\n" + "noshape: no copper shape on layer\n"; /* DOC: setthermal.html */ static fgw_error_t pcb_act_SetThermal(fgw_arg_t *res, int argc, fgw_arg_t *argv) { @@ -668,7 +669,7 @@ const char *function; const char *style; void *ptr1, *ptr2, *ptr3; - int type, kind; + int type, kind = 0; int err = 0; rnd_coord_t gx, gy; @@ -678,8 +679,11 @@ if (function && *function && style && *style) { rnd_bool absolute; - kind = rnd_get_value_ex(style, NULL, &absolute, NULL, NULL, NULL); - if (absolute && (kind <= 6)) { + if (rnd_strcasecmp(style, "noshape") == 0) + kind = PCB_THERMAL_NOSHAPE | PCB_THERMAL_ON; + else + kind = rnd_get_value_ex(style, NULL, &absolute, NULL, NULL, NULL); + if ((absolute && (kind <= 6)) || (kind & PCB_THERMAL_ON)) { if (kind != 0) kind |= PCB_THERMAL_ON; switch (rnd_funchash_get(function, NULL)) {