|
|
|
|
|
TotalPurge is the AutoCAD app for complex drawing optimization |
|
|
|
|
|
|
|
|
|
|
Illustrative example of optimization
Let's review drawing optimization by a specific example |
As an example, let's take a look at the drawing of a detail shown on Figure 1:
|
Fig. 1 |
Let's analyze all the steps involved in the creation of this drawing.
Right off, let's make a reservation that the following sequence of creating a drawing could seem somewhat irrational to an experienced user. This is done on purpose, to make the comprehension of the essence of optimization more intuitive.
As we can see it on the figure, our detail is symmetric relative to the central horizontal axis. That means this sketch can be obtained by reflecting the upper part of the object from that axis (using the MIRROR command).
Therefore, our task on the first stage comes down to drawing the upper part of the detail:
- First, display two center lines, horizontal and vertical.
- Next, draw two concentric arcs centered at the point formed by the intersection of the two center lines.
- Using the LINE command, add two more lines (vertical and horizontal) to the drawing.
The result of our drawing is shown on Figure 2.
|
Fig. 2 |
Next, use the LINE command a few more times to complete the upper part of the detail drawing by drawing the missing four lines (see Fig. 3)
|
Fig. 3 |
On the second stage of the drawing, use the
MIRROR command and reflect the upper part of the detail from the center line.
The result is the drawing we originally conceived (Fig. 4):
|
Fig. 4 |
How many objects have we used for creating our drawing? |
Take a careful look at Figure 5. It shows detailed (with different colors) objects our drawing is made of.
|
Fig. 5 |
To create this drawing, we have engaged 12 lines and 4 arcs; i.e., 16 objects total. As we noted earlier, this way of creating a drawing is far from being rational. It is evident that for the purpose of creating our drawing we could have replaced certain series of objects with a single object, and that would not have affected the essence of the drawing (i.e. its appearance) at all. For example, two collinear lines marked in the drawing as No. 1 and No. 2 can be replaced with a single line. The same applies to the mirrored lines No. 7 and No. 8. As we continue analyzing the drawing, we may notice that the series of lines No. 4 and No. 5, as well as lines No. 9 and No. 10, and, respectively, No. 11 and No. 12, can be replaced with a single line in each respective case. In addition, the arcs too are to be replaced with a more rational series of objects. For example, the series of concentric arcs No. 1 and No. 2 can be replaced with a single arc. And the concentric arcs marked as No. 3 and No. 4 can be replaced with a circle. Finally, after a series of object replacements, we obtain a freshened drawing (see Fig. 6):
|
Fig. 6 |
Thus, we have obtained a new, optimized drawing that consists of 7 lines, 1 arc, and 1 circle. The creation of the drawing has engaged 9 objects, which is 7 objects less than what were engaged in the original drawing. So, even on this simple sketch we have identified and eliminated over 40% of excess graphic content! Needless to say how many of such "extra" objects can reside in our drawings, making those way greater by the size than the given example.
Packing objects into polylines |
For the final stage of optimization, we will convert our drawing into polylines. Practice shows that after converting objects into polylines, the size of a drawing tends to be reduced in average by 10...20%, and in certain cases it is possible to achieve 30-percent reduction of the original drawing size.
The so-called "packing objects into polylines" (in other words, conversion to polylines) was made possible by TotalPurge's internal high-performance algorithm for smart conversion of objects into polylines, which converts filleted entities into open and closed polylines of the LWPOLYLINE type. For more information on the entity to polyline conversion mechanism, please see "Converting objects into polylines".
Thus, after applying the final stage of optimization to our sketch, we obtain the following drawing (Fig. 7):
|
Fig. 7 |
As the figure shows, after the conversion into polylines, we come from 9 to only 4 objects, which are 2 closed (polyline1, polyline2) and 2 open polylines (polyline3, polyline4). At the same time, please notice the smallest possible number of vertices engaged in the creation of the polylines.
After the last transformations of the drawing, we have managed to additionally (by over 50%) reduce the number of objects used for its creation.
Note. The conversion of circles into polylines is not always appropriate. That is due to the fact that a polyline obtained from a circle basically consists of two arcs, and editing those, when necessary (e.g., after using the EXPLODE command), is slightly harder than editing the original circle.
The conversion of circles into polylines is usually justified only when the original circle must obtain a visual thickness or for some other reasons. Therefore, before you begin, check your polyline conversion settings for presence (or absence) of the selection by the "Circles" column (see "Settings"). |
This example clearly illustrates the idea of TotalPurge:
- The software analyzes selected objects.
- It identifies series of objects to be optimized.
- It replaces complex series of objects with simple entities.
- If necessary, it converts (packs) objects into polylines.
- It re-draws the drawing with new objects.
And thus:
- Reduces the number of graphic objects in a drawing.
- Essentially facilitates further handling of it, reading it and analyzing it.
- Reduces the size of the original drawing file .
- Frees your computer's RAM from unnecessary data.
- Unloads CPU.
- And, as consequence, increases the efficiency of your work.
|
|
|
|
Copyright © 2022 DEBALANCE |
|
|
|
|
|
|