Join Scott Onstott for an in-depth discussion in this video Creating a custom shape, part of Customization Techniques with AutoCAD 2013.
- View Offline
Before creating a complex custom line type, you will draw a simple object and define it as a custom shape. Go ahead and draw a circle of arbitrary size on the screen. Then use the polygon tool here in the Drawl panel fly-out. Under the rectangle, and create a polygon with five sides. So, type five enter, and then specify the center of the polygon, at the center of the circle.
Then use the Default option inscribed in circle by pressing Enter and then click up here at the quadrant at the top of the circle to complete the polygon, which in this case is a, now a pentagon. Then go ahead and draw a line across here and just go ahead and draw a five pointed star. Then erase the pentagon, use the trim tool, and press Enter to select all the edges as cutting edges and then cut away each one of these inner segments, so that you're left with a five pointed star inside a circle.
Let's define the star as a Custom Shape, to do that we'll load the Expresstools. So type Expresstools, all one word, and press Enter. This loads the Expresstools tab on the ribbon. Select it. Go over here to the tools Slide Out and open it. Then click Make Shape. You're prompted to select the shape file. Now, you could create your own custom shape file, but I advise against it. It's better to select AutoCAD's default shape file, and this way, you can use the shape in a custom line type.
Let's locate this. Open the drop down here. Go to C, program files, auto desk, locate your version in this case I'm using AutoCAD 2013 and then double-click on Support. And in this folder you'll find the L type SHP.SHP file, select it, and click Save.
Choose Yes when you're prompted, if you want to replace it. Actually, what's happening here, is the Expresstool will append the new shape definition to this file. So the information in the file that's already there won't be lost. On the command line it says enter the name of the shape. I'll type Star in capital letters. Enter. Enter resolution. I'll just accept the default which is 128, press Enter.
Specify insertion base point, that's going to be the center of the circle. And then select Objects, I'll select all of these lines with a crossing window and press Enter. Now it says, use the shape command to place shapes in your drawing, let's try that. Type Shape, Enter, enter shape name or question mark, I'll use the question mark and press Enter. And then it says enter shape names to list star. I'll press Enter to list all of the shapes that are currently in that file. You can see its full path here and you can see there are only a few shapes that have been defined and star is now one of them.
So let's insert the star and make sure that it works. Shape, Enter, and then type Star, Enter. Click and then the height will be 1, I'll just hit Enter to accept the default height. And the rotation angle will be zero so I'll press Enter again. So this object is a shape. So we've successfully created a custom shape. In this video, you use the MK Shape Expresstool to create a custom shape in AutoCad standard line type shape definition file.
- Authoring dynamic blocks
- Configuring plotters and plot style tables for output
- Configuring the user interface
- Creating custom linetypes
- Automating tasks