Index: trunk/doc/user/09_appendix/action_details.html =================================================================== --- trunk/doc/user/09_appendix/action_details.html (revision 20654) +++ trunk/doc/user/09_appendix/action_details.html (revision 20655) @@ -34,6 +34,50 @@ +
+
+Example: Align(X, [Lefts/Rights/Centers/Marks, [First/Last/pcb_crosshair/Average[, Gridless]]])
+
+
+
+Example: Align(Y, [Tops/Bottoms/Centers/Marks, [First/Last/pcb_crosshair/Average[, Gridless]]])
+
+
+ Arguments: +
+ +
+ X or Y + | +Select which axis will move, other is untouched. + |
---|---|
+ Lefts, Rights, Tops, Bottoms, Centers, Marks + | + Pick alignment point within each subcircuit + |
+ First, Last, pcb_crosshair, Average + | + Alignment reference, First=Topmost/Leftmost, Last=Bottommost/Rightmost, Average or pcb_crosshair point + |
+ Gridless + | + Do not force results to align to prevailing grid. + |
+ Defaults are Marks, First. +
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_reference.html =================================================================== --- trunk/doc/user/09_appendix/action_reference.html (revision 20654) +++ trunk/doc/user/09_appendix/action_reference.html (revision 20655) @@ -12,7 +12,7 @@
Action | Description | Syntax | Plugin | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
About | Present the about box | About() | dialogs plugin | @@ -122,7 +122,7 @@||||||||
LoadTedaxFrom | Loads the specified block from a tedax file. Type can be: netlist or footprint. | LoadTedaxFrom(netlist|footprint, filename) | tEDAx IO | ||||||||
LoadTinycadFrom | Loads the specified tinycad .net file - the netlist must be tinycad netlist output. | LoadTinycadFrom(filename) | tinycad importer | ||||||||
LoadTtfGlyphs | Loads glyphs from an outline ttf in the specified source range, optionally remapping them to dstchars range in the pcb-rnd font | LoadTtfGlyphs(filename, srcglyps, [dstchars]) | ttf importer | -||||||||
LoadVendorFrom | Loads the specified vendor lihata file. | LoadVendorFrom(filename) | vendor drill mapping | +||||||||
LoadVendorFrom | Loads the specified vendor lihata file. | LoadVendorFrom(filename) | vendor drill mapping | ||||||||
LoadhypFrom | Loads the specified Hyperlynx file. | LoadhypFrom(filename[, "debug"]...) | hyp importer | ||||||||
ManagePlugins | Manage plugins dialog. | ManagePlugins() | |||||||||
MarkCrosshair | Set/Reset the pcb_crosshair mark. | MarkCrosshair() MarkCrosshair(Center) | @@ -211,7 +211,7 @@ | ||||||||
UnloadVendor | Unloads the current vendor drill mapping table. | UnloadVendor() | vendor drill mapping | ||||||||
Unselect | Unselects the object at the pointer location or the specified objects. | Unselect(All|Block|Connection) | |||||||||
acompnet | Attempt to auto-complete the current network | acompnet() | acompnet plugin | -||||||||
align | Align subcircuits | Align(X/Y, [Lefts/Rights/Tops/Bottoms/Centers/Marks, [First/Last/pcb_crosshair/Average[, Gridless]]]) | distalign plugin | +||||||||
align | Align subcircuits | Align(X/Y, [Lefts/Rights/Tops/Bottoms/Centers/Marks, [First/Last/pcb_crosshair/Average[, Gridless]]]) | distalign plugin | ||||||||
aligntext | Align Text Elements | AlignText(X/Y, [Lefts/Rights/Tops/Bottoms/Centers, [First/Last/pcb_crosshair/Average[, Gridless]]]) | distaligntext plugin | ||||||||
asm | Interactive assembly assistant | asm() | asm plugin | ||||||||
autocrop | Autocrops the board dimensions to (extants + a margin of 1 grid), keeping the move and board size grid aligned | autocrop() | autocrop plugin | Index: trunk/doc/user/09_appendix/action_src/align.html =================================================================== --- trunk/doc/user/09_appendix/action_src/align.html (nonexistent) +++ trunk/doc/user/09_appendix/action_src/align.html (revision 20655) @@ -0,0 +1,23 @@ +
X or Y + | Select which axis will move, other is untouched. + + |
---|---|
Lefts, Rights, Tops, Bottoms, Centers, Marks + | Pick alignment point within each subcircuit + + |
First, Last, pcb_crosshair, Average + | Alignment reference, First=Topmost/Leftmost, Last=Bottommost/Rightmost, Average or pcb_crosshair point + + |
Gridless + | Do not force results to align to prevailing grid. + + |
+Defaults are Marks, First. + Index: trunk/src_plugins/distalign/distalign.c =================================================================== --- trunk/src_plugins/distalign/distalign.c (revision 20654) +++ trunk/src_plugins/distalign/distalign.c (revision 20655) @@ -235,23 +235,8 @@ return q; } -/* - * Align(X, [Lefts/Rights/Centers/Marks, [First/Last/pcb_crosshair/Average[, Gridless]]]) - * Align(Y, [Tops/Bottoms/Centers/Marks, [First/Last/pcb_crosshair/Average[, Gridless]]]) - * - * X or Y - Select which axis will move, other is untouched. - * Lefts, Rights, - * Tops, Bottoms, - * Centers, Marks - Pick alignment point within each subcircuit - * First, Last, - * pcb_crosshair, - * Average - Alignment reference, First=Topmost/Leftmost, - * Last=Bottommost/Rightmost, Average or pcb_crosshair point - * Gridless - Do not force results to align to prevailing grid. - * - * Defaults are Marks, First. - */ static const char pcb_acts_align[] = "Align(X/Y, [Lefts/Rights/Tops/Bottoms/Centers/Marks, [First/Last/pcb_crosshair/Average[, Gridless]]])"; +/* DOC: align.html */ static fgw_error_t pcb_act_align(fgw_arg_t *res, int argc, fgw_arg_t *argv) { const char *a0, *a1, *a2, *a3;