Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Creating custom linetypes

From: AutoCAD: Tips, Tricks, and Industry Secrets

Video: Creating custom linetypes

AutoCAD comes preinstalled with a wide array of linetypes and even though we have several to choose from, the stock collection probably doesn't contain every linetype that you may need. In this lesson, we'll learn how to create our own custom linetypes to suit any situation. Let's start by taking a look at the linetypes that are provided by AutoCAD. I'm going to open the Linetype fly-out, I'll select Other, I will then click Load, and from here I can see a list of the factory installed AutoCAD linetypes. Take a look up here at the top, notice these linetypes are coming from a file called acad.lin.

Creating custom linetypes

AutoCAD comes preinstalled with a wide array of linetypes and even though we have several to choose from, the stock collection probably doesn't contain every linetype that you may need. In this lesson, we'll learn how to create our own custom linetypes to suit any situation. Let's start by taking a look at the linetypes that are provided by AutoCAD. I'm going to open the Linetype fly-out, I'll select Other, I will then click Load, and from here I can see a list of the factory installed AutoCAD linetypes. Take a look up here at the top, notice these linetypes are coming from a file called acad.lin.

If I click the File button, we can see where the acad.lin file is being saved in our system. I'm going to right-click on this file and I'll select Open with and the computer is suggesting that I open this file using Notepad, which is fine. I'll click OK. As you can see each linetype in the lin file is defined using a couple lines of text. Now we're not going to get too technical into this. I just want to show you that right here we can see the linetype name, next to it we can see the linetype description, and the line below is the code that defines how the linetype looks.

Now back in the day if you wanted to create a custom linetype, you had to write your own codes. Today, linetypes are still created using code, but AutoCAD writes everything for us. Let's close all these windows and we'll return to the layout. I'm going to zoom in on the left side. On my screen I've drawn some linework that represents a custom linetype. I drew this geometry on my layout because I wanted to ensure that my linetype was being defined at the same size that it will appear on the printed sheets. To convert this geometry into a linetype, I'm going to visit the Express Tools tab, then I'll open the Tools panel and I'll select Make Linetype.

As you can see, AutoCAD is going to save the code as a lin file. I'm going to save this in the exercise files folder inside the Chapter_08 directory and I'll call this mycustom and I'll click Save. Now, I'll give the linetype a name. Let's assume this line represents a body of water. So I'll call this Eow for edge of water and I'll press Enter. I will then give the linetype a description. I'll type Edge of Water. Now I can specify the start point of the linetype.

I will select the endpoint right here. I will then select the endpoint of the line definition that's the point at which the linetype repeats. So I'll click the endpoint right here. I will then select the geometry that makes up my linetype, and I'll press Enter, and that's it. AutoCAD wrote all the code for me and it loaded the linetype into this drawing. To test this I'm going to jump back to the Home tab and I will create a line segment. I will then select the line and I'll assign it the new linetype. Let's back up a little and I'm going to grip edit this line over to here.

And as you can see this linetype acts just like any other linetype we've used in AutoCAD. Now, maybe I'd like to create a linetype that contains some text. Let's pan this over. Over here I have some geometry that represents my new linetype. This text was created using a style called linetypes and if we open up that Text Style, we can see it was assigned a Height of 0. Having the text style height set to zero means your text will be able to scale up and down as the linetype scale changes. If I select the text, you can see it was created using a single line text object.

It measures .08 tall, the same height I want it to appear on the printed sheet, and it is middle justified between these two endpoints. Let's convert this geometry into a custom linetype. Once again, I'll jump back to the Express Tools tab. I'll select Make Linetype. I will then select my previous lin file and I'll click Save. Now, AutoCAD asks if I want to replace it. I'm going to click Yes. Technically, I didn't replace that file. I'm actually adding this code to the file.

For my linetype name, I'll use CATV. The linetype description will be Cable Television. The start point for my linetype will be the endpoint here. The point at which it repeats is the endpoint here. I'll select the geometry and I'll press Enter. Once again we'll test this. I'll create another line segment. I'll select it, and I'll assign it the new linetype. Let's back up a little and I will grip edit this line over to here.

Finally, let's take a look at that lin file that AutoCAD created for us. I'll open the linetype fly- out again and I'll select Other. I'll click Load, I'll click the File button, let's jump into the exercise files folder, I'll jump into chapter_08, and I'll select my new custom line file. And as you can see I can now load these custom linetypes into any future AutoCAD drawing. So even though AutoCAD comes preinstalled with many different linetypes, at some point you'll probably need a few more.

When that time comes, you can simply create an example of what you want and let AutoCAD do all the coding for you.

Show transcript

This video is part of

Image for AutoCAD: Tips, Tricks, and Industry Secrets
AutoCAD: Tips, Tricks, and Industry Secrets

66 video lessons · 8216 viewers

Jeff Bartels
Author

 
Expand all | Collapse all
  1. 1m 28s
    1. Welcome
      53s
    2. Using the exercise files
      35s
  2. 47m 11s
    1. Adding relevant data to Quick Properties and tooltips
      5m 38s
    2. Creating custom ribbon tabs and panels
      8m 55s
    3. Creating macro-enabled tools
      10m 29s
    4. Increasing speed with command aliases
      4m 44s
    5. Finding commands and system variables using Auto Complete
      2m 35s
    6. Optimizing the size of palettes
      3m 17s
    7. Accessing drawings using Favorites
      2m 25s
    8. Controlling notification bubbles
      2m 24s
    9. Restoring hidden messages
      3m 53s
    10. Following a blog from within AutoCAD
      2m 51s
  3. 1h 0m
    1. Disabling mode settings on the fly
      3m 28s
    2. Finding hatch boundaries in busy drawings
      3m 32s
    3. Generating boundaries from difficult shapes
      2m 20s
    4. Calculating the overall length of multiple entities
      6m 16s
    5. Calculating the area of multiple shapes
      4m 42s
    6. Flattening geometry to a single elevation
      4m 0s
    7. Trimming all entities to one side of an object
      2m 42s
    8. Eliminating duplicated geometry
      5m 10s
    9. Creating true offsets
      3m 44s
    10. Finding errors when joining multiple entities
      6m 48s
    11. Moving and copying entities using Windows shortcuts
      2m 24s
    12. Solving expressions using the command prompt calculator
      5m 1s
    13. Using the Calculator palette
      10m 25s
  4. 21m 17s
    1. Bringing all text objects to the front
      1m 20s
    2. Underlining single-line text
      1m 21s
    3. Managing numbered and lettered lists
      3m 36s
    4. Creating superscript and subscript text
      3m 18s
    5. Removing formatting from MTEXT
      3m 26s
    6. Using fields to identify who revised a drawing
      3m 10s
    7. Squeezing text into tight spaces
      3m 5s
    8. Hiding extra annotative scales
      2m 1s
  5. 16m 55s
    1. Creating "one-click" dimensions
      1m 52s
    2. Dimensioning angles greater than 180 degrees
      1m 40s
    3. Creating dynamic dimension breaks
      2m 20s
    4. Making linear dimensions act like aligned dimensions
      2m 44s
    5. Finding dimensions with false values
      1m 38s
    6. Creating parent/child dimension styles
      4m 45s
    7. Making dimensions easier to read
      1m 56s
  6. 14m 40s
    1. Making global edits to attribute data
      4m 1s
    2. Clipping references using curved geometry
      2m 21s
    3. Exchanging one block symbol for another
      3m 3s
    4. Using drag-and-drop to insert content
      3m 17s
    5. Creating a block library in two clicks
      1m 58s
  7. 10m 42s
    1. Making global changes to layer names
      3m 19s
    2. Converting all object properties to BYLAYER
      1m 43s
    3. Navigating layer lists using the keyboard
      2m 5s
    4. Producing a hard copy of the layer settings
      1m 34s
    5. Removing stubborn layers
      2m 1s
  8. 25m 1s
    1. Accessing viewports within viewports
      3m 21s
    2. Creating viewports with islands
      6m 5s
    3. Creating legends using the Change Space tool
      3m 55s
    4. Rotating viewport content to match layout
      4m 55s
    5. Importing layouts from template files
      2m 3s
    6. Visualizing multiple design alternates
      4m 42s
  9. 30m 18s
    1. Consolidating backup files into a single folder
      2m 48s
    2. Launching applications from within AutoCAD
      3m 53s
    3. Creating custom linetypes
      5m 9s
    4. Incorporating symbols into custom linetypes
      2m 48s
    5. Salvaging data from a corrupt drawing
      3m 57s
    6. Applying hyperlinks to drawing objects
      3m 34s
    7. Converting drawings from name-based to color-based plot styles
      2m 0s
    8. Identifying the owner of a drawing
      1m 18s
    9. Incorporating drawings into PowerPoint presentations
      4m 51s
  10. 31s
    1. Goodbye
      31s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now "Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed AutoCAD: Tips, Tricks, and Industry Secrets.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.