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 there’s always that perpetual need for one more 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
About Donnie Gladfelter

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

  • Mpeters

    IS THERE A GROUND LINE TYPE IN AUTOCAD 2010?  I CAN’T SEEM TO FIND IT.

  • Pedro R

    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

  • Pingback: Tweets that mention Custom AutoCAD Linetypes the Super Simple Way | The CAD Geek Blog -- Topsy.com