Content-type: text/html; charset=UTF-8 Man page of ADD_LINE

ADD_LINE

Section: PD Piglet Users Manual (1P)
Updated: PD Piglet Users Manual
Index Return to Main Contents
 

NAME

ADD_LINE - Add a line to the current device  

SYNOPSIS

ADD L<layer> [.<cname>] [@<sname>] [:B<nsegs>] [:W<width>] [:H height] <xy1> <xy2> [<xy3> ...] EOC  

DESCRIPTION

Add a line. Lines are added with "ADD L<layer_number>". Coordinates are added with the left-mouse button. Double-clicking on the same point will terminate the current line while still allowing new lines to be created. Right-clicking or typing ";" will terminate both the line and the command.

Lines by default are zero width. If the :W<width> option is given, then the line will be drawn with the specified width. The coordinates specify the center of the line and the body of the line extends +/-(width/2) on either side of the centerline.

The LOCK command may be used to constrain line placement. When extending a line using the mouse, the mouse coordinate is modified such that the angle of each new segment is snapped to the closest multiple of the LOCK angle, consistent with the current drawing grid. In practice, this produces precise angles for 45 and 90 degrees, but may result in slight angle errors for other settings, especially on coarse grids. A lock angle of 0 turns off all restrictions on line placement.

If the :B<nsegs> option is specified with three or more points, the line is converted to a Catmull-Rom Spline curve with <nsegs> smoothed points inserted between each of the originally entered points. The curve gets visually smoother with higher number of segments, and smoothing can be turned off by setting <nsegs> to zero.

If the :H<height> option is specified, it is assumed that the line being drawn is a microstrip transmission line of specified width and height over a ground plane. The corners of the line are mitered to minimize the excess capacitance at the corner and produce a good approximation to a constant impedance. The miter geometry calculation is described in [1],[2] and depends only on width and height of the line. The miter geometry is independent of the dielectric constant of the substrate in the range of dielectric constant 2.5<=(epsilon)<=25.0. The generated lines are most accurate in the range of (width/height)>=0.25. If it is desired to eliminate mitering, the <height> can be set to 0.0; The published reference defines mitres only for exact 90 degree turns, but the algorithm implemented here produces interpolated miters for any angle while exactly matching the recommended miters for 0,90 degree bends.

 

OPTIONS

<layer>
layer number for component
<cname>
component name
<sname>
signal name
<width>
width of line (default=0)
<nsegs>
number of interpolated segments inserted between each of the user-supplied control points (default=0)
<height>
height of line over ground plane (default=0)

 

REFERENCES

[1] R.J.P. Douville and D.S. James, Experimental Characterization of Microstrip Bends and Their Frequency Dependent Behavior, 1973 IEEE Conference Digest, October 1973, pp. 24-25.

[2] R.J.P. Douville and D.S. James, Experimental Study of Symmetric Microstrip Bends and Their Compensation, IEEE Transactions on Microwave Theory and Techniques, Vol. MTT-26, March 1978, pp. 175-181.  

SEE ALSO

piglet(1p) add_arc(1p) add_circle(1p) add_instance(1p) add_line(1p) add_note(1p) add_oval(1p) add_polygon(1p) add_rectangle(1p) add_text(1p) archive(1p) area(1p) background(1p) bye(1p) change(1p) copy(1p) date(1p) define(1p) delete(1p) display(1p) distance(1p) dump(1p) echo(1p) edit(1p) equate(1p) exit(1p) files(1p) fsize(1p) grid(1p) group(1p) help(1p) identify(1p) input(1p) interrupt(1p) layer(1p) level(1p) list(1p) lock(1p) macro(1p) menu(1p) move(1p) plot(1p) point(1p) process(1p) purge(1p) quit(1p) redo(1p) retrieve(1p) save(1p) search(1p) set(1p) shell(1p) show(1p) smash(1p) split(1p) step(1p) stretch(1p) trace(1p) tslant(1p) undo(1p) units(1p) version(1p) window(1p) wrap(1p) memory(1p) time(1p)  

AUTHOR

Rick Walker (walker AT omnisterra DOT com)

The PD Piglet homepage is at http://www.omnisterra.com/walker/linux/piglet/intro.htm.


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
REFERENCES
SEE ALSO
AUTHOR

This document was created by man2html, using the manual pages.
Time: 23:02:03 GMT, May 05, 2026