Index: trunk/doc/user/09_appendix/action_details.html =================================================================== --- trunk/doc/user/09_appendix/action_details.html (revision 20594) +++ trunk/doc/user/09_appendix/action_details.html (revision 20595) @@ -6,6 +6,34 @@

Action reference (details)

+

addrats

+

+Arguments: +

+ + + + + + + + + +
+ AllRats + + Create rat lines for all loaded nets that aren't already connected on with copper. +
+ SelectedRats + + Similarly, but only add rat lines for nets connected to selected pins and pads. +
+@item Close + + Selects the shortest unselected rat on the board. +
+ +

atomic

This action allows making multiple-action bindings into an atomic operation that will be undone by a single Undo command. For example, to optimize rat lines, you'd delete the rats and re-add them. To group these into a single undo, you'd want the deletions and the additions to have the same undo serial number. So, you Index: trunk/doc/user/09_appendix/action_src/addrats.html =================================================================== --- trunk/doc/user/09_appendix/action_src/addrats.html (nonexistent) +++ trunk/doc/user/09_appendix/action_src/addrats.html (revision 20595) @@ -0,0 +1,15 @@ +Arguments: +

+ +
AllRats + Create rat lines for all loaded nets that aren't already connected on + with copper. + +
SelectedRats + Similarly, but only add rat lines for nets connected to selected pins + and pads. + +
@item Close + Selects the shortest unselected rat on the board. +
+ Index: trunk/src/rats_act.c =================================================================== --- trunk/src/rats_act.c (revision 20594) +++ trunk/src/rats_act.c (revision 20595) @@ -50,31 +50,9 @@ #include "obj_rat_draw.h" -/* --------------------------------------------------------------------------- */ - static const char pcb_acts_AddRats[] = "AddRats(AllRats|SelectedRats|Close)"; - static const char pcb_acth_AddRats[] = "Add one or more rat lines to the board."; - -/* %start-doc actions AddRats - -@table @code - -@item AllRats -Create rat lines for all loaded nets that aren't already connected on -with copper. - -@item SelectedRats -Similarly, but only add rat lines for nets connected to selected pins -and pads. - -@item Close -Selects the shortest unselected rat on the board. - -@end table - -%end-doc */ - +/* DOC: addrats.html */ static fgw_error_t pcb_act_AddRats(fgw_arg_t *res, int argc, fgw_arg_t *argv) { int op;