How to crop one surface to another in AutoCAD. Crop an image in AutoCAD. Additional trimming options

If you have ever had the task of trimming part of a block or array, trimming a block or array according to a specific office, then you have probably already noticed that the command Trim (_TRIM) in this case it is useless.
By at least until the block or array is exploded. How to cope with this task without breaking up blocks or splitting arrays will be discussed in this article.

Looking ahead, I will say that the team will come to our aid Clip (_CLIP). And to make reading more interesting, I will not just describe the procedure for working with the team, but also show specific examples of its application.

Example No. 1. Trimming a block

There is a block of a truck with cargo that has partially driven into the hangar. It is required to hide the part of the block that is located inside the hangar. Exploding a block and manually cutting off everything inside the building is quite a painstaking task, and working with such an object will then be very inconvenient.

Select the block. Go to the tab "Insert" tapes, panel "Link" and select a team Clip (_CLIP)

IN command line the following request will be displayed:

Please note that the option <Новый> selected as the default (triangular brackets indicate this), it suits us, so just click SPACE or ENTER.

Next, we will be asked what exactly we want to use as a cropping path - an existing polyline, polygonal or rectangular area. The option suits us Rectangular– note that it is offered as a default, so we just click again SPACE or ENTER.

Then we need to specify the first corner of the block area that we want to save, and then the second corner - this is done two consecutive clicks of the left mouse button (LMB):

This is the result we will get:

The trimming was successful, but we see the trimming outline, which we don’t need in this case. To manage cropping contours, you need to select one of three options for displaying contours in the ribbon:

Let's select an item Hide outlines. Now we are really happy with the result:

Please note that when you select a block, the outlines will be highlighted, and moreover, they are interactive - i.e. you can change them by moving the corresponding markers and the cropping result will change, which can be quite convenient:

Example No. 2. Trimming solid tiles along the contour of the room

IN in this example we will look at a very useful case for those involved in interior design, and in particular, tile layout in AutoCAD. The description will be less detailed, because... We have already covered the basics in the first example, but here I will only focus on those steps that will differ.
So, we have a bathroom wall, the tiles in which are laid out using a Rectangular array:

As you can see, the array extends beyond the wall, and moreover, you need to make a slot under the door. We don’t want to blow up the array and trim it, and this won’t work, because... The pattern uses shading.
The beginning will be as in example No. 1 - select the array, call the command Undercut, click SPACE or ENTER to create New circuit pruning. But this time we select the option Polygonal:

Now we need with a few clicks of the left mouse button sequentially indicate all the points of our contour and, after indicating the last point, press SPACE or ENTER:

There are 8 points in total, and the cropping result is presented below:

Agree, it’s very simple and convenient.

Example No. 3. Creating your own shading (texture) from a block

We have this detail:

The part is made of timber and this type- this is the end of this very beam. We want to apply a texture to the end that would resemble the growth rings of a tree and would simplify the visual perception of the part. To do this, we will create a block of concentric circles, something like this.

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

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.

In this lesson we will study the command trim / lengthen and learn how to use it to correctly trim lines.

The command allows you to trim lines specified by the user, relative to objects previously selected by him, or vice versa - to extend the lines of arcs or segments to a certain primitive in the drawing.


First of all, the program will ask you to select objects. Important ! First of all, we select not the objects that we will shorten or lengthen, but the one in relation to which we will perform the trimming.

After selecting the base object, press RMB and indicate those segments that we want to trim or extend. Important ! If we are trimming objects, then we need to point to that part of the segment or arc that we want to delete.

Pay attention to the hint in the command line or dynamic input: when you press the Shift key and select any object, we will lengthen it if we initially selected the “crop” command and vice versa.

See many others free videos AutoCAD for beginners

Other lessons on the topic


Did you know that in AutoCAD it is absolutely incompetent to scale drawings immediately on a large canvas, that is, in the “Model” space? Yes, this is a truth that few people know about. Sad but true. But you have the opportunity to unravel this secret, hidden from us, of how to quickly set and painlessly change the scale of views on sheets in AutoCAD. […]


You can calculate the area in AutoCAD different ways. The surface area value is used in various calculations: payload or snow load, the amount of finishing work, or simply indicating the area of ​​the room on the plan. The two most common ways to measure area are presented in the video below. From it you will learn how to easily calculate area in AutoCAD. Learn to work quickly in [...]

In this article and video tutorial we will learn how to create tables in AutoCAD. The “Table” command is on the ribbon. Find it and click to insert a table. A dialog box appears in which you can set the size of the future table by adjusting the number of its columns and rows, as well as their width and height. After setting the parameters and clicking OK, [...]

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.