Using the Command Line
This example shows how to use the Command Line to create a polyline.
- You could activate Polyline by clicking its icon or selecting it from the main menu, and still use the Command Line for entering data. But this example will use the Command Line for everything. In the Command Line, a tool is referenced by its "alias."
- To see the list of aliases, right-click in the command history area (above the Command field) and select Edit Command Aliases.
- This opens the Aliases page of the Customize window. The commands are listed according to their appearance in the menu bar. Polyline is in the Draw menu, so choose the Draw category.
Note: You can also open this window by selecting Tools / Workspace / Customize.
- Highlight Polyline, and its default alias, "pline",. appears on the right side.
- To make it easier to type, you can name the alias to something easy like "pl." Then click Assign, then close the window.
- To access the Command Line, you can place your cursor there, or press Tab to enter the Command field. Enter "pl" and press Enter.
Note: If dynamic fields are displayed, pressing Tab will place the cursor in the first dynamic field. You can type an alias in any of these fields, or press Tab until the cursor moves to the Command Line. See "Using Dynamic Input" on page 87.
- The default action is to "Define the start point of the line."
- You can click a point on-screen or use the dynamic input fields (see "Using Dynamic Input" on page 87). To define the start point in the Command Line, type the coordinates using the format "0,0" then press Enter.
- For the end point of the first segment, type "20,0."
This creates a horizontal segment 20 units long.
- To use the local options, you can open the local menu by right-clicking. To activate a local option in the Command Line, type the first letter of the option name. So to define the next segment by "Length" type "L" and press Enter.
- Then type "15" and press Enter to set the length.
- The prompt now mentions that you can lock this value by pressing Ctrl+L, so press Ctrl+L.
- To complete the line segment, enter "A" then type "90." Press Enter twice.
This completes the second line segment. If you move the mouse around, the preview line for the third segment is locked at 15 units.
- For the next segment, enter "A" again, then type 180 and press Enter twice.
- This finishes the third segment, which is also 15 units long.
- To make the next segment an arc segment, look in the Command History for option names. When an option has two words, such as "Arc Segment," you enter the first letter of each word. So type "AS" and press Enter.
- The last step is to complete the polyline by closing it. But if you enter "C," that will invoke the Circumference option which is listed first. To invoke Close, type the entire word: "close."
The polyline is now closed with an arc segment.