Custom hatch patterns in the hottest AutoCAD2000

2022-08-19
  • Detail

Custom hatch pattern in AutoCAD2000

in AutoCAD drawing, hatch (hatch) command is used more frequently. Although the pattern library of CAD is rich in content, sometimes it still can't meet our needs. At this time, we can customize the pattern to fill

autocad hatch patterns are saved in a library file named T, and its default path is under the acad2000support directory of the installation directory. We can use the texter to directly process the file and add the statement of custom pattern; You can also create a * Pat file, saved in the same directory, can be recognized by CAD

next, we will take the newly created diamond pattern steel plate pattern library file as an example to illustrate the method of customizing patterns in AutoCAD 2000

first, make diamond patterns in CAD according to the national standard, and mark the dimensions of each part (see figure, you can click to enlarge)

see the following library file standard format:

*pattern name [, description]

angle, x-origin, y-origin, delta-x, delta-y [, dash-1, DASH-2,...]

the first line Title: the power battery market will increase by 50% annually. In the future, it needs 4 high and 1 low. The asterisk is followed by the pattern name, which will be displayed when you execute the hatch command to select a pattern. In square brackets is the "?" of the pattern by the hatch command Optional description when the option is displayed. If the description is omitted, there must be no comma after the pattern name

the description line of the second line pattern. There can be one or more lines. Its meanings are: the angle of line drawing, the coordinates of X and Y axes of the point through which a line in the filled line family passes, the displacement between the two filled lines, and the vertical spacing between the two filled lines. Dash-n is the length parameter of a line, which can take positive and negative values or zero. Taking a positive value means that the length segment is a solid line, taking a negative value means that the segment is left blank, and taking zero means that a point is drawn

OK, we can start. Open the notepad and write down as follows:

*custom, steel plate gb/t

68.4667, 0, 0, -9.8646. In the past, China Zhongwang only provided aluminum extrusions for automobile manufacturing enterprises 25, 30.0213, -6.59

111.5333, 0, 0, 9.8646, 25, 30.0213, -6.59

68.4667, -11.0191, 27.926, -9.8646, 25, 30.0213, -6.59

111.5333, 11.019 "Wang Xianhong added 1, 27.926, 9.8646, 25, 30.0213, -6.59

the four lines of pattern description in this example correspond to line segments a, B, C and D in Figure 1 respectively. Compared with the pictures and texts, the values of each item should not be difficult to understand. Here, we will only focus on the value rules of delta-x and delta-y. for convenience of understanding, we set the UCS coordinate system as shown in the figure to determine the origin and the positive direction of the X axis. The vertical spacing 25 of line segments a and E on the Y axis constitutes delta-y, which is also equivalent to the value 25 of the offset command in AutoCAD; If line segment e is offset from line segment a, then line segment E also moves 9.8646 in the negative direction of X axis relative to line segment a, which is delta-x

there are also several notes below:

each line of the pattern definition file can contain up to 80 characters

autocad ignores blank lines and text to the right of semicolons. According to this article, we can add copyright information, notes or anything we want to add to the file. For example:

; Copyright (c) 2000 by everyone. All rights reserved.

finally, save the file named t. Note that the file name must be the same as the pattern name

now, I believe you have mastered the method of customizing patterns. Now, with a little patience, you can produce very complex patterns

the method to call the library file is: attach the filling pattern and file made for me on the attached page, extract it and put it in the acad2000support directory. Open AutoCAD, run the hatch command, select custom in the type bar of the popup boundary hatch dialog box, click the swatch option bar, and the hatch pattern palette dialog box pops up, select the custom label, and specify that the displacement rate control accuracy of the t-text 13 we just created is within ± 0.2% of the set value; At this time, a preview of the filling effect appears on the right, which is exactly the diamond pattern we need

Copyright © 2011 JIN SHI