How to use the trim command in AutoCAD. How to trim a line in AutoCAD. Several fairly simple operations, almost like Word

Go to the Image tab → Crop panel → Create Crop Path command. Next, you need to select the appropriate subparameter (in our case, “Select polyline”). Then select the previously created polyline in the drawing and press Enter.

The cropping contour can be inverted by clicking on the small blue arrow, as shown in Fig.

To hide the cropping outline, you need to set the IMAGEFRAME system variable to “0”.

9 "Crop" command in AutoCAD

When constructing, very often fragments of segments, arcs, etc. are discovered that have “crawled out” beyond the boundaries of the objects. To trim such fragments in AutoCAD, use the “Crop” command. Trimming elements can also include segments, rectangles, splines, rays, etc.

Trimming in AutoCAD is carried out by specifying the so-called cutting edge and a fragment of an object, which, after intersecting with this edge, must be deleted.

You can call the command in several ways:

    On "Home" tabEditing panel.

    By entering keyword "OBR", and then press "Enter".

First you need to select the cutting edge (or edges), and then select the objects to be trimmed.

Example. You need to trim off part of the segment that extends beyond the rectangle. In this case, the cutting edge will be the rectangle itself, and the object being trimmed will be the part of the segment outside the rectangle. The whole process is shown in the figure.

There can be many cutting edges, as well as objects to be trimmed. For example, sometimes all objects or most of them are selected as cutting edges. And then click LMB on the elements that we want to trim. Immediately after specifying an object, it is trimmed. You can finish trimming by pressing the "Enter" or "Esc" key. The cut objects can also be parts of the cutting edges themselves.

If, when selecting objects to be cropped, the selection is made with the “Shift” key pressed, then the objects will not be cropped, but will be lengthened. When selecting objects to crop, you can use the following options:

Line and Sekramka– allow you to select objects to be cropped using a temporary polyline and a cutting frame.

Edge– turns on/off the mode of continuing the edge to an imaginary intersection. When the mode is enabled, AutoCAD will trim in cases where the object being trimmed does not clearly intersect with the cutting edge. Whether this mode is enabled or not can be seen from the command line prompt when calling the “Crop” command in AutoCAD.

If it says “Edges = No Continue,” it means the mode is turned off. You can enable it before selecting the objects to be cropped by entering command line(or just from the keyboard) the letter “C”.

Cancel- an option that allows you to cancel cropping of the last object without completely canceling the execution of the entire command.

Delete- this option allows you to delete any objects without interrupting the execution of the trim command. After you use any option, you will again return to specifying the objects to be cropped.

(Finished page 75)

The last stage of drawing is the final design of the contour of the technological groove. Of course, this problem could be solved by using the tool four times Pairing(using tool Similarity to create the top horizontal line of the groove outline). However, we will look at another tool that will allow us to solve this problem a little faster. This tool is called Trim and it is designed to trim lines that protrude beyond other lines or drawing objects. As with the tool Lengthen, pruning is performed in two stages. At the first stage, auxiliary lines are selected since the lines are trimmed before intersecting them.

1. Launch the tool Trim by clicking on the button Trim panels Change or by selecting the command from the menu Edit » Crop or by entering the command in the command window Trim or simply arr.. Same as when using komada Lengthen, AutoCAD in the command window will prompt you to select objects that in this case will be used as secant edges.

2. Select the two vertical lines created with the tool Similarity, which indicate the right and left vertical boundaries of the technological groove contour (Fig. 2.20) and press Enter to complete the selection.

Rice. 2.20 Lines selected as cutting edges

3. Select a horizontal line indicating the bottom line of the contour to the left or right of them (Fig. 2.21).

4. Repeat the operation described in step 3, but this time select the remaining segment of the bottom line protruding beyond the other cutting edge.

Rice. 2.21 Selecting the right segment of the bottom line of the groove for trimming

5. Press Enter to complete the command Trim. All we have to do is create the top line of the technological groove outline, and then trim the top parts of the lines that we just used as cutting edges.

Note. Cancel a failed command Trim you can by entering in the command window Cancel or simply O or by clicking on the button Cancel toolbars Standard.

6. Using a tool Similarity move the bottom line of the groove up 30 units.

7. Run the tool again Trim and select the newly created upper horizontal line of the groove contour as the secant edge (Fig. 2.22).

Rice. 2.22 The top horizontal line of the groove contour is selected as a secant edge

8. Press Enter to complete the selection of secant edges and, when prompted by AutoCAD, select the lines to be trimmed, first the left and then the right vertical lines, as shown in Fig. 2.23. AutoCAD will immediately trim the selected lines.

Rice. 2.23 Left vertical line circumcised, now it's the turn of the right one

9. Press Enter to complete the command Trim. Comparing the obtained result (Fig. 2.24) with the original drawing (see Fig. 2.2), we see that the goal has been achieved. Several simple tools learned in this chapter will come in handy many times not only when studying the rest of the chapters of this book, but also in your daily work with AutoCAD.

Rice. 2.24 Final drawing

If you feel that you are not quite confident in mastering the tools With lines, Similarity, Erase, Pairing, Trim And Lengthen, you can try to repeat the creation of the considered drawing several more times. In AutoCAD there are no right or wrong methods for obtaining the result - you can use a different sequence for creating a drawing or a different sequence for using tools other than the one proposed by the author. Alternatively, you can try to complete the drawing by launching all the tools by entering their aliases in the command window.

After practice, you can close AutoCAD without saving the completed drawing. To do this, select the command from the menu File » Output or just press Alt+F4. (If you don't want to exit AutoCAD, simply close the current drawing by selecting the command File » Close or by pressing Ctrl+F4.) When prompted by AutoCAD to save the drawing, click the button No.

Now you are ready to study the material in the next chapter, in which we will talk about the next problem. The object shown in the drawing we just created has dimensions of 470 by 400 units. In this case, we can assume that we are talking about millimeters. However, such an assumption cannot always be made. For example, if we have a drawing of an electric generator shaft with a length of 10 units, then what length does this part actually have: 10 mm, 10 cm or 10 m? In addition, the drawing of the office cabinet corresponds to the default dimensions of the AutoCAD window, so we did not have any problems in this sense. But imagine that you actually need to create a drawing of a 15-meter shaft of an electric generator with a diameter of several meters! Finally, if you are creating a drawing for foreign partners who operate not in the metric system, but in the imperial system of units, you will inevitably have to create the drawing not in meters and centimeters, but in feet and inches. Therefore, in the next chapter we will talk about how to configure drawing parameters in accordance with the task facing the AutoCAD user.

To work comfortably when creating a drawing, you need to know how to cut a line in AutoCAD and how to extend a line in AutoCAD. Using line editing is very convenient and fast; there is no need to draw a line until it intersects with another line, because it can be extended or trimmed if desired.

In the previous lesson, I talked about creating chamfers and rounding corners. Sometimes, due to bindings, it is not possible to draw a segment to the desired location, and that is when the “Cut” and “Extend” commands are required. Both of these operations are located in the “Editing” block.

Click on the command triangle and select “Crop”. Chose. The program will prompt you to select objects; instead, press the “Enter” button, the following dialog box will appear in the bottom panel.

By default, Line is selected. Now you can move the mouse cursor over the desired line, a small cross will appear at the cursor, and by clicking the mouse the line will be truncated. AutoCAD cuts the line to the nearest intersection point. The operation allows you to trim several lines at once; for this, the desired area is selected. To select an area, just click left button mouse, displaying courses in free place and, without releasing the button, select. As soon as you release the button, the line will be cut.

Thus, it is possible to trim several lines at once in AutoCAD.

Extending lines in AutoCAD occurs in the same way as cutting. The only difference is that the “Lengthen” command is selected, all other actions are performed the same way. Even if you mistakenly selected “Crop”, the situation can be corrected without pressing the “Enter” button, in the bottom panel, click on the checkbox next to the word “Crop” and select “Extend”, then press enter and extend the necessary lines.

In AutoCAD, you can extend several lines at once, in the same way as cutting them.

You can extend and trim not only straight lines and segments, but also circles, arcs and polylines.

The process of extending or trimming takes only a few seconds, and any number of lines can be changed in one operation. The ability to edit lines saves a lot of time and greatly simplifies the work of creating drawings.

In subsequent lessons we will look at other interesting ways to edit lines and drawing views, which will greatly simplify your work.

Still have questions? I suggest you ask them in the comments below.

Usage raster images This is a very common practice in AutoCAD drawings. Images can be used as backgrounds, illustrations, drawings, etc.

An image inserted into a drawing often needs to be trimmed to fit into existing geometry. Standard remedy AutoCAD - team CUT (_XCLIP)— allows you to select a polyline, a polygonal arbitrary contour and a rectangular one as a cropping contour

The result of cropping with a polygon and a rectangle

How to trim around the circumference? Obviously, this can be done using a polyline. There are two ways: 1. create a circle from a polyline; 2. create a regular polygon. It will not work to simply draw a circle from two arc segments of a polyline - such a primitive cannot be a contour for trimming.

Round polyline

1. Draw a rectangle of the required dimensions (let me remind you that the command Rectangle I create a special type of polyline)

2. Run the polyline editing command PEDIT (_PEDIT), select our rectangle and select the option Spline

3. We get a rounded spline

4. As a command option CUT (_XCLIP) select the resulting spline and you're done!

Regular polygon

1. We build POLYGON (_POLYGON) With big amount sides How many sides are needed? The issue is decided in each specific case - it is necessary that the polygon looks like a circle. Don't overuse it - in most cases, 50-60 sides is enough.

2. As in the previous method, select a polyline as a cropping contour and indicate our polygon