• Home
  • Training Books
  • Subscribe to Our Email Newsletter
  • About
    • Contributors
    • Feedback
    • Contact
    • Privacy policy
    • Cookie Policy
  • Bahasa Indonesia

CADnotes

CAD Tutorials and Best Practices for professionals and students

  • Featured
  • AutoCAD
    • AutoLISP
  • Revit
    • Revit Architecture Basic
    • Revit MEP Basic Tutorial
  • Inventor
  • MicroStation
    • MicroStation Basic Tutorial
You are here: Home / AutoCAD / Creating Your Own AutoCAD Line Type

Creating Your Own AutoCAD Line Type

May 29, 2009 by Edwin Prakoso 46 Comments

In this Article...

  • Creating a linetype that contains simple objects
  • Linetype that contains more complex objects
  • The line type scale doesn’t appear correctly?
  • Video Guide

AutoCAD default linetypes are usually enough for everyday purposes. But sometimes it’s just not enough sometimes we need to have our own. The problem is creating a 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, and consumes fewer hardware resources than using simple objects. Let’s see this object below.

I use lines to create these bushes. Only three lines. Imagine if you have to create it by using blocks then copy it several times. It could take some time. I’m going to discuss how we can make a custom linetype quickly. 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 will work the same for the later version.

Creating a linetype that contains 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 objects to a custom line type.

  1. Access from ribbon or AutoCAD Menu: Express>Tools>Make Linetype. Or if you are a command-line fan, you can type MKLTYPE.
  2. Type your line type file name, then click save. This filename is what you’ll see when you load the .lin file in the Windows dialog box.
  3. Type your line type 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 of this line type.
  5. Specify the starting point and endpoint. In this example, I choose the left endpoint of the line as a 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 line type properties, and try to draw lines, arc, or any other objects.

Linetype that contains more complex objects

If you have a 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 a 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 has an excellent 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. The insertion point is 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 the default value for scale and rotation. The same as you insert a block. Now, create a line type from the shape. Follow the steps in creating a simple linetype. Don’t you think this is cool? ;)

The line type scale doesn’t appear correctly?

If you have a problem controlling the linetype scale, you might want to see that you can control the linetype scale in 3 easy steps! You might need to have several attempts to work comfortably with it.

Video Guide

You can see how to create a custom linetype in the video below.

About Edwin Prakoso

I work as a Sr. Consultant in PT Cipta Satria Informatika. I've been using AutoCAD since R14 and Revit since Revit Building 9. I occasionally write for AUGIWorld magazine and I am also active in Autodesk discussion forum. I'm a member of Autodesk Expert Elite, an appreciation for individuals who give contributions to the Autodesk community.
Connect with me on twitter or LinkedIn.

Filed Under: AutoCAD Tagged With: customization, express tools

4 5 votes
Article Rating
Subscribe
Login
Notify of
guest

guest

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

46 Comments
Inline Feedbacks
View all comments
Arunkumar
Arunkumar
13 years ago

I WAS CREATE THE SAME LINE (——————CW—————CW———-CW———-) BUT THE TEXT IS NOT SHOWN WHAT I WILL DO CAN YOU EXPLAIN.. PLEASE

0
Reply
Edwin Prakoso
Edwin Prakoso
Reply to  Arunkumar
13 years ago

 You probably have the same issue with MarV. Have you checked you line type scale? Is your drawing created in mm? Did you create it using ISO template?
This might be useful: https://www.cad-notes.com/2012/03/what-will-went-wrong…

0
Reply
Bcdlrp
Bcdlrp
13 years ago

I HAVE TRIED WHAT IS IN THE INSTRUCTION YOU GAVE,BUT THE PROBLEM IS EVERYTIME I WILL PICK THE OBJECTS TO CREATE A CUSTOMIZED LINE,I CANNOT PICK THE TEXT,ONLY THE LINE.HOW CAN I PICK BOTH LINE AND TEXT?

0
Reply
vin
vin
Reply to  Bcdlrp
13 years ago

i think you should use "single line text" not "mtext"

0
Reply
MarV
MarV
13 years ago

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?

0
Reply
MarV
MarV
Reply to  MarV
13 years ago

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

Thankyou for this post by the way :)

0
Reply
Dmzubairkhan
Dmzubairkhan
13 years ago

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

thanks

zubair khan

0
Reply
Dmzubairkhan
Dmzubairkhan
13 years ago

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
 

0
Reply
Edwin Prakoso
Edwin Prakoso
Reply to  Dmzubairkhan
13 years ago

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

0
Reply
Tdonnelly
Tdonnelly
14 years ago

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

0
Reply
Edwin Prakoso
Edwin Prakoso
Reply to  Tdonnelly
14 years ago

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.

0
Reply
Bshrestha
Bshrestha
14 years ago

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

0
Reply
Edwin Prakoso
Edwin Prakoso
Author
Reply to  Bshrestha
14 years ago

Bshrestha,

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

0
Reply
Ricahrd
Ricahrd
15 years ago

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.

0
Reply
EdwinPrakoso
EdwinPrakoso
15 years ago

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.

0
Reply
Richard
Richard
15 years ago

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

0
Reply
1 2 3 4 Next »
wpdiscuz   wpDiscuz

Featured

One AutoCAD, Seven Specialized Toolsets

AutoCAD 2019 has been released, with a big change. This is the special announcement Autodesk has been teasing you in the last few days. It’s not only AutoCAD 2019. You also get 7 specialized toolsets!

Recent Articles

  • Autodesk Construction Cloud Activity Log
  • Exporting AutoCAD Plant 3D Model to Navisworks
  • Autodesk Data Connector for Power BI is Now Available

Advertisement

New on CADnotes

  • Autodesk Construction Cloud Activity Log
  • Exporting AutoCAD Plant 3D Model to Navisworks
  • Autodesk Data Connector for Power BI is Now Available
  • Autodesk Forma Design Contest
  • Revit 2025: Toposolid Enhancements

Meet the Authors

avatar for
avatar for
avatar for
avatar for
avatar for
avatar for

Get Connected

CADnotes on FacebookCADnotes on InstagramCADnotes on TwitterCADnotes on YouTube

© 2009 – 2025 CADnotes · Feedback · Privacy Policy · Become an affiliate

wpDiscuz