CN112231500A - Method for adjusting three-dimensional digital-analog engineering drawing serial number position - Google Patents
Method for adjusting three-dimensional digital-analog engineering drawing serial number position Download PDFInfo
- Publication number
- CN112231500A CN112231500A CN201910578165.XA CN201910578165A CN112231500A CN 112231500 A CN112231500 A CN 112231500A CN 201910578165 A CN201910578165 A CN 201910578165A CN 112231500 A CN112231500 A CN 112231500A
- Authority
- CN
- China
- Prior art keywords
- serial number
- sequence number
- engineering drawing
- dimensional
- adjusting
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/51—Indexing; Data structures therefor; Storage structures
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention relates to a method for adjusting the position of a three-dimensional digital-analog engineering drawing serial number, which is characterized in that a two-dimensional engineering drawing is introduced into three-dimensional software, the central position of an outer surrounding line of a view and four vertex coordinates of the outer surrounding line are obtained, a two-dimensional coordinate system is established according to the central position, the view is divided into four quadrants in the two-dimensional coordinate system, and each quadrant is divided into two areas by taking an angular bisector as a dividing line. The number of sequence number labels, the sequence number positions and the sequence number attachment positions in the view are obtained, the areas where the sequence number labels and the sequence number attachment positions are located are determined, and the equal spacing distance between each sequence number label in the x direction and the equal spacing distance between each sequence number label in the y direction are calculated according to the sequence number labels and the outer surrounding line vertex coordinates corresponding to the sequence number labels. And automatically adjusting the serial number label and the serial number attachment position to obtain a new engineering drawing serial number position.
Description
Technical Field
The invention relates to the field of computer aided design, in particular to a method for adjusting the position of a three-dimensional digital-analog engineering drawing serial number.
Background
In the field of three-dimensional drawing at present, a large amount of engineering drawings can be generated by an existing three-dimensional drawing tool in a large-scale assembly environment, but the existing software has many inconveniences for drawing the engineering drawings, for example, sequence number labels meeting the engineering drawing standard (as shown in fig. 1) cannot be generated at one time, and then engineering drawing personnel need to manually modify the labels of the engineering drawings in the software one by one, so that a large amount of workload is generated, and the work efficiency of the engineering drawing personnel is low.
Therefore, the invention designs a method for adjusting the position of the three-dimensional digital-analog engineering drawing serial number.
Disclosure of Invention
The present invention is made to solve the above problems, and an object of the present invention is to provide a method for adjusting the position of the three-dimensional digital-analog engineering drawing sequence number.
The invention provides a method for adjusting the position of a three-dimensional digital-analog engineering drawing serial number, which is characterized by comprising the following steps:
step 1: introducing a two-dimensional engineering drawing into the three-dimensional software, wherein the two-dimensional engineering drawing comprises a plurality of views, an outer surrounding line is arranged on the periphery of each view, the central position O (O, O) of one outer surrounding line is selected, a two-dimensional coordinate system is established according to the central position, and the views are divided into four quadrants in the two-dimensional coordinate system;
step 2: dividing each quadrant into two areas by taking an angular bisector as a dividing line;
and step 3: acquiring coordinates of four vertexes of an outer surrounding line of the view;
and 4, step 4: acquiring sequence number labels in the view, and establishing a sequence number set AmM is the number of serial number labels in the two-dimensional engineering drawing;
and 5: obtaining the serial number position marked by the serial number, and establishing a serial number position set Bm(x,y);
Step 6: obtaining the serial number attaching position marked by the current serial number, and establishing a set C of the serial number attaching positionsm(x,y),Cm(x, y) and Bm(x, y) are in one-to-one correspondence.
And 7: by Bm(x,y)、CmComparing (x, y) with O (O, O), and determining a quadrant where a serial number label and a serial number attachment position are located;
and 8: from Bm(x,y)、Cm(X, y) obtaining an included angle theta between the serial number lead and the coordinate X axis;
and step 9: judging the area to which the serial number label belongs according to the size of theta;
step 10: according to a plurality of Bm(x, y) and the corresponding vertex coordinates of the outer surrounding line, and calculating each serial numberEqual spacing distances between labels in the x-direction and the y-direction;
step 11: and automatically adjusting the serial number label and the serial number attachment position to obtain a new engineering drawing serial number position.
The method for adjusting the sequence number position of the three-dimensional digital-analog engineering drawing provided by the invention can also have the following characteristics: wherein, the multiple views in step 1 are selected according to a principle of Z-shaped sequence from top to bottom.
The method for adjusting the sequence number position of the three-dimensional digital-analog engineering drawing provided by the invention can also have the following characteristics: wherein, the sequence number position set B in the step 5m(x, y) the ranking criterion is that the value of x is the smallest and the value of y is the closest to 0.
The method for adjusting the sequence number position of the three-dimensional digital-analog engineering drawing provided by the invention can also have the following characteristics: wherein the method for determining the boundary in step 6 is to judge Bm(x,y)、CmThe positive and negative values of x and y in (x, y).
Action and Effect of the invention
According to the method for adjusting the serial number position of the three-dimensional digital-analog engineering drawing, the two-dimensional engineering drawing is introduced into the three-dimensional software, the central position of the outer surrounding line of the view and the coordinates of four vertexes of the outer surrounding line are obtained, the two-dimensional coordinate system is established according to the central position, the view is divided into four quadrants in the two-dimensional coordinate system, and each quadrant is divided into two areas by taking the angular bisector as the dividing line. The number of sequence number labels, the sequence number positions and the sequence number attachment positions in the view are obtained, the areas where the sequence number labels and the sequence number attachment positions are located are determined, and the equal spacing distance between each sequence number label in the x direction and the equal spacing distance between each sequence number label in the y direction are calculated according to the sequence number labels and the outer surrounding line vertex coordinates corresponding to the sequence number labels. And automatically adjusting the serial number label and the serial number attachment position to obtain a new engineering drawing serial number position.
Therefore, the problem that the sequence number marking of the generated engineering drawing does not accord with the engineering drawing standard is solved, and the work that drawing personnel need marking one by one is further avoided, so that the work efficiency of the engineering drawing personnel is improved.
Drawings
FIG. 1 is a two-dimensional engineering diagram without adjustment in an embodiment of the present invention;
FIG. 2 is a two-dimensional engineering diagram after adjustment in an embodiment of the invention.
Detailed Description
In order to make the technical means, creation features, achievement purposes and effects of the invention easy to understand, the following embodiments specifically describe the method for adjusting the position of the sequence number of the three-dimensional digital-analog engineering drawing in combination with the accompanying drawings.
Step 1: and importing a two-dimensional engineering drawing into the three-dimensional software, wherein the two-dimensional engineering drawing comprises a plurality of views, an outer surrounding line is arranged on the periphery of each view, the central position O (O, O) of one outer surrounding line is selected, a two-dimensional coordinate system is established according to the central position, and the views are divided into four quadrants in the two-dimensional coordinate system, namely a first quadrant, a second quadrant, a third quadrant and a fourth quadrant.
Step 2: the first quadrant, the second quadrant, the third quadrant and the fourth quadrant are sequentially divided into eight areas by taking an angular bisector as a dividing line, wherein the eight areas are respectively a first area, a second area, a third area, a fourth area, a fifth area, a sixth area, a seventh area and an eighth area.
And step 3: obtaining coordinates of four vertexes of the surrounding line outside the view, and the upper left corner V1(x1,y1) Lower left corner V2(x2,y2) The upper right corner V3(x3,y3) Lower left corner V4(x4,y4)。
And 4, step 4: acquiring sequence number labels in the view, and establishing a sequence number set AmAnd m is the number of serial number labels in the two-dimensional engineering drawing.
And 5: obtaining the serial number position marked by the serial number, and establishing a serial number position set Bm(x, y) and the sorting criterion is that the value of x is the smallest and the value of y is the closest to 0.
Step 6: obtaining the serial number attaching position marked by the current serial number, and establishing a set C of the serial number attaching positionsm(x,y),Cm(x, y) and Bm(x, y) are in one-to-one correspondence.
And 7: by Bm(x,y)、CmAnd (x, y) determining the positive and negative values of x and y in the (x, y) and determining the quadrant where the serial number label and the serial number attached position are located.
And 8: from Bm(x,y)、Cm(X, y) obtaining an included angle theta between the serial number lead and the coordinate X axis.
And step 9: and judging the area to which the serial number label belongs according to the size of theta.
Step 10: according to a plurality of Bm(x, y) and the corresponding outer surrounding line vertex coordinates, and calculating the equal spacing distance between each serial number label in the x direction and the y direction of the four quadrants.
The first quadrant has a distance X in the X-axis directionstep:
distance Y in Y-axis directionstep:
the distance Y is set between the second quadrant and the X-axisstep:
distance Y in Y-axis directionstep:
the distance X is arranged in the X-axis direction of the third quadrantstep:
distance Y in Y-axis directionstep:
the distance X is set between the fourth quadrant and the X-axisstep:
distance Y in Y-axis directionstep:
Step 11: and marking the serial numbers according to the equal interval distances of the belonged areas, marking the serial numbers on the outer surrounding lines parallel to the x axis of the second area, the third area, the sixth area and the seventh area, marking the serial numbers on the outer surrounding lines parallel to the y axis of the first area, the fourth area, the fifth area and the eighth area, and further obtaining the new engineering drawing serial number positions (as shown in FIG. 2).
And obtaining the engineering drawing with the adjusted marked serial number, so that the working efficiency of drawing personnel can be greatly improved.
Effects and effects of the embodiments
According to the method for adjusting the serial number position of the three-dimensional digital-analog engineering drawing, the two-dimensional engineering drawing is introduced into the three-dimensional software, the central position of the outer surrounding line of the view and the coordinates of four vertexes of the outer surrounding line are obtained, the two-dimensional coordinate system is established according to the central position, the view is divided into four quadrants in the two-dimensional coordinate system, and each quadrant is divided into two areas by taking the angular bisector as the dividing line. The number of sequence number labels, the sequence number positions and the sequence number attachment positions in the view are obtained, the areas where the sequence number labels and the sequence number attachment positions are located are determined, and the equal spacing distance between each sequence number label in the x direction and the equal spacing distance between each sequence number label in the y direction are calculated according to the sequence number labels and the outer surrounding line vertex coordinates corresponding to the sequence number labels. And automatically adjusting the serial number label and the serial number attachment position to obtain a new engineering drawing serial number position.
Therefore, the problem that the sequence number marking of the generated engineering drawing does not accord with the engineering drawing standard is solved, and the work that drawing personnel need marking one by one is further avoided, so that the work efficiency of the engineering drawing personnel is improved.
Furthermore, the multiple views in step 1 are selected according to a principle of zigzag from top to bottom, so that all views can be guaranteed to be labeled.
Further, the sequence number position set B in step 5m(x, y) the ordering criterion is that the value of x is minimum and the value of y is closest to 0, so that the ordered arrangement of the serial number labels can be ensured in the adjusting process.
The above embodiment is a preferred example of the present invention, and is not intended to limit the protection scope of the present invention, and the number of serial number labels in each quadrant may be obtained, so as to calculate the average interval angle of the serial number label in the quadrant, thereby adjusting the serial number label to obtain the new serial number position of the engineering drawing.
Claims (4)
1. A method for adjusting the position of a three-dimensional digital-analog engineering drawing serial number is characterized by comprising the following steps:
step 1: introducing a two-dimensional engineering drawing into three-dimensional software, wherein the two-dimensional engineering drawing comprises a plurality of views, the periphery of each view is provided with an outer surrounding line, the central position O (O, O) of one outer surrounding line is selected, a two-dimensional coordinate system is established according to the central position, and the views are divided into four quadrants in the two-dimensional coordinate system;
step 2: dividing each quadrant into two areas by taking an angular bisector as a dividing line;
and step 3: acquiring coordinates of four vertexes of the outer surrounding line of the view;
and 4, step 4: acquiring serial number labels in the view, and establishing a serial number set AmM is the number of the serial number labels in the two-dimensional engineering drawing;
and 5: obtaining the sequence number position marked by the sequence number, and establishing a sequence number position set Bm(x,y);
Step 6: obtaining the serial number attaching position of the current serial number label, and establishing a set C of the serial number attaching positionsm(x,y),Cm(x, y) and Bm(x, y) are in one-to-one correspondence.
And 7: by Bm(x,y)、CmComparing (x, y) with O (O, O), and determining the quadrant where the serial number label and the serial number attachment position are located;
and 8: from Bm(x,y)、Cm(X, y) obtaining an included angle theta between the serial number lead and the coordinate X axis;
and step 9: judging the area to which the serial number label belongs according to the size of theta;
step 10: according to a plurality of Bm(x, y) and the vertex coordinates of the outer surrounding lines corresponding to the (x, y) coordinates, and calculating equal spacing distances between the serial number labels in the x direction and the y direction;
step 11: and automatically adjusting the sequence number label and the sequence number attaching position to obtain a new engineering drawing sequence number position.
2. The method for adjusting the serial number position of the three-dimensional digital-analog engineering drawing according to claim 1, wherein:
wherein, the selection of the plurality of the views in the step 1 is based on a principle of Z-shaped sequence from top to bottom.
3. The method for adjusting the serial number position of the three-dimensional digital-analog engineering drawing according to claim 1, wherein:
wherein the sequence number position set B in step 5m(x, y) minimum value according to x value, y valueThe closest 0 as the ranking criterion.
4. The method for adjusting the serial number position of the three-dimensional digital-analog engineering drawing according to claim 1, wherein:
wherein the method for determining the boundary in step 6 is to judge Bm(x,y)、CmThe positive and negative values of x and y in (x, y).
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910578165.XA CN112231500A (en) | 2019-06-28 | 2019-06-28 | Method for adjusting three-dimensional digital-analog engineering drawing serial number position |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910578165.XA CN112231500A (en) | 2019-06-28 | 2019-06-28 | Method for adjusting three-dimensional digital-analog engineering drawing serial number position |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112231500A true CN112231500A (en) | 2021-01-15 |
Family
ID=74111401
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910578165.XA Pending CN112231500A (en) | 2019-06-28 | 2019-06-28 | Method for adjusting three-dimensional digital-analog engineering drawing serial number position |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112231500A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103838933A (en) * | 2014-03-18 | 2014-06-04 | 湖南大学 | Three-dimensional model integrating and labeling method based on digital technology |
CN105975696A (en) * | 2016-05-09 | 2016-09-28 | 西北工业大学 | Rule-based three-dimensional procedure size layout method |
CN106528937A (en) * | 2016-10-10 | 2017-03-22 | 中广核工程有限公司 | System and method for avoiding overlapping of annotation information based on PDMS drawing output |
CN108121862A (en) * | 2017-12-13 | 2018-06-05 | 武汉益模科技股份有限公司 | A kind of engineering drawing automatic marking method based on three-dimensional geometry feature |
CN108898679A (en) * | 2018-04-10 | 2018-11-27 | 宁波大红鹰学院 | A kind of method of component serial number automatic marking |
CN109165401A (en) * | 2018-07-09 | 2019-01-08 | 国核电力规划设计研究院有限公司 | A kind of method and apparatus that two-dimentional construction drawing is generated based on civil engineering structure threedimensional model |
-
2019
- 2019-06-28 CN CN201910578165.XA patent/CN112231500A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103838933A (en) * | 2014-03-18 | 2014-06-04 | 湖南大学 | Three-dimensional model integrating and labeling method based on digital technology |
CN105975696A (en) * | 2016-05-09 | 2016-09-28 | 西北工业大学 | Rule-based three-dimensional procedure size layout method |
CN106528937A (en) * | 2016-10-10 | 2017-03-22 | 中广核工程有限公司 | System and method for avoiding overlapping of annotation information based on PDMS drawing output |
CN108121862A (en) * | 2017-12-13 | 2018-06-05 | 武汉益模科技股份有限公司 | A kind of engineering drawing automatic marking method based on three-dimensional geometry feature |
CN108898679A (en) * | 2018-04-10 | 2018-11-27 | 宁波大红鹰学院 | A kind of method of component serial number automatic marking |
CN109165401A (en) * | 2018-07-09 | 2019-01-08 | 国核电力规划设计研究院有限公司 | A kind of method and apparatus that two-dimentional construction drawing is generated based on civil engineering structure threedimensional model |
Non-Patent Citations (3)
Title |
---|
王波兴、刘树林、夏鸿建: "三维CAD装配序号的自动排序与布局算法", 《华中科技大学学报(自然科学版)》 * |
王涛、莫蓉、万能: "工程图尺寸标注自动布局算法及实现", 《航空计算技术》 * |
王福胜、沈建新: "二维装配图零部件序号标注智能布局方法", 《图学学报》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111292379B (en) | Depth camera correction device and method thereof | |
US8072450B2 (en) | System and method for measuring a three-dimensional object | |
CN103632366B (en) | A kind of parameter identification method of ellipse target | |
CN103942824B (en) | Linear feature extracting method for three-dimensional point cloud | |
CN112017232B (en) | Positioning method, device and equipment for circular patterns in image | |
TW201327245A (en) | System and method for establishing a 3D-coordinate system using graphics | |
CN106547014B (en) | The generation method of crystal localization method and look-up table | |
CN106204560B (en) | Colony picker automatic calibration method | |
CN105551077A (en) | Sheet metal processing three-dimensional technological model construction method and device | |
CN102679926B (en) | Location method of thin wall curve part based on bounding box in multi-point array flexible tool | |
CN105627935A (en) | Product material thickness three-dimensional analysis system and method | |
CN106446306A (en) | Gauss sphere cluster based machine part reverse engineering modeling method | |
CN108898679B (en) | Automatic labeling method for serial numbers of parts | |
CN104699323B (en) | A kind of touch point optical positioning method based on image procossing | |
CN112231500A (en) | Method for adjusting three-dimensional digital-analog engineering drawing serial number position | |
CN103955687B (en) | A kind of method for rapidly positioning of the light spot image center based on centroid method | |
CN104318610A (en) | Method for large-space three-dimensional entity paying off | |
CN108280307A (en) | Engine cylinder body opening system location determining method | |
CN109373947B (en) | Intelligent planning method for three-coordinate detection points of complex curved surface part | |
CN106651993A (en) | Method for filling non self-intersecting polygon in FPGA | |
CN109598785A (en) | A kind of three-dimensional grid model view conversion method | |
CN112989470B (en) | Indoor space layout extraction method based on point cloud data | |
CN105975696B (en) | Rule-based three-dimensional process dimension layout method | |
CN105913380B (en) | The method and apparatus of medical image conversion | |
CN112084875B (en) | Method for multi-laser radar coordinate system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20210115 |
|
WD01 | Invention patent application deemed withdrawn after publication |