home - about - advertise
    
Sponsors
Navigation
Partners

Innovate3D
 
Autodesk Tutorial

Create a Custom Simple Linetype

September 14, 2006

        See Also

 ·  Autodesk website
· Autodesk Directory - by TenLinks.com
· Autodesk Reading Room - by CADdigest.com

AutoCAD comes with a number of linetypes: continuous, dashed (various lengths), dotted, dash-dot, border, center, and so on. But you can make your own. A simple linetype is just a pattern of dashes, dots, and spaces. (A complex linetype can include text and shapes, but that's another tutorial.)

To create your own simple linetype, follow these steps:

  1. Open Notepad. A linetype file is a text file. Usually you use Notepad to edit it.
  2. Navigate to acad.lin. This is the default file for linetypes. By default, you can find it in C:\Documents and Settings\[username]\Application Data\Autodesk\AutoCAD 2007\R17.0\enu\Support. The path will be different for other versions of AutoCAD, of course.
  3. Choose File > Save As and save it under another name, but in the same folder, such as mylinetypes.lin. You can edit acad.lin directly, but be sure to back it up first.

Acad.lin looks like this:

  1. Scroll down to the User Defined Linetypes section at the end of the file. After the comments, enter your linetype definition. Here is the syntax:
  • A linetype has two lines of text. The first line's syntax looks like this:

*linetype name[, description]

  • That means that the first line always starts with an asterisk (*). Then you add the name, which can't have spaces. The description is optional and limited to 47 characters. If you add a description, precede it with a comma. For example:

*proposed border,3 dashes and a dot - - - .

  • The second line, which defines the linetype, starts with the letter A. You separate each item with a comma, but no spaces. The maximum length for the second line is 80 characters. Here are your options:
  • A dash: use a positive number, indicating the length in units
  • A dot: use a 0 (zero)
  • A space: use a negative number, indicating the length in units

  1. Press Enter after the second line and save the file.
  2. Go back to your drawing and open the Layer Properties Manager.
  3. Click the New Layer icon and name the new layer anything you want. Assign it any color you want.
  4. Click Continuous in the Linetype column. In the Select Linetype dialog box, click Load.
  5. In the Load or Reload Linteypes dialog box, click File. Select mylinetypes.lin (or whatever you named your file) and click Open.
  6. In the Load or Reload Linetypes dialog box, choose your linetype and click OK.
  7. In the Select Linetype dialog box, choose your linetype and click OK to assign it to the new layer.
  8. Click Set Current and click OK.
  9. Start the LINE command and use your new linetype!

About the Author

Ellen Finkelstein has been using AutoCAD since 1986. She has been consulting and teaching AutoCAD since 1993. Now she writes computer books and teaches management courses. She is the author of AutoCAD 2006 and AutoCAD LT 2006 Bible. You can find more tips and tutorials at www.ellenfinkelstein.com. Ellen can be reached at info@ellenfinkelstein.com

 

 

 

 

 

 

More Autodesk Select Articles

     
 
Subscribe

All the week's articles
FREE!

CADdigest Weekly
TenLinks Daily
CADdepot Update