Custom Linetypes the Super Simple Way

Creating LinetypesLinetypes play an integral role in visually separating certain elements of our designs. Most of the time one of the 40+ linetypes that come with AutoCAD will suffice, but what do you do when you need a custom linetype? While its true linetypes must be developed, the good news is that it’s not as difficult as it sounds.

In their most basic form, an AutoCAD linetype is really nothing more than a .txt file with a .lin extension. It’s completely possible to create linetypes using nothing more than your bare hands and Notepad (the digital variety that comes with MS Windows). For those who prefer a more graphical approach, check out the Make Linetype (MKLTYPE) tool found on the Express Tools Ribbon tab > expanded Tools panel. If you know how to draw and trim lines in AutoCAD you can also create custom linetypes.

Let’s say you want to create a custom linetype to represent the stripes that will be painted on a road you’re designing. Using the scale of 1” = 50’ you want the stripe to be 10’ long, and the gap between the dashes to be 5’.

  1. Calculate necessary dash length
    Similar to how you might calculate text heights; 10’ (dash length) / 50’ (drawing scale) = 0.2, and 5’ (gap length) / 50’ (drawing scale) = 0.1. Assuming LTSCALE, MSLTSCALE, and PSLTSCALE are each set to 1 a linetype dash of 0.2 units will draw to a length of 10’ inside your drawing.
  2. Draw a line to represent linetype
    The overall linetype definition will be 0.3 units long; 0.2 unit dash + 0.1 unit gap (spacing). Notice the vertical line 0.1 units away from the end of the horizontal line that’s 0.2 units long. You’ll use this lines endpoint to define the overall length of the linetype definition.
    Line representing linetype
  3. Define the linetype
  1. On the Ribbon select the Make Linetype tool found on the Express Tools tab > expanded Tools panel.
    Expanded Express Tools > Tools panel
  2. Specify a name for your .lin file from the MKLTYPE – Select Linetype File. This is different from the name AutoCAD will identify the linetype within the software. Since you can store multiple linetypes inside a single .lin file, you could also select a pre-existing .lin file from this dialog as well.
    MKLTYPE dialog
  3. Enter a unique name for your linetype. This is the name AutoCAD will use to reference the linetype within the software.
    Entering a linetype name
  4. Give your linetype a useful description.
    Entering a linteype description
  5. Use the Endpoint Osnap to pick the starting point for the line definition.
    Picking starting point of linetype definition
  6. Use the Endpoint Osnap to pick the ending point for the line definition. This will be the upper endpoint of the vertical line shown in the example.
    Specifying the linetype ending point
  7. Select the object to include in your linetype. While this linetype is composed of just one segment, you can select multiple segments to be included in your linetype definition.
    Selecting linetype definition objects
  8. The command line confirms the creation of your custom linetype definition.
    Command line

Your custom linetype definition is automatically loaded into the current drawing. To use this linetype in other drawings, use Design Center to load it from the drawing you created the definition in, or use the LINETYPE command to load it from the .lin file you created. Stay tuned as we explore creating complex linetypes with text and symbols.

Linetypes the Super Simple Way Series

  1. Custom Linetypes the Super Simple Way
  2. Shapes for Linetypes the Super Simple Way
  3. Complex Linetypes with Shapes the Super Simple Way
  4. Text in Linetypes the Super Simple Way
Donnie Gladfelter
Donnie Gladfelter

Donnie is author of the book and Autodesk Official Press, AutoCAD and AutoCAD LT: No Experience Required, a columnist for AUGIWorld Magazine, Autodesk University speaker, and former member of the AUGI Board of Directors.

10 Comments

  1. Nice article!
    I pretend to create a linetype with two parallel and continuous lines. So far I got this:

    ;; [CODE_PAGE] ANSI_1252
    *pl, ====

    A,1,-.1,[“____”,STANDARD,S=3,R=0.0,X=0.0,Y=2],-4,[“____”,STANDARD,S=3,X=-4.0,Y=0.7],-4

    But it creates a thin line that I don’t want to see. How should I solve this??

    P.S.: If I scale to 1: 100k it should be readable too

  2. I was wondering if it is possible to remove the first and last dashes that are lengthened to outside of the complex linetype and defined by the first two value after the A????

  3. I was wondering if it is possible to remove the first and last dashes that are lengthened to outside of the complex linetype and defined by the first two value after the A????

  4. I was wondering if it is possible to remove the first and last dashes that are lengthened to outside of the complex linetype and defined by the first two value after the A????

  5. I was wondering if it is possible to remove the first and last dashes that are lengthened to outside of the complex linetype and defined by the first two value after the A????

    • did you find an answer to this? I created a linetype and have noticed the same thing… even for a dashed linetyp from the acadiso.lin file

  6. Maybe we are doing it wrong in my office, but we set the global linetype scale to correspond with the scale.

    If we do it this way, do I calculate the necessary dash length differently?

  7. Fantastic tutorial. As always, very well written. You ought to write a book or something. :-P

    – KFD –

Leave a Reply to PedroCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from The CAD Geek

Subscribe now to keep reading and get access to the full archive.

Continue reading

Discover more from The CAD Geek

Subscribe now to keep reading and get access to the full archive.

Continue reading