Syntax summary: |
-RouteStyle(style_id|style_name|@current, [set|get, trace-thickness|trace-clearance|text-thickness|text-scale|name, [value]])
+RouteStyle(style_id|style_name|@current, [set|get|del], [trace-thickness|trace-clearance|text-thickness|text-scale|name], [value]])
+RouteStyle(new, [name])
|
---|
Registered by: | n/a
@@ -3214,6 +3215,12 @@
Reads or writes route style properties.
+ If the first argument is
+
+new
+
+, a new style is created, optionally using the name provided as the second argument; else the following happens.
+
The first argument addresses the style and is one of:
- The second argument is
+ The second argument is one of:
+
+
+-
+
set
- which will modify the addressed style using the 4th argment
+, which will modify the addressed style using the 4th argment
value
- or
+
+
-
+
get
-, where the 4th argument is omitted and the return value of the action holds the resulting value of the query. All sets are undoable.
+, where the 4th argument is omitted and the return value of the action holds the resulting value of the query
+
-
+
+
+del
+
+, which will remove the style addressed.
+
+
The 3rd argument addresses the property of the style.
+
+ Note: all operations by this action are undoable.
s
Index: 09_appendix/action_reference.html
===================================================================
--- 09_appendix/action_reference.html (revision 32805)
+++ 09_appendix/action_reference.html (revision 32806)
@@ -13,7 +13,7 @@
-This is pcb-rnd 2.2.4 (svn r32730) an interactive printed circuit board editor , Revision: 32792
+This is pcb-rnd 2.2.4 (svn r32730) an interactive printed circuit board editor , Revision: 32805
Action | Description | Syntax | Plugin
| About | Present the about box | About() | dialogs plugin |
@@ -343,7 +343,7 @@
rn | Reads netlist. | rn [name] | shand_cmd plugin |
Rotate90 | Rotates the object under the crosshair by 90 degree steps. | pcb_move_obj(steps) | |
roundrect | Generate a rectangle with round corners | roundrect([where,] width[;height] [,rx[;ry] [,rotation [,cornstyle [,roundness]]]]) | shape plugin |
- RouteStyle | Without second argument: copies the indicated routing style into the current pen; with second argument sets or gets a field of the routing style. | RouteStyle(style_id|style_name|@current, [set|get, trace-thickness|trace-clearance|text-thickness|text-scale|name, [value]]) | |
+ RouteStyle | Without second argument: copies the indicated routing style into the current pen; with second argument sets or gets a field of the routing style. | RouteStyle(style_id|style_name|@current, [set|get|del], [trace-thickness|trace-clearance|text-thickness|text-scale|name], [value]]) RouteStyle(new, [name]) | |
RouteStylesChanged | Tells the GUI that the routing styles have changed. | RouteStylesChanged() | oldactions plugin |
s | Saves layout data. | s [name] w [name] | shand_cmd plugin |
Save | Save layout data to a user-selected file. | Save() Save(Layout|LayoutAs) Save(AllConnections|AllUnusedPins|ElementConnections) Save(PasteBuffer) Save(DialogByPattern, pcb|footprint|font|buffer, none|board|fp, prompt, [default_pattern]) | dialogs plugin |
Index: 09_appendix/action_src/routestyle.html
===================================================================
--- 09_appendix/action_src/routestyle.html (revision 32805)
+++ 09_appendix/action_src/routestyle.html (revision 32806)
@@ -1,5 +1,8 @@
Reads or writes route style properties.
+If the first argument is new, a new style is created, optionally using
+the name provided as the second argument; else the following happens.
+
The first argument addresses the style and is one of:
- an integer greater than zero: style ID (styles are counted from 1)
@@ -7,9 +10,13 @@
- an arbitrary style name, which will pick the first style with matching name
-The second argument is set which will modify the addressed style
-using the 4th argment value or get, where the 4th argument
-is omitted and the return value of the action holds the resulting value of
-the query. All sets are undoable.
+The second argument is one of:
+
+ - set, which will modify the addressed style using the 4th argment value
+
- get, where the 4th argument is omitted and the return value of the action holds the resulting value of the query
+
- del, which will remove the style addressed.
+
The 3rd argument addresses the property of the style.
+
+Note: all operations by this action are undoable.
|
---|