AutoCAD- custom shx

1. Open the cad, the new file.

2, a drawing field the word lattice unit length of all the intersections are interrupted, so as to capture the endpoint and midpoint.

     It is then defined as a block, to avoid clutter lines, but also facilitate selection operation.

3, draw your own shape to be defined as a line, as follows:

4, need Express, Express is not installed when you install, your own Baidu.

5, click on the menu bar of the "Express" - "Tools" - "Make shape",

     First select the storage path shx file, specify the file name.

     Then, specify the type of name, the number of bits specified shape, the shape of the specified point, select objects, spaces.

命令: mkshape
正在初始化...
Enter the name of the shape: bolang2
Enter resolution <128>:
Specify insertion base point:
选择对象: 指定对角点: 找到 1 个
选择对象:
Determining geometry extents...Done.
Building coord lists...Done.
Formating coords...-Done.
Writing new shape...Done.
编译形/字体说明文件
编译成功。输出文件 C:\Users\LiPen\Desktop\shape.shx 包含 87 字节。
Shape "BOLANG2" created.
Use the SHAPE command to place shapes in your drawing.

6, continue to add to the file in shape, click on the menu bar of the "Express" - "Tools" - "Make shape", select the created file, then you and the new definition of the same, if the new name is added to an existing will prompted to overwrite.

7, before the file can be compiled in shape.shp with Notepad, as follows;

*1,42,BOLANG2
4,125,4,80,3,125,3,80,3,128,002,9,(0,0),001,9,(127,0),(1,0),(0,0),002,9,(-127,0),(-1,0),(0,0),001,4,128,4,80,4,125,3,80
3,125,0

8, using the load command to load shape.shx, and insertion shape or shape command to view the list contains shape.

Note: shape definition can be used arc, line and other objects, but may not use the spline (will show a straight line).

Guess you like

Origin blog.csdn.net/xinlan3618/article/details/93606955