Draw Shape with Lines image thumb10Last week I started a discussion about creating Custom Linetypes the Super Simple Way. Today I’m going to continue that discussion by talking about yet another component to creating custom linetypes – shapes. As this post will outline, linetypes cannot contain Blocks, but may contain a lesser known object known as Shapes. AutoCAD Shapes are similar to AutoCAD blocks, however they have several restrictions that are not otherwise present when creating blocks.

My best bit of advice to anyone looking to create a custom shape; think simple. I say that due to the limitations of shape definitions within AutoCAD. These limitations include:

  • Shapes must be composed of straight line segments; arcs are not supported.
  • Each line segment must be drawn in one of the 16 supported directions; increments of 22.5 degrees.
  • A line may be no more than 15 units long. Remember linetypes are multiplied by a scale factor (LTSCALE).
  • Shapes must be continuous. Think of drawing with a pen without lifting the pen away from the paper.

To summarize; if you can’t draw it with an etch-a-sketch, you probably won’t be able to draw it with an AutoCAD Shape.

Like linetypes, AutoCAD Shapes are really nothing more than ASCII text files with a .shp extension. You could write your own shape file within an application like Notepad, but I wouldn’t advise it unless you get paid by the hour.

AutoCAD Shapes are stored outside the drawing, and are referenced from a file with a .shp extension. It’s worth noting AutoCAD LT users cannot create or insert shapes, but they can reference them within complex linetypes.

In this example I’m going to create a shape that will be used for a Silt Fence linetype (civil engineering E&S control):

  1. Use AutoCAD Lines to draw the shape you want (remember the rules outlined above).
    Draw Shape with Lines image thumb11
  2. Choose the Make Shape tool (MKSHAPE command) found on the Tools panel of the Express Tools Ribbon tab.
    Make Shape tool on the Rib SNAGHTML2999154e thumb
  3. Provide a file name for your .SHP file.
    Naming the .shp file SNAGHTML299b2f25 thumb
    Note: Multiple “shapes” may be stored within a single .SHP file.
  4. Enter the name of your Shape. This is very similar to providing a name for an AutoCAD Block.
    Naming the AutoCAD Shape SNAGHTML299d45ef thumb
  5. Enter the resolution. Generally the default 128 will more than suffice. Less detailed shapes probably won’t require this high of a resolution, so don’t be afraid to experiment with different values.
  6. Like creating a Block, you’re prompted for an insertion point. For this example I’m going to choose where the two lines intersect.
    Insertion Point for Shape image thumb12
  7. Next you’ll select the objects you want included in your shape. Keeping the rules of AutoCAD Shapes in mind, select the objects you want to make into a Shape.
    Selecting Objects image thumb13
  8. AutoCAD creates a new Shape, and displays confirmation on the command line.
    Creation confirmation SNAGHTML29a26320 thumb

You can now use this shape file to create a complex linetype. Stay tuned for a future post where I’ll discuss creating a complex linetype using the shape file I just created in this post.

One final thing worth mentioning. While it’s certainly possible to reference shapes from any number of .SHP files, my personal preference is to create a single linetypes.shp file. Define every shape you use for linetypes within this one file, so you only have to send one shapefile to those you exchange drawings with.

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