-LINETYPE (Command)

At the Command prompt, loads, sets, and modifies linetypes.

The following prompts are displayed.

?—List Linetypes

Displays the Select Linetype File dialog box (a standard file selection dialog box). After you select an LIN file, the linetypes available in the file are listed.

Create

Creates a new linetype and stores it in an LIN file.

The Create or Append Linetype File dialog box (a standard file selection dialog box) is displayed. Specify the file to which you want the linetype added.

You cannot create complex linetypes with LINETYPE. (Not applicable to AutoCAD LT.)

Descriptive Text

Enter a linetype description up to 47 characters long. The description can be a comment or a series of underscores, dots, dashes, and spaces to show a simple representation of the linetype pattern.

Linetype Pattern

Enter a pattern definition as a series of numbers separated by commas. Enter positive values to specify lengths of dashes, and enter negative values to specify lengths of spaces. Use a zero to represent a dot.

The “A” in the pattern definition prompt specifies the pattern alignment used at the ends of individual lines, circles, and arcs. Only A-type alignment is supported. With A-type alignment, lines and arcs are guaranteed to start and end with a dash. The A is automatically included in the definition. If you use a text editor to create a linetype, you must enter a at the beginning of the definition.

After creating a linetype, you must load it to make it accessible.

Load
Loads a linetype whose definition exists in a file. The following files contain standard linetypes:
  • AutoCAD: acad.lin
  • AutoCAD LT: acadlt.lin

The Select Linetype File dialog box (a standard file selection dialog box) is displayed. Enter or select the file in which the linetype you want to load is stored.

Set

Sets the current linetype for objects that will be drawn subsequently. You can control the linetype of objects individually or by layer.

The linetype you enter becomes the current linetype. All new objects are drawn with this linetype, regardless of the current layer. If the linetype you request is not loaded, the program searches for its definition in the LIN file. If the linetype cannot be found, the program displays a message and returns you to the Command prompt.

Enter ? to list all loaded linetype names. If you enter bylayer, new objects inherit the linetype associated with the layer on which the object is drawn. If you enter byblock, new objects are drawn using the CONTINUOUS linetype until they are grouped into a block. Whenever you insert that block, the objects inherit the linetype of the block.