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.
Command Line Local Menu
If you right click on the command line history area you will see a local menu that provides you with the following options:
Actions List: This item is a toggle which shows or hides the Actions List.
Recent Commands: This provides you with a list of the most recenly used commands. You can select from the list to reactivate that command.
Recent Input: This provides you with a list of the most recent numeric input. You can select from the list to re-use that input.
Edit Command Aliases: This opens the Alises tab of the Customize dialog so you can edit the aliases.
Options: This opens the Command Line Options dialog so you can edit the color of the various command line elements.