Professional Documents
Culture Documents
A polyline is a single object which can consist of line and arc segments and can be drawn with varying widths. It has its
own editing facility and can be activated by icon selection, from the menu bar or by keyboard entry.
A polyline is a very useful and powerful object yet it is probably one of the most under used draw commands. The
demonstration which follows is quite long and several keyboard options are required.
1 Create a new file, metric. Display the Draw, Modify, Object Snap and Modify II toolbars.
2 Select the POLYLINE icon from the Draw toolbar or type PL in the command line then enter.
prompt Specify start point
enter 15,220 <R>
prompt Specify next point or [Arc//Halfwidth/Length/Undo/Width]
enter @50,0 <R>
prompt Specify next point or [Arc/Close/Halfwidth/Length/Undo/Width]
enter @0,50 <R>
prompt Specify next point or .. and enter @–50,0 <R>
prompt Specify next point or.. and enter @0,–50 <R>
prompt Specify next point or..
respond right-click and enter to end command.
9 Task 1
a) set chamfer distances to 12 and 5
b) chamfer the fourth square remembering to enter P <R> to activate the polyline option
c) result is fig. (d)
d) note the orientation of the 12 and 5 chamfer distances.
Polylines and splines 181
10 Task 2
a) set an offset distance to 5 and offset the fifth square ‘outwards’
b) set an offset distance to 8 and offset the fifth square ‘inwards’
c) The complete square is offset with a single pick – fig. (e).
11 Select the EDIT POLYLINE icon from the Modify II toolbar and:
prompt Select polyline or [Multiple]
respond pick the sixth square
prompt Enter an option [Open/Join/Width/Edit vertex/Fit/Spline/Decurve..
enter W <R> – the width option
prompt Specify new width for all segments
enter 4 <R>
prompt Enter an option [Open/Join/Width/Edit vertex/Fit/Spline/Decurve..
respond right-click-Enter to end command – fig. (f).
12 Menu bar with Modify-Object-Polyline and:
prompt Select polyline or [Multiple]
respond pick the seventh square
prompt Enter an option [Open/Join/Width/Edit vertex/Fit/Spline/Decurve..
enter O <R> – the open option
prompt Enter an option [Close/Join/Width/Edit vertex/Fit/Spline/Decurve..
enter right-click-Enter
and square displayed with ‘last segment’ removed – fig. (g).
13 At the command line enter PEDIT <R> and:
prompt Select polyline and pick the eighth square
prompt options and enter S <R> – the spline option
prompt options and enter X <R> – exit command
and square displayed as a splined curve, in this case a circle – fig. (h).
14 Activate the polyline edit command, pick the ninth square then:
a) enter W <R> then 5 <R>
b) enter S <R>
c) enter X <R> – fig. (i).
15 Task
a) set a fillet radius to 12
b) fillet the tenth square – remember P
c) use the polyline edit command with options:
1. width of 3
2. spline
3. exit – fig. (j).
16 Note
a) If a polyline is drawn with the close option, then when the edit polyline command is used, the option is:
Open
b) If the polyline was not closed, then the option is: Close
c) This was demonstrated in step 12, fig. (g).
Polyline options
The polyline command has several options displayed at the prompt line when the start point has been selected. These
options can be activated by entering the capital letter corresponding to the option. The options are:
Arc: draws an arc segment
Close: closes a polyline shape to the start point
Halfwidth: user enters start and end halfwidths
Length: length of line segment entered
Undo: undoes the last option entered
Width: user enters the start and end widths.
To demonstrate these options, at the command line enter PLINE <R> and enter the options at the command prompt:
prompt enter comment
Start point 40,80 <R> or pick any point
Next point/options H <R> halfwidth option
Starting half-width<0.00> 8 <R>
Ending half-width<8.00> 8 <R>
Next point/options @60,0 <R> segment endpoint
Next point/options W <R> width option
Starting width<16.00> 8 <R> note default <16>
Ending width<8.00> 8 <R>
Next point/options @50,0 <R> segment endpoint
Next point/options W <R> width option
Starting width<8.00> <R>
Ending width<8.00> 2 <R>
Next point/options @60,0 <R> segment endpoint
Next point/options L <R> length option
Length of line 75 <R>
Next point/options W <R> width option
Starting width<2.00> 2 <R>
Ending width<2.00> 5 <R>
Next point/options @30,0 <R> segment endpoint
Next point/options A <R> arc option
Arc options @0,–50 <R> arc endpoint
Arc options L <R> back to line option
Next point/options @–50,0 <R> segment endpoint
Next point/options right-click and Enter.
Task
Before leaving this exercise:
1 MOVE the complete polyline shape with a single pick from its start point by @25,25.
2 With FILL <R> at the command line, toggle fill off.
3 REGEN the screen.
4 Turn FILL on then REGEN the screen.
5 This exercise is now complete. Save as Polyline Exercise 1_Lastname.
Polylines and splines 183
Line and arc segments
A continuous polyline object can be created from a series of line and arc segments of varying width. In the
demonstration which follows we will use several of the options and the final shape will be used in the next chapter.
The exercise is given as a rather LONG list of options and entries, but persevere with it.
3 If your entries are correct the polyshape will be the same as that displayed in Fig. 2. Mistakes with polylines can be
rectified as each segment is being constructed with the U(undo) option. Both the line and arc segments have their own
command line option entries.
4 Repeat the polyline icon selection and:
prompt Enter Ref Comment
Start point 80,120 pt a
next pt/options A arc
arc end/options W width
Starting width 0
Ending width 5
arc end/options @60<0 pt b
arc end/options W width
Starting width 5
Ending width 15
arc end/options @20,20 pt c
arc end/options L line
next pt/options right-click and Enter.
Modifying polylines
Polylines have their own editing facility which gives the user access to several extra options in addition to the existing
modify commands.
Polylines have their own editing facility which gives the user access to several extra options in addition to the existing
modify commands.
5 Note: When the Edit Polyline command is activated and a polyline selected, the prompt is:
a) Open/Join/Width, etc. if the selected polyshape is ‘closed’
b) Close/Join/Width, etc. if the selected polyshape is ‘opened’.
4 Moving a vertex
Select the Edit Polyline icon and:
a) pick the second square
b) enter a constant width of 2
c) enter E <R> – the edit vertex option
prompt Enter a vertex editing option [Next/Previous/Break..
enter N <R> until X at lower left vertex – probably is?
then M <R> – the move option
prompt Specify new location for marked vertex
enter @10,10 <R>
prompt Enter a vertex editing option [Next/Previous/Break..
enter N <R> until X at diagonally opposite vertex
then M <R>
prompt Specify new location for marked vertex and enter: @–50,–10 <R>
prompt Enter a vertex editing option [Next/Previous/Break
enter X <R> then X <R> – fig. (b).
Editing a polygon
A polygon is a polyline and can therefore be edited with the Edit Polyline command. To demonstrate the effect:
1 Draw a six-sided polygon inscribed in a 40 radius circle towards the right of the screen
2 Activate the Edit Polyline command, pick the polygon then enter the following option sequence:
Enter ref comment
W then 4 fig. (k) constant width
E edit vertex option
N until X at lower left vertex
I then @0,30 fig. (l) new vertex inserted
I then @40,0 fig. (m) new vertex inserted
X end edit vertex option
S fig. (n) spline curve
F fig. (o) fit option
D fig. (p) decurve option
X end command.