February 1, 2012

Creating Your Own AutoCAD Line Type

AutoCAD default linetypes usualy enough for common purposes. But sometimes it’s just not enough sometimes we need to have our own. The problem is creating custom linetype can be difficult to do. But if you have express tools installed, creating custom linetype can be very easy.

I like to use it, even for drawing complex objects. It is easier, faster, dan consume less hardware resources.

Let’s see this object below.

 

I actualy use lines to create this bushes. Only three lines. Imagine if you have to create it by using blocks then copy it several times. Takes more time.
I’m going to discuss how we can make custom linetype easily. But remember, you have to have the express tools installed on your computer.
If you don’t have it, you need to install it first. See how you can add the Express Tools installation later here. It was for AutoCAD 2002, but still apply for later version.

Simple Objects
First, I’m going to create a simple one. I draw one line, and one single line text as shown below.

I’m going to convert those object in to a custom linetype.

  1. Access from ribbon or AutoCAD Menu: Express>Tools>Make Linetype. Or if you are a command line fans, you can type MKLTYPE.
  2. Type you line type file name, then click save. This file name is what you’ll see when you load the .lin file in windows dialog box.
  3. Type your linetype name, then press [enter]. This line type name is what you’ll see in the name list.
  4. Type your line type description (optional), then press [enter]. This description should be able to give you a brief description about this line type.
  5. Specify starting point and end point. In this example, I choose left end point of the line as start point. And somewhere slightly on the right of the text.
  6. Select objects. Select them both, then press [enter].
There you go. Change the linetype properties, and try to draw lines, arc, or any other objects.

More Complex Objects

If you have complex object in the definition, the result can be unpredictable. Most of the time, the definition will be unusable.

I will create a line type from this AutoCAD sample block. Insert to drawing, and explode it. To create a line type from this complex geometry, we will have to create a shape file. Don’t worry, express tool also have an excelent tool to create it.

From AutoCAD ribbon (or menu), choose: Express>Tools>Make Shape. Or type MKSHAPE then [enter].
  1. Type the file name, then click save.
  2. Type the shape name, then [enter].
  3. Hit [enter] to accept default resolution value.
  4. Define the insertion point. This is the as you define insert point in block creation.
  5. Select the shrub, then [enter]. The shape is created.
Now to avoid confusion, delete the shrub.
Type SHAPE to insert the shape we just created. Type the shape name then [enter]. Press [enter] twice to accept default value for scale and rotation. Exactly as you insert a block.
Now, create a line type from the shape. Follow the steps in creating a simple line type.
Don’t you think this is cool? ;)

If you have problem controlling linetype scale, you might want to see that you can control linetype scale in 3 easy step!

Advertisement

You might also interested to:

  1. AutoCAD Startup Dialog Box
  2. Controlling Linetype Scale is as Easy as 1,2,3!
  3. Creating Angular Dimension Larger than 180 deg
  4. How to: Label Coordinate in AutoCAD
  5. Creating New Command in AutoCAD

Search for more articles

Custom Search
About Edwin Prakoso

Application Engineer. Jakarta, Indonesia.
5+ years experience as CAD engineering application. Autodesk Revit Architecture 2010 certified professional, and certified CATIA part design specialist. Also have sufficient knowledge about AutoCAD, MicroStation, and Inventor.
If you're in Jakarta and need my assistance, email me at info @ cad-notes.com. Or mention me on twitter @cad_notes. You can also connect with me on LinkedIn.

  • Richard

    for some reason this maintains the center of the line. nothing in the .lin file would indicate that it should. maybe a global variable?

  • http://www.cad-notes.com EdwinPrakoso

    I’m not sure we can do that. It is a line, so we can’t change the alignment. It should be always at the center of the line.

  • Ricahrd

    I appologize, my post was not clear. The original line continues to be visible, is what I meant to say. It is a honeycomb pattern that stays 90deg to outside face and is always 1/2+1+1/2 cells wide, for a bendable plastic extrusion. I repeated the process various times for the 10mm version with the same result. However, when I tried with the 8mm version (imagine the same pattern but squished down) of the hatch that I’m trying to create the line was not present. So, my solution was to use the 8mm scaled up. Not 100% accurate, but more than close enough. Thank you for the tutorial by the way.

  • Bshrestha

    Hi,
    I wanted to know if it is possible to make the shapes with solid hatch so that it could be used in making linetype.

    Thank you

    • http://cad-notes.com Edwin Prakoso

      Bshrestha,
      As far as I know, we can’t make shapes from solid hatch.

  • Tdonnelly

    Hi Edwin,
    I’ve created a Railroad Track line type from a shape I created, but is has “dots” running through it. I assume this may have something to do with where I picked the starting and ending points? Any way to fix this?

    Thanks
    Tim

    • http://cad-notes.com Edwin Prakoso

      Yes, the dots come from your picked point when creating the shape.
      You need to pick a point at object to prevent the dots from showing.

  • Dmzubairkhan

    will creating line type the ling shape is not coming according the procedure line shape is not coming.can u give me the solution.thanks
     

    • http://cad-notes.com Edwin Prakoso

      What objects were you using to create shape? Have you exploded it to make it simple objects?

  • Dmzubairkhan

    i cant creat my own line shape accorring the up one procedure.can u give me solution

    thanks

    zubair khan

  • MarV

    Hi There, Im trying to create my own line type (—– 2 LINE——), after I have made it and begin drawing with it the text does not show? But if I draw a really stupidly long line then it appears, so there is something wrong with the scale? is there a way around this?

    • MarV

      Ah hah… nevermind I have just found the scale control within the line type options.

      Thankyou for this post by the way :)