Wire labeling of lisp program 1

Shown here is the running process and results of a lisp program for wire labeling. The custom function mydcl is used to label each point of the wire (polyline), and the label layer can be displayed and hidden.

1 Load the lisp program

1.1 lisp program loading process

Tools->AutoLisp->Load ApplicationInsert picture description here

1.2 Load lisp program

Select .lsp or .fas or .vlx file -> click Load -> show that it has been successfully loaded...
Insert picture description here

2 Run the lisp command

2.1 Enter the command mydcl (custom function)

Insert picture description here

2.2 Enter the path where the lisp program is located

Insert picture description here

3 Program running results

3.1 Pop-up wire labeling dialog box (custom)

Insert picture description here

3.2 Select the wire to be marked

Insert picture description here

3.3 Click OK

Insert picture description here

3.4 Program running results

Each point of the polyline is labeled with the serial number and coordinates; and the odd-numbered point is labeled as 2 triangles, and the even-numbered point is a circle and a triangle.
Insert picture description here

4 Hiding and showing the label layer

4.1 Hide label layer

Enter the dimoff (custom) command, the
Insert picture description here
label layer is hidden
Insert picture description here

4.2 Labeling layer display

Enter the dimon (custom) command and the
Insert picture description here
label layer is displayed
Insert picture description here

Guess you like

Origin blog.csdn.net/peter_young1990/article/details/106453299