ellen finkelstein logo

Ellen Finkelstein.com
AutoCAD PowerPoint About Links
       

Over 165 AutoCAD tips and tutorials!

AutoCAD Tips
AutoCAD Tips Blog

Get a free dynamic block tutorial and free AutoCAD tips!


RSS: What is it? Why do I want it? How do I get it?

Add to My Yahoo!
Subscribe with Bloglines

Buy a Book

E-mail This Page 
to a Friend

Submit a tip! If you include your name and I post your tip, I'll give you credit.

AutoCAD Tips & Tutorials

Tutorial: Create a custom simple linetype

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 Linetypes 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!

More Tips

+

101 Tips

Page copy protected against web site content infringement by Copyscape

Books by Ellen

New!
AutoCAD 2009 and AutoCAD LT 2009 Bible

This is the 9th edition of this book! Completely updated to conform to the new interface and, of course, it covers all the new features, such as the ribbon, Quick View, ShowMotion, the View Cube, the SteeringWheel, and more.

AutoCAD 2008 and AutoCAD LT 2008 Bible
Learn the great new features with wide application to all disciplines. Get the most comprehensive book on AutoCAD! DVD contains a 30-day trial of AutoCAD and AutoCAD LT. Thorough exercises guide you through each feature.

AutoCAD 2007 and AutoCAD LT 2007 Bible 
Discover the 2007 features, especially the radically improved 3D tools. CD has AutoCAD 30-day trial, 3rd-party software, and drawings for exercises.

AutoCAD 2006 and AutoCAD LT 2006 Bible 
Understand and use the 2006 features, including dynamic blocks and the new method of customizing menus and toolbars. CD-ROM has AutoCAD trial, software, and drawings for all exercises.


AutoCAD 2005 and AutoCAD LT 2005 Bible
Fully explains latest 2005 features:  tables, fields, and sheet sets. For the first time, covers AutoCAD LT! CD-ROM comes with software and drawings for all exercises.


AutoCAD 2004 Bible

Covers all features in detail. Hands-on exercises. Over 1300 pages + CD-ROM with software and drawings for all exercises.

                                  Home  |  AutoCAD  |  PowerPoint  | E-StoreAbout  | Links | Contact | Site Map
Copyright Ellen Finkelstein, Inc.