Productivity Tips

Making simple and complex linetypes in AutoCAD

AutoCAD has its personal library of linetypes which is sort of enough for a lot of the widespread drawings. Still, should you need any particular sort of linetype you can also make it right inside AutoCAD without utilizing complex strategies.

On this article, I’ll explain all about AutoCAD linetypes, following are the subjects which I will talk about here.

  • Making linetype containing textual content and symbols
  • Making linetypes with complex shapes
  • Modifying linetype file
  • Importing and exporting linetypes

Let’s assume that we would like a custom linetype containing repeating patterns of textual content and image as shown in the image under.

Image 1

In this case, the arrows are used from the character map and A letter is Mtext. Let’s begin by making this linetype pattern.

Sort MTEXT and press enter, now make a field to start out writing your Mtext. So as to add the symbol in this Mtext field it’s essential select Other choice from Symbol software of Insert panel on the Text Editor tab as shown in the picture under.

Image 2

Now select the Arial font in the character map window and scroll down the listing of symbols until you see strong arrows. Select the left pointing arrow then click on the Select button then click on the Copy button and close the character map.

Image three

Now proper click in the textual content box and choose Paste from the contextual menu, it’s also possible to use Ctrl + V to paste the character. Now sort A and repeat the method of including the left pointing arrow image. After including text and image make two strains of equal size as shown in the picture 1.

Our phase of linetype is prepared and we will convert it into a linetype. For this, we’ll use MKLTYPE categorical device.

However before utilizing this device explode the textual content and arrow symbol. Select the textual content as well as arrow symbols then sort X and press enter. By doing so we will convert a Mtext into simple Textual content or single line text. MKLTYPE doesn’t recognize Mtext therefore we have to convert Mtext into textual content utilizing explode command earlier than utilizing the command.

Now sort MKLTYPE and press enter, Choose linetype file window will show up. Specify a location the place you need to save this tradition linetype and give it a reputation. In my case, I’m choosing desktop as the situation and naming it as Sample_Ltype. The linetype will probably be saved with .lin file extension.

Now the command line will immediate you to specify the identify of linetype. I will use ATEXT as the identify of linetype. Press enter and it’s going to immediate you for an outline, add the description which you need or press enter to skip this.

Image 4

Now the command line will prompt you to specify the start line of the line definition. Choose the leftmost point on this linetype phase and press enter. Once more command line will prompt you for the endpoint of the linetype phase. Click on on the rightmost level of the linetype phase and press enter.

Now the command line will prompt you to pick the objects. Make a window to pick the text, image and the strains in the choice window and press enter. Finally, the command line will immediate that the ATEXT linetype is now created and loaded as shown in the image under.

Picture 5

So, now our customized linetype is ready for use, let’s use it in a simple drawing. I’ll make a circle and a rectangle as shown in the image under and then change its linetype from the properties palette.

Image 6

After changing the linetype of the rectangle as well as the circle this is how my drawing seemed like.

Picture 7

Identical to any normal linetype, you possibly can change the size of this linetype too.

On this case, I’ll present you technique of creating a linetype with complex form containing arc in addition to line as shown in the picture under.

Image eight

Now, in this case, we’re utilizing arc which MKLTYPE command gained’t recognize and therefore we need to convert this whole linetype phase right into a “shape” which MKLTYPE command recognizes.

To make the Form file sort MKSHAPE and press enter, choose shape window will present up. Specify the situation the place you need to save the shape file and give it a name. I’m saving it on the desktop with identify Complex_Shape. The form shall be saved with SHP extension.

Now command line will immediate you to specify the identify of the Form file. In this case, I’m using CLT because the identify of the shape, after typing the identify press enter.

Image 9

On the subsequent prompt, it’ll immediate for a decision worth, simply press enter to simply accept the default worth. Now click on on the midpoint of the left line to specify the bottom level then choose the entire drawing and press enter.

Image 10

The CLT Shape file is now created and it may be used for making our linetype.

Sort SHAPE and press enter, command line will immediate you to enter the identify of shape which you need to insert, sort CLT and press enter again. The cursor will now have the shape, click on on the midpoint of left line again as marked in the purple circle in the picture above. It will overlap the shape on present geometry.

On the subsequent prompts of peak and rotation angle simply press enter to simply accept the defaut values and exit the command. Now we’ve got the shape clearly overlapping the prevailing drawing.

To start out making linetype from this shape it’s essential to start with MKLTYPE command. Sort MKLTYPE and press enter. Now Specify a location where you need to save this linetype and give it a name. I’m using the desktop as the situation and “Complex line” because the identify.

Now the command line will immediate you for the identify of linetype, sort CLINE, and press enter. Press enter once more on the subsequent prompt to skip including any description. Now command line will prompt you so as to add start line, click on the midpoint of the left line as shown in the pink circle in the image under and second point right reverse as shown with the green circle.

Picture 11

Now click on on the shape to pick it and press enter. The new linetype with CLINE identify is now added and loaded in the drawing.

After making use of the brand new linetype on a circle and a line it appeared like this on my drawing.

custom linetypes in autocad

Image 12

If the steps usually are not clear in the article then I recommend you examine this video, it explains every part about making simple and complex linetypes.

To date we’ve made linetypes using MKLTYPE categorical software which generates .lin linetype file mechanically. But, you can also make this .lin linetype file yourself and a single .lin file can include multiple linetypes too.

On this example, I’ll explain all the elements of linetype file with the assistance of a simple linetype which I created using MKLTYPE command. That is the linetype which I made.

Picture 13

Once you open the .lin file of this linetype it can seem like this.

Picture 14

All of the characters of this file have a selected which means. Let’s talk about all the elements of this linetype file, they’re marked with numbers and I’m explaining these numbers here.

  1. The new linetype begins with * signal adopted with the identify of linetype. In this case, the identify of linetype is ATEXT
  2. This is the description of the linetype that exhibits up on Linetype window, that is added after placing a comma subsequent to the linetype identify.
  3. The A personality right here indicates that the development of linetype starts from this level.
  4. 1 here signifies the length of the dashed line, this value might be something and it should indicate the length of the sprint.
  5. -.25 is the gap length, any worth adopted by the destructive sign indicates the gap size of linetype.
  6. The value inside square bracket is for the text. In this case, A is the textual content in Commonplace text fashion and y=.1 is the offset value of text along the Y-axis (explained in the video) S=.2 is the size of textual content.
  7. Once more -.4 is the gap length after the textual content.
  8. 1 again here signifies the size of dash line and then the whole pattern repeats itself.

Here the length of the first phase is 1 then .25 hole then “A” textual content in normal text fashion then a niche of 0.4 and again phase size of 1 and then sample repeats.

Image 15

You possibly can copy paste similar set of codes inside a single .lin file to create a number of linetypes with totally different text or phase lengths. One such instance is that this file which has three totally different lientypes with slightly several types of lientypes as proven in the image under.

Image 16

In the instance shown above, we have now three totally different linetypes with ATEXT, BTEXT, and CTEXT as names of linetypes and slightly totally different properties.

There isn’t a single command in AutoCAD with which you’ll be able to export or import linetypes. Truly, you could use a mixture of various methods to import linetypes of different varieties from one drawing to other.

Importing simple linetypes

Let’s start with probably the most primary linetypes that include simple textual content and strains and which could be made using MKLTYPE command.

Once you make the linetype using MKLTYPE command AutoCAD creates a .lin file which accommodates the info required to create the linetype. To insert this linetype sort LT and press enter. Linetype supervisor window will open up, click on on Load button and then click on File button in the subsequent window as shown in the image under and choose the .lin file and click OK.

Image 17

The Load linetype window will open up with an inventory of linetypes out there in your selected .lin file. Choose all the linetypes that you simply need to load from this listing and click OK.

You will notice that the linetypes can be loaded in the Linetype supervisor and now you need to use them in your drawing. Simply click on OK to close the linetype manager.

Importing linetype containing Shape

Things are little totally different when your linetype accommodates shapes. In case of simple linetype containing text all it is advisable fear about is the text type which ought to be obtainable in the drawing the place you’re importing the linetype. However for linetype containing shapes you also need to ensure that shapes can be found in the drawing where you’re importing those linetypes.

To import the shapes it’s essential convert them into SHX or Form information which might be finished using COMPILE command.

It is advisable to be sure that you already have the .lin file and the corresponding .shp file. After you have these information, open the drawing where you need to import that linetype and sort COMPILE and press enter. Choose shape window will open up, select the .shp file and click on Open.

Picture 19

AutoCAD will mechanically create the SHX file from that .shp file in the identical location where your .shp file is saved. Now sort LOAD and press enter, choose the SHX file created in the instance above and click on Open.

The shape is now loaded in the present drawing. Sort SHAPE and press enter, command line will now prompt you to sort the identify of the Form. Sort CLT and press enter (this is shape file we created in the second linetype example above and I’m utilizing this linetype here), the shape will now comply with your cursor. Click on at some extent in the drawing area and press enter twice to simply accept the default worth.

This step of inserting form in the drawing could seem pointless however it’s fairly essential as AutoCAD will now acknowledge the form file used in the linetype when you insert it in the drawing. You’ll be able to delete the shape file after it is inserted as soon as in your drawing.

After adding the shape file and loading the shape in your drawing you’re all set to import the linetype file now. Sort LT and press enter, select Load button then click on on File button and load the .lin file which incorporates form outlined linetype.

The linetype might be added and now you should use this linetype in your current drawing. All of these methods of modifying .lin file and extra has been explained in this video.

The tactic of creating linetypes and working with them will not be very simple involving a lot of totally different steps nonetheless its fairly straightforward once you get a grasp of it.

I hope this article helped you in understanding the nuances of creating, modifying and importing/exporting totally different sort of linetypes. When you’ve got any query associated to this article let me know in the remark under and don’t overlook to share this text.