KiCommand discussion and development - Easy pcbnew command line; 4.07 & 5.1.5/.6

Still making progress. Added a few Geometry and Drawing commands, and the Action commands can handle ARC segments (like connect).

There’re still some bugs and I haven’t released the newest version quite yet. I just wanted to post on some of the progress I’ve made.

Draw        - makeangle drawsegments pad2draw drawparams cut regular drawtext drawarc round 
Geometry    - rotatepoints ends angle rotate corners length 
Action      - select deselect rejoin connect 

Note that the selected segment is one piece:

and after the ‘cut’ command, the cut line is now in two pieces:

Here’s the help text for some of the new commands.

makeangle (Category: Draw) 
    [SEGMENTLIST ANGLE] Make the selected segments form the
    specified angle. arc radius is maintained, though angle and
    position are modified, while line segments are moved and
    stretched to be +/- n*angle specified. 
cut (Category: Draw) 
    Cut all segments with the selected segment at the
    intersection. 
regular (Category: Draw) 
    [SEGMENTLIST] Move/stretch the selected segments into a
    regular polygon (equal length sides, equal angles). 
drawarc (Category: Draw) 
     
round (Category: Draw) 
    [RADIUS SEGMENTLIST] Round the corners of connected line
    segments within SEGMENTLIST by adding ARCs of specified
    RADIUS. 
angle (Category: Geometry) 
    [SEGMENTLIST] Return the angle of each segment in
    SEGMENTLIST. 
rotate (Category: Geometry) 
    [SEGMENTLIST DEGREES] Rotate segments by DEGREES around
    additive center. 
length (Category: Geometry) 
    [SEGMENTLIST] Get the length of each segment (works with
    segment and arc types 

Note that I made the text in the screenshots parallel to the segments by using the angle command to find the segment angle.

2 Likes