AutoCAD method for adjusting line width

  
                  

In the work of drawing various types of graphics using AutoCAD drawing software. The final stage is to finally output the graphic file as a drawing on the printer or plotter. The division of the thickness of the graphic lines is a work that must be taken seriously. Since the graphics on the general drawings cannot distinguish the pixels and structures like the colors and shades available on the color display, they can only achieve this by changing the thickness of the lines. Therefore, dividing the thickness of the lines in the figure is beneficial to distinguish the graphic elements, and is also conducive to accurately expressing the design intent and facilitating the drawing. In particular, the engineering drawings should be divided into obvious thicknesses according to the national drawing standards. This way the drawing can meet the requirements of standardization.

Actually, the thickness of the line varies from coarse to fine, and the line width value of the line is reflected in the computer graphic file. Commonly, for example, the outer wheel corridor line, graphic symbol and table outer frame line of each entity in the graphic are thick lines, and the hatching, dimension (boundary) line, symbol lead, center line, and dotted line should be thin lines. The dotted line is between the thick and thin lines. And the thick, medium, and thin lines can also vary the line width within a certain range as needed. Usually when designers or drafters use AutoCAD drawing software on a computer, they often use group commands like COPY, OFFSET, MIRROR, etc. In order to improve the efficiency of drawing, the thickness and line type of the line are not taken into account when grouping pictures. Instead, this problem will be adjusted together when the final drawing is taken. Since there are many pixels in the picture at this time, it is very complicated and time-consuming to adjust by interactive operation commands, and other methods are difficult to solve the problem satisfactorily. This makes it necessary to provide a convenient tool outside of the AUTOCAD interoperability function, so that it can be done quickly and easily for fast, accurate, efficient and comprehensive purposes. Ensure that the graphical view on the screen is clear and well-defined.

Generally speaking, there are two ways to adjust the line width in a graphic: one method is to layer different lines with different line widths when drawing, or set different colors according to different thickness, and then use them together. The line width setting parameters of the pen or high-end inkjet plotter are adjusted to obtain the required hard copy drawing. The disadvantage of this method is that the output device requires high conditions, and the parameter setting of the drawing device is skilled. However, people can't see the real effect of the output after the output on the screen. Moreover, when designing a graphic, the layering and color separation management considered by the designer cannot be based only on the width of the line. When the pixels of the same layer and color appear to distinguish the line width because of the line type, structure, etc., they have to be adjusted one by one. This makes the task of setting the output line width very complicated.

The second method is to explicitly adjust each pixel on the screen to display the graphic to be output on any graphic output device (plotter, printer, camera, photo production device). The thickness of the line is then output. What you see on the screen is a real reflection of what you get. It is not necessary to adjust the parameters of the output device to the line width change, and there is no special requirement for the output device. This is of practical significance in the current situation where a high-end plotter is expensive and a large number of ordinary printers are used for drawing.

This article introduces a small AutoLISP program written for this purpose, which enables the operator to complete the setting of the pixel thickness in the graph with very convenient and fast means.

The types of lines that the program can handle include straight lines, polylines, circles (arcs), ellipse (arcs), and splines. Line types can handle solid lines, dashed lines, center lines, and dotted lines. , boundary lines, etc. The operator can call the program at any time in the interactive state to complete the adjustment of the line thickness in the current graph.

In order to facilitate the operation and improve the efficiency of pixel selection, the program has designed several implementation methods for setting the line width. However, in any way, you must first determine the range of settings you need (including: layer, color, and line). If the line width of a tile on a layer does not need to be adjusted or adjusted, you can turn it off first to narrow the selection.

The following are the specific operations of the three methods:

First, select the pixel adjustment:

1) Select [SelectayerColorLType] to answer S (Select)

2) Select the pixel range of the set line width

3) Give the new line width value

4) Auto-complete Set all the lines according to the new line width value Select the pixel width in the range

Second, the layer adjustment:

1) Select the answer L(Layer)

2) Select the setting pixel Range (can be all or part of it)

3) Two methods for determining the layer name can be selected in [EntityName]. Answer E can select a pixel from the graph, the layer name of the layer where the pixel is located; the answer N needs to type the layer name of the set layer

4) give the new line width Value

5) Automatically adjust the pixel line width in the selected range on the determined layer according to the new line width value

3. Adjust by color:

1) Mode selection answer C (Color)

2) Select the range of adjustment effect

3) There are two ways to determine the color in [EntityNumber]. Answer E, you can select a pixel with the same color as the desired color adjustment: answer N and give the number of the desired color adjustment

4) Given the new line width value

5) The program automatically adjusts the line width of the color matching pixels within the determined range according to the selected line width according to the selected color.

4. Adjust by line type:

1) Mode selection answer LT (LType)

2) Select the range of adjustment

3) Answer E in [EntityName] to select a one-line matching graph from the graph Prime; answer N gives the uppercase letter of any type of English name in [ContinuousDenterCenterPhantomDIvideHiddenDOtDAshdotBorder]

4) Given a new line width value

5) The program is new The line width value automatically adjusts the line width of the pixel within the determined range according to the selected line type.

Notes on the use:

1 Program pairs within the selected range such as Hatch lines, dimension lines, extension lines, text, and symbols do not work. This way, when determining the setting range, it is not necessary to take into account the changes of these pixels.

2 The program can't adjust the pixels in the block. If you need to adjust, first the elements in the EXPLORING block. If you want to maintain the original graphic file structure, the graphic file after setting the line width can overwrite the original graphic file without saving the disk.

3 When selecting, you can use the window selection method and select one by one. You can also use SHIFT+ to select the selected pixel.

4 All the pixels that change the line width, except for the thickness change, other properties (such as layer, color, line type) do not change.

5 If the color or line value of the pixel in the original layer is 揃YLAYER J is more than the chlorine * (drawn),

then these pixels are now pressed When the line width is adjusted by the color or line type (LType) mode, the pixels are not within the scope of the program. It is also impossible to take these factors as the basis in the above two ways, and select an entity to determine the color and line type. This is prompted when you encounter such a situation during the running of the program. In this case, it can be considered to be preferentially adjusted by means of Select or Layer. Because the pixels that can be set in color or line mode are those determined by the COLOR command or the SET LINETYPE command, they can be automatically searched for adjustment regardless of which layer they are on.

Copyright © Windows knowledge All Rights Reserved