Rapid drawing and labeling method for triangular plate based on CAD (Computer Aided Design)

By writing the alignment annotation and circle intersection function module in the CAD system, the automatic drawing and labeling of triangle plates is realized, which solves the problem of low efficiency in drawing triangles by CAD software, improves design efficiency and accuracy, and realizes rapid batch drawing and labeling.

CN119203283APending Publication Date: 2024-12-27CHINA NORTHWEST ARCHITECTURE DESIGN & RES INST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411238397.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-05
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

In architectural construction design, the process of using CAD software to draw triangle plates is cumbersome, with many repetitive operations and low efficiency, resulting in designers having large workloads, poor accuracy, and time-consuming and labor-consuming.

Method used

By writing an alignment annotation function module and a circle intersection function module in the CAD system, it is possible to automatically calculate the positioning points and draw the side length of the triangle, and use a polyline drawing command and an alignment annotation function module to realize batch drawing and labeling of triangles.

Benefits of technology

It greatly improves design efficiency and accuracy, and can draw multiple triangles in 5 seconds, reducing the workload of designers, and solving the problems of low efficiency, slow speed and high error rate of traditional methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119203283A_ABST
    Figure CN119203283A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of building design application computer aided design software drawing, and relates to the technical field of building design application computer aided design software drawing, which comprises the following steps of: setting and arranging starting points of triangles at equal intervals from left to right by taking a starting point as an original point according to ruler returning data of the triangles required to be drawn, and grouping data of the triangles; the alignment labeling function module can automatically calculate a positioning point through the two measuring points and label the side length of the positioning point; a circle intersection function module is used for drawing a circle with the starting point and the ending point of the bottom edge of the triangle as the circle center and the left and right side lengths as the radius, triangle vertexes are obtained, and the triangle is drawn by calling a multi-line-segment drawing command after the vertexes are determined; carrying out size marking on three sides of the triangle through an alignment marking function module; according to the method, drawing of multiple triangles and size marking can be automatically completed in batches, the problems that a traditional drawing method is low in efficiency and high in workload error rate are solved, and the technical effects of rapidly drawing and marking the special-shaped plates in batches and improving design working efficiency and working precision are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of computer-aided design software drawing for architectural design, and in particular to a method for quickly drawing and marking triangular plates based on CAD. Background Art

[0002] In the field of building construction design technology, with the improvement and popularization of the concept of architectural art, various advanced and special-shaped structures and designs are often displayed in the society by splicing multiple conventional small structural shapes into special-shaped and advanced structures, especially in the construction process of curtain wall projects, involving hyperbolic anisotropic skylights, which are often simulated by triangular plates. The skylights have complex shapes and many types of plates, with more than thousands of triangular plates of different specifications. In addition, during the actual construction on site, the on-site error of the steel structure of the skylight is large, and the theoretical data cannot be used as a reference. The processing drawings are drawn based on the on-site measured data. In the traditional process of drawing the processing drawings of triangular plates, the bottom edge needs to be drawn according to the size, and it takes more than 30 seconds to draw a triangle. The process is cumbersome and there are many repetitive operations. It relies on manual drawing, with poor accuracy, time-consuming and labor-intensive, and low efficiency. Summary of the invention

[0003] In view of the problems that software is used to draw triangles in existing building construction designs, the drawing process is cumbersome, there are many repetitive operations, and the efficiency is low, the present invention provides a CAD triangle plate fast drawing and marking method.

[0004] The purpose of the present invention is to provide a method for quickly drawing and annotating CAD triangle plates, which solves the problem that the existing CAD software is inefficient and takes a long time to draw triangle graphics, and can achieve the technical effect of drawing multiple triangles in 5 seconds.

[0005] To solve the above technical problems, according to one aspect of the present invention, the present invention provides the following technical solutions:

[0006] A method for quickly drawing and marking a triangular plate based on CAD includes the following steps:

[0007] Step 1: Input the written alignment and annotation function module and circle intersection function module program codes into the CAD system and save them to form a call command, so as to facilitate repeated calls of the main program;

[0008] The alignment and annotation function module is a program that automatically calculates the positioning point based on the two measurement points passed in, and calls the alignment and annotation through these three points to automatically complete the dimensioning and positioning;

[0009] The circle intersection function module is a program that automatically calculates the point with a larger Y value among the intersection points according to the circle primitive name passed in, and returns the point coordinate value;

[0010] Step 2: Use the alignment annotation function module to select the starting point for placing the graphic, select the second point, use the first point as a reference, and calculate the direct distance L between the two points. The subsequent drawings use the starting point as the base point, L as the modulus, and the multiple increases so that the distances between the starting points of each graphic are the same.

[0011] Step 3: Filter through the program to ensure that the program only selects text primitives and counts the number of primitives n, and introduces parameter i, the default value of which is 0;

[0012] Step 4: According to the number of statistical primitives n, the following steps are repeated n times: 1) read primitive information; 2) list the read primitive information and put it into the selection set; 3) introduce parameter i and assign a value;

[0013] Step 5: Sort the selected points by their X coordinates from small to large and their Y values ​​from large to small;

[0014] Step 6, introduce parameter k, the initial value is 0; introduce parameter j, the initial value is 3; group the introduced parameter j data into groups of 4, corresponding to the number, bottom side length, left side length, and right side length respectively;

[0015] Step 7: According to the number of statistical primitives n, draw n triangles at equal intervals repeatedly n times and mark the side lengths of the n triangles;

[0016] Step 8: After all data processing is completed, object snap is turned on and the function ends.

[0017] Furthermore, the program codes of the alignment and marking function module and the circle intersection finding function module in step 1 are all written by ourselves.

[0018] Furthermore, the step 2 requires manually setting the placement starting point and layout spacing of the drawing graphics through a mouse or keyboard, and the spacing is greater than the length of the bottom edge.

[0019] Furthermore, in step 3, a filtering condition is added to the selection process to select text, and the text needs to be placed according to the left-aligned principle when inserted.

[0020] Furthermore, the reading of graphic element information in step 4 includes reading the i-th graphic element, reading the text insertion point, and reading the text content; the listing of the read graphic element information and placing it into a selection set includes serializing the read text insertion point coordinates and text content, placing them into a selection set, and executing them in sequence; the assignment of the introduced parameter i includes assigning i=i+1, determining whether i is less than n, and if it is greater than n, the program runs downward; and: when i is less than n, repeating 1) to 3) of this step 4.

[0021] Furthermore, in step 4, all data are processed and serialized with text insertion points and content to facilitate data grouping and sorting in the next step.

[0022] Further, the step 7 comprises the following steps:

[0023] 1) Take the starting point as the origin and translate the point pt horizontally to the right by a distance of k*L as the starting point of the triangle;

[0024] 2) Take out the j-3th element (four elements are grouped together, take the first element) as the number;

[0025] 3) Take out the j-2th element (four elements are grouped together, take the second element) as the length of the base;

[0026] 4) Take out the j-1th element (four elements are grouped together, take the third element) as the length on the left;

[0027] 5) Take out the jth element (four elements are grouped together, take the fourth element) as the length of the right side

[0028] 6) Taking pt as the base point, translate horizontally to the right by the length of the bottom edge to obtain the second point of the bottom edge pd;

[0029] 7) Draw a circle with point pt as the center and the length of the left side as the radius; draw a circle with point pd as the center and the length of the right side as the radius;

[0030] 8) Using two circles as parameters, call the circle intersection function to calculate the vertex pj;

[0031] 9) Call the polyline drawing command and draw a triangle according to pt, pd, pj, pt;

[0032] 10) Call the alignment annotation function module to mark the three side lengths respectively;

[0033] 11) Delete two circles;

[0034] 12) Assign j=j+3, k=k+1, and determine whether j is less than n / 4. If j is greater than n / 4, the program will continue; and: if j is less than n / 4, repeat steps 1) to 12).

[0035] Furthermore, the steps 1) to 12) group the metadata of each graphic element, and each group of data consists of 4 data, corresponding to the number, base length, left length, and right length respectively; the data of each triangle needs to be counted in the order of this information.

[0036] Furthermore, in step 7, the program automatically assigns corresponding parameters according to the input metadata of each graphic element, automatically solves the position of each point of the triangle, automatically draws, automatically labels, and automatically deletes redundant graphics.

[0037] Furthermore, the self-written program code of the polyline drawing command in step 7 is then written into the CAD system to form a new calling command or the polyline drawing command provided by the CAD system is used to facilitate repeated calling.

[0038] Compared with the prior art, the present invention has the following beneficial effects:

[0039] 1. The present invention is based on AutoCAD software (hereinafter referred to as CAD). By saving the program codes of the self-written alignment and annotation function module and the circle intersection function module and inputting them into the CAD software to form a newly created definition command, a new CAD function module is formed to achieve batch drawing and batch annotation of triangular anisotropic plates of various sizes and shapes, which can greatly reduce the workload of designers and improve design work efficiency and work accuracy.

[0040] 2. The present invention draws the return scale data of the triangle as needed, takes the starting point as the origin, arranges the starting points of each triangle at equal distances from left to right, and groups the data of each triangle (including number, base length, left length, and right length). The alignment and annotation function module can automatically calculate the positioning point through two measuring points and annotate the side length; then, through the circle intersection function module, a circle is drawn according to the starting point and end point of the base of the triangle as the center of the circle, and the left and right lengths are used as the radius to obtain the vertices of the triangle; after determining the vertices, the triangle is drawn by calling the multi-segment drawing command; after determining the vertices, the three sides of the triangle are drawn by calling the multi-segment drawing command; then the three sides of the triangle are dimensioned by the alignment and annotation function module; the drawing and dimensioning of multiple (hundreds, thousands, tens of thousands of different sizes) triangles can be completed at the same time, which solves the problems of low efficiency, slow speed, and high workload error rate of traditional drawing methods, and has the technical effect of batch drawing and batch annotation of heterogeneous plates at the same time; it can greatly reduce the workload of designers and improve the design work efficiency and work accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 It is a schematic diagram of the flow chart of the alignment and annotation function module of the present invention;

[0042] Figure 2 It is a schematic diagram of the flow chart of the function module for finding the circle intersection point of the present invention;

[0043] Figure 3 It is a flowchart of the method of quickly drawing and labeling triangular plates;

[0044] Figure 4 It is a schematic diagram of the function for finding the intersection point of a circle;

[0045] Figure 5 There are 10 triangles as a set of reference data graphs;

[0046] Figure 6This is an example of the results of a group of 10 triangles. DETAILED DESCRIPTION

[0047] To make the purpose, technical solutions and advantages of the present invention more clear, the following will be combined with the attached Figure 1-6 The embodiments of the present invention are described in further detail.

[0048] Example 1, see attached Figure 1-6 describe;

[0049] A method for quickly drawing and marking a triangular plate based on CAD includes the following steps:

[0050] Step 1: Write the program code of the alignment and marking function module and the circle intersection function module by yourself;

[0051] Input the written alignment and annotation function module and circle intersection function module program codes into the CAD system and save them to form a call command tr3, so as to facilitate repeated calls of the main program;

[0052] like Figure 1 As shown, the alignment and annotation function module is a program that automatically calculates the positioning point based on the two measurement points passed in, and calls the alignment and annotation through these three points to automatically complete the dimensioning and positioning;

[0053] like Figure 2 As shown, the circle intersection function module is a program that automatically calculates the point with a larger Y value among the intersection points according to the circle primitive name passed in, and returns the point coordinate value;

[0054] Step 2. Manually use the mouse or keyboard to use the alignment annotation function module to set the starting point and layout spacing L of the drawing graphics, and the spacing L must be greater than the length of the bottom edge. Then select the starting point for the graphics, select the second point, and use the first point as a reference to calculate the direct (straight line) distance L between the two points. The subsequent drawing takes the starting point as the base point, L is the modulus, and the multiple increases, and the distances between the starting points of each graphic are the same;

[0055] Step 3: Figure 3 As shown, through program filtering, the selection process adds filtering conditions to select text, and the text needs to be placed according to the left-aligned principle when counting; then select the text primitive and count the number of primitives n, introduce parameter i, and the default value is 0;

[0056] Step 4: According to the number of statistical primitives (such as 10-200 triangles), repeat the following steps 10-200 times:

[0057] 1) Read the i-th graphic element, read the text insertion point, and read the text content; 2) Serialize the read text insertion point coordinates and text content, put them into the selection set, and execute them in sequence; 3) Assign i=i+1, determine whether i is less than n, if it is greater than n, the program runs downward; and: when i is less than n, repeat steps 1) to 3).

[0058] or:

[0059] 1) Read the 5th graphic element, read the text insertion point, and read the text content; 2) Serialize the read text insertion point coordinates and text content, put them into the selection set, and execute them in sequence; 3) Assign i=5+1. At this time, i is greater than n, and the program runs downward.

[0060] Preferably, this step processes all data to form a serial structure with text insertion points and content, which is convenient for the next step of data grouping and sorting.

[0061] Step 5: Sort the selected points by their X coordinates from small to large and their Y coordinates from large to small;

[0062] Step 6: Figure 3 , 4 As shown in , 5, introduce parameter k, the initial value is 0; introduce parameter j, the initial value is 3; group the introduced parameter j data, each 4 as a group, corresponding to the number, bottom side length, left side length, and right side length respectively;

[0063] Step 7. Reference Figure 5-6 As shown, according to the number of statistical primitives, such as 10-200, repeat 1 and perform the following steps 0-200 times:

[0064] 1) Take the starting point as the origin and horizontally translate to the right by k*L (or 1*2500mm, 10 to 200*2500mm) as the starting point of the triangle;

[0065] 2) Take out the j-3th element (four elements are grouped together, take the first element) as the number, such as bl-01;

[0066] 3) Take out the j-2th element (four elements are grouped together, take the second element) as the base length, such as 1980.97;

[0067] 4) Take out the j-1th element (four elements are grouped together, take the third element) as the length on the left, such as 1545.1;

[0068] 5) Take out the jth element (four elements in a group, take the fourth element) as the length of the right side, such as 1593.26

[0069] 6) Taking pt as the base point, translate horizontally to the right by the length of the bottom edge to obtain the second point of the bottom edge pd;

[0070] 7) Draw a circle with point pt as the center and the length of the left side as the radius; draw a circle with point pd as the center and the length of the right side as the radius;

[0071] 8) Using two circles as parameters, call the circle intersection function to calculate the vertex pj;

[0072] 9) Call the polyline drawing command and draw a triangle according to pt, pd, pj, pt;

[0073] 10) Call the alignment annotation function module to mark the three side lengths respectively;

[0074] 11) Delete two circles;

[0075] 12) Assign j=j+3, k=k+1, and determine whether j is less than n / 4. If j is greater than n / 4, the program will continue; and: if j is less than n / 4, repeat steps 1) to 12).

[0076] Furthermore, the steps 1) to 12) group the 10-200 primitive data, each group of data consists of 4 data, corresponding to the 10-200 group numbers, bottom side length, left side length, and right side length respectively; the 10-200 triangle data need to be counted in the order of this information.

[0077] Furthermore, in step 7, the program automatically assigns corresponding parameters according to the 10-200 graphic elements read in, automatically solves the positions of each point of the 10-200 triangles, automatically draws, automatically labels, and automatically deletes redundant graphics.

[0078] Furthermore, the self-written program code of the polyline drawing command in step 7 is then written into the CAD system to form a new calling command or the polyline drawing command provided by the CAD system is used to facilitate repeated calling.

[0079] Step 8. After all data processing is completed, turn on object snap and the function ends.

[0080] The triangle data mentioned in the embodiments of the present application can be complex and irregular, and can adapt to the processing of various triangle plates. Using the above-mentioned CAD-based triangle plate rapid drawing and annotation method, the specific operation steps in the CAD interactive interface are as follows: Enter the tr3 command in the command line → Select basic data → Select the layout starting point → Select the second point → Spacebar to complete the drawing; The present invention draws the triangle return scale data as needed, takes the starting point as the origin, arranges the starting point of each triangle at equal distances from left to right, and groups the data of each triangle (including numbering, bottom side length, left side length, right side length), and the alignment annotation function module can automatically calculate the positioning point through two measuring points and annotate the side length; then, the circle intersection function module is used to calculate the alignment point according to the triangle. The starting point and end point of the bottom edge are the center of the circle respectively, and the left and right sides are used as the radius to draw a circle to obtain the vertices of the triangle; after determining the vertices, the three sides of the triangle are drawn by calling the multi-segment drawing command; and the three sides of the triangle are dimensioned through the alignment and annotation function module; the drawing and dimensioning of multiple (tens, hundreds, thousands, tens of thousands of different sizes) triangles can be completed at the same time, which solves the problems of low efficiency, slow speed, and high workload error rate of traditional drawing methods, and has the function of batch drawing and batch annotation of heterogeneous plates at the same time; it can greatly reduce the workload of designers and improve the technical effect of design work efficiency and work accuracy. The demonstration process of the present invention is as follows Figure 5-6 As shown, taking 10 groups of data as an example, the dimensions and angles are different. Enter the command tr3 → select the data information for drawing a triangle (10 groups of data include number, base length, left length, and right length) → select the layout starting point (generally select the middle position of the CAD drawing area) → select the layout spacing L (the layout spacing for this project is 2500mm) → leave space to complete the drawing. This method takes about 5 seconds in total; the traditional method takes about five to ten minutes, which greatly improves the design work efficiency. In addition, the program automatically calculates, draws and annotates throughout the process, with the characteristics of high precision and high efficiency, providing strong support for designers to carry out high-quality work.

[0081] Example 2, reference Figure 1-6 describe;

[0082] During the drawing process of the processing drawing of the special-shaped skylight for a certain project, there was a lot of data. According to the size data of the first batch of 100 triangle figures returned on site, it took a whole day of work, which was time-consuming and labor-intensive, and the efficiency was low. Under this background, a batch drawing automatic annotation program was developed. The second batch of 150 triangle size data was drawn in less than 30 seconds, which greatly reduced manual work. The program batch processing greatly improved work efficiency and work accuracy; the specific implementation steps are as follows:

[0083] 1. Load the tr3 program in the cad command;

[0084] 2. Take the second batch of returned data 150 as an example, a total of 600 data and n = 600; (the first batch uses the traditional drawing method, 100 triangles and 400 data, the drawing process takes a whole day)

[0085] 3. Enter the command tr3 → select the data information of the triangle (600 groups of triangle data including number, base length, left length and right length) → select the layout starting point (usually the middle position or the left position of the center of the CAD drawing area) → select the layout spacing L (the layout spacing of this project is 3000mm) → space to complete the drawing;

[0086] 4. The whole process is automatically drawn, which takes about 30 seconds;

[0087] Example 3, reference Figure 1-6 describe.

[0088] A method for quickly drawing and marking a CAD triangle plate comprises the following steps:

[0089] Step 1: Programming of each function module to facilitate repeated calls of the main program. The main function modules mainly include the following:

[0090] 1) Alignment function module: The program automatically calculates the positioning point based on the two measurement points passed in.

[0091] At these three points, call the alignment annotation to automatically complete the dimensioning and positioning;

[0092] 2) Circle intersection function: According to the circle primitive name passed in, automatically calculate the point with the larger Y value among the intersection points and return the point coordinate value;

[0093] Step 2, select the starting point for the graphic placement, select the second point, use the first point as a reference, calculate the direct distance L between the two points, and the subsequent drawings will be based on the starting point, and the L modulus and multiple increase, so that the distance between the starting points of each graphic is the same;

[0094] Step 3, select text primitives through program filtering, count the number of primitives n, introduce parameter i, and the default value is 0.

[0095] Step 4, repeat n times, and perform the following steps:

[0096] 1) Read the i-th graphic element, read the text insertion point, and read the text content;

[0097] 2) Combine the point coordinates and text content into a series and put them into the selection set;

[0098] 3) Assign i=i+1, and determine whether i is less than n. If yes, repeat steps 1) to 3). If no, the program continues to run;

[0099] Step 5, sort the selected points according to their X coordinates from small to large and their Y values ​​from large to small;

[0100] Step 6, introduce parameter k, the initial value is 0, the initial value of parameter j is 3 (group the data into groups of 4, corresponding to the number, bottom length, left length, and right length respectively);

[0101] Step 7, repeat the following steps:

[0102] 1) Take the starting point as the origin and translate the point pt horizontally to the right by a distance of k*L as the starting point of the triangle;

[0103] 2) Take out the j-3th element (four elements are grouped together, take the first element) as the number;

[0104] 3) Take out the j-2th element (four elements are grouped together, take the second element) as the length of the base;

[0105] 4) Take out the j-1th element (four elements are grouped together, take the third element) as the length on the left;

[0106] 5) Take out the jth element (four elements are grouped together, take the fourth element) as the length of the right side

[0107] 6) Taking pt as the base point, translate horizontally to the right by the length of the bottom edge to obtain the second point of the bottom edge pd;

[0108] 7) Take the two circles as parameters, call the intersection function, and calculate the vertex pj;

[0109] 8) Call the polyline drawing command and draw a triangle according to pt, pd, pj, pt;

[0110] 9) Call the alignment annotation function module to mark the three side lengths respectively;

[0111] 10) Delete two circles;

[0112] 11) Assign j=j+3, k=k+1, and determine whether j is less than n / 4. If yes, repeat steps 1) to 11). If no, the program continues to run;

[0113] Step 8: After all data processing is completed, object snap is turned on and the function ends.

[0114] Preferably, in step 1, all function modules are written by themselves and are repeatedly called later to improve program execution efficiency;

[0115] Preferably, in step 2, it is necessary to manually set the starting point and spacing of the drawn graphics, and the spacing must be greater than the length of the bottom edge, otherwise the graphics will intersect each other;

[0116] Preferably, in step 3, a filtering condition is added to the selection process, and only text can be selected during the frame selection process, and the left and right texts must be placed according to the left-aligned principle when counting.

[0117] Preferably, in step 4, all data are processed to form a series with text insertion points and content, so as to facilitate data grouping and sorting in the next step;

[0118] Preferably, in step 7, the data is grouped, each group of data consists of 4 data, corresponding to the number, bottom length, left length, and right length respectively; the data needs to be counted in the order of this information;

[0119] Preferably, in step 7, the program automatically assigns corresponding parameters according to the read data, automatically solves the position of each point of the triangle, automatically draws, automatically labels, and automatically deletes redundant graphics.

[0120] The specific steps for using the above CAD triangle plate to quickly draw and mark the drawing in the AutoCAD interactive interface are as follows:

[0121] Enter the tr3 command in the command line → select basic data → select the layout starting point → select the second point → press the spacebar to complete the drawing;

[0122] In summary, the method for quickly drawing and marking triangular plates adopted in the present invention takes 10 groups of data as an example for the demonstration process. The sizes and angles are different. The traditional method takes about five to ten minutes, and the method only takes about 5 seconds. It greatly improves the design work efficiency. Moreover, the program automatically calculates, draws and marks throughout the process. It has the characteristics of high precision and high efficiency, which provides a basis for designers to carry out their work with high quality.

[0123] Although the present invention has been described above with reference to the embodiments, various modifications may be made thereto and parts thereof may be replaced with equivalents without departing from the scope of the present invention. In particular, the various features in the embodiments disclosed in the present invention may be used in combination with each other in any manner, and the fact that these combinations are not exhaustively described in this specification is only for the sake of omitting space and saving resources. Therefore, the present invention is not limited to the specific embodiments disclosed herein, but includes all technical solutions falling within the scope of the claims.

Claims

1. A method for quickly drawing and marking triangular plates based on CAD, characterized in that: The following steps are involved: Step 1: Input the written alignment and annotation function module and circle intersection function module program codes into the CAD system and save them to form a call command, so as to facilitate repeated calls of the main program; The alignment and annotation function module is a program that automatically calculates the positioning point based on the two measurement points passed in, and calls the alignment and annotation through these three points to automatically complete the dimensioning and positioning; The circle intersection function module is a program that automatically calculates the point with a larger Y value among the intersection points according to the circle primitive name passed in, and returns the point coordinate value; Step 2: Use the alignment annotation function module to select the starting point for placing the graphic, select the second point, and use the first point as a reference to calculate the direct distance L between the two points. The subsequent drawings use the starting point as the base point, L as the modulus, and the multiple increases so that the distances between the starting points of each graphic are the same. Step 3: Filter through the program to ensure that the program only selects text primitives and counts the number of primitives n, and introduces parameter i, the default value of which is 0; Step 4: According to the number of statistical primitives n, the following steps are repeated n times: 1) read primitive information; 2) list the read primitive information and put it into the selection set; 3) introduce parameter i and assign a value; Step 5: Sort the selected points by their X coordinates from small to large and their Y values ​​from large to small; Step 6, introduce parameter k, the initial value is 0; introduce parameter j, the initial value is 3; group the introduced parameter j data into groups of 4, corresponding to the number, bottom side length, left side length, and right side length respectively; Step 7: According to the number of statistical primitives n, draw n triangles at equal intervals repeatedly n times and mark the side lengths of the n triangles; Step 8. After all data processing is completed, turn on object snap and the function ends.

2. The method for quickly drawing and marking a triangular plate based on CAD as claimed in claim 1, characterized in that: The program codes of the alignment and marking function module and the circle intersection finding function module in step 1 are all self-written.

3. The method for quickly drawing and marking a triangular plate based on CAD as claimed in claim 1, characterized in that: The step 2 requires manually setting the drawing graphic placement starting point and layout spacing through the mouse or keyboard, and the spacing must be greater than the bottom edge length.

4. The method for quickly drawing and marking a triangular plate based on CAD as claimed in claim 1, characterized in that: In step 3, the selection process adds a filtering condition to select text, and the text needs to be placed according to the left-aligned principle when inserted.

5. The method for quickly drawing and marking a triangular plate based on CAD as claimed in claim 1, characterized in that: In the step 4, the reading of the primitive information includes reading the i-th primitive, reading the text insertion point, and reading the text content; the listing of the read primitive information and putting it into the selection set includes serializing the read text insertion point coordinates and the text content, putting them into the selection set, and executing them in sequence; the introducing and assigning the parameter i includes assigning i=i+1, judging whether i is greater than n, and if it is greater than n, the program runs downward; And: when i is less than n, repeat 1) to 3) of this step 4.

6. The method for quickly drawing and marking a triangular plate based on CAD as claimed in claim 5, characterized in that: In step 4, all data are processed and serialized with text insertion points and contents to facilitate data grouping and sorting in the next step.

7. The method for quickly drawing and marking a triangular plate based on CAD as claimed in claim 1, characterized in that: The step 7 comprises the following steps: 1) Take the starting point as the origin and translate the point pt horizontally to the right by a distance of k*L as the starting point of the triangle; 2) Take out the j-3th element (four elements are grouped together, take the first element) as the number; 3) Take out the j-2th element (four elements are grouped together, take the second element) as the length of the base; 4) Take out the j-1th element (four elements are grouped together, take the third element) as the length on the left; 5) Take out the jth element (four elements are grouped together, take the fourth element) as the length of the right side 6) Taking pt as the base point, translate horizontally to the right by the length of the bottom edge to obtain the second point of the bottom edge pd; 7) Draw a circle with point pt as the center and the length of the left side as the radius; draw a circle with point pd as the center and the length of the right side as the radius; 8) Using two circles as parameters, call the circle intersection function to calculate the vertex pj; 9) Call the polyline drawing command and draw a triangle according to pt, pd, pj, pt; 10) Call the alignment annotation function module to mark the three side lengths respectively; 11) Delete two circles; 12) Assign j=j+3, k=k+1, and determine whether j is less than n / 4. If j is greater than n / 4, the program will continue; and: if j is less than n / 4, repeat steps 1) to 12).

8. The method for quickly drawing and marking a triangular plate based on CAD as claimed in claim 7, characterized in that: The steps 1) to 12) group the metadata of each graphic element, and each group of data consists of 4 data, which correspond to the number, the length of the bottom side, the length of the left side, and the length of the right side respectively; the data of each triangle needs to be counted in the order of this information.

9. The method for quickly drawing and marking a triangular plate based on CAD as claimed in claim 7, characterized in that: In step 7, the program automatically assigns corresponding parameters according to the inputted metadata, automatically solves the position of each point of the triangle, automatically draws, automatically labels, and automatically deletes redundant graphics.

10. The method for quickly drawing and marking a triangular plate based on CAD as claimed in claim 7, characterized in that: In the step 7, the self-written program code of the polyline drawing command is written into the CAD system to form a new calling command or the polyline drawing command provided by the CAD system is used to facilitate repeated calling.