CN100476349C - Automatic calculation method for global coordinate system under multiple-association engineering chart environment - Google Patents

Automatic calculation method for global coordinate system under multiple-association engineering chart environment Download PDF

Info

Publication number
CN100476349C
CN100476349C CNB2007101340015A CN200710134001A CN100476349C CN 100476349 C CN100476349 C CN 100476349C CN B2007101340015 A CNB2007101340015 A CN B2007101340015A CN 200710134001 A CN200710134001 A CN 200710134001A CN 100476349 C CN100476349 C CN 100476349C
Authority
CN
China
Prior art keywords
coordinate system
theta
engineering
sin
lines
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.)
Expired - Fee Related
Application number
CNB2007101340015A
Other languages
Chinese (zh)
Other versions
CN101144710A (en
Inventor
路通
杨若瑜
苏丰
蔡士杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing University
Original Assignee
Nanjing University
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Nanjing University filed Critical Nanjing University
Priority to CNB2007101340015A priority Critical patent/CN100476349C/en
Publication of CN101144710A publication Critical patent/CN101144710A/en
Application granted granted Critical
Publication of CN100476349C publication Critical patent/CN100476349C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The invention provides an automatic calculation method of a world coordinate system under the condition of a multiple associative engineering drawing. The basic starting point of the invention is that an orthogonalaxes net, a local logical coordinate system and a world logical coordinate system are gradually combined through a dimension line in an automatic identification engineering drawing and a corresponding transformational matrix is recorded, at last, the world coordinate system is generated. The invention has the advantages that an association diagram drawn in different scales and directions is input in the CAD environment, a world coordinate system of a project can be automatically generated; the world coordinate system is a premise condition for accurately calculating various engineering data and other relevant engineering application, the method can save large quantity of manual calculation expense, and an error caused by the manual calculation is effectively reduced, to improve the auxiliary design efficiency of a computer. The method has high generality, and can be applied in various engineering fields.

Description

The automatic calculating method of global coordinate system under multiple-association engineering chart environment system
Technical field
The present invention relates to the computing method of global coordinate system in a kind of engineering drawing, the automatic calculating method that particularly a kind of global coordinate system under multiple-association engineering chart environment is.
Background technology
Cad technique has been widely applied to a plurality of engineerings field that comprises machinery, manufacturing, building, electronics, chemical industry, road and bridge at present.In many engineerings are used, (calculate), often need go out the global logic coordinate under many associated diagrams environment according to the drawing coordinate Calculation in a certain CAD engineering drawing as project data such as preliminary budget, bids.And an engineering project often is made up of many association engineering charts; Also may further be divided into related zone on independent on some figures, the content in same engineering drawing, to describe not ipsilateral.Three-view diagram such as the expression mechanical part is described (can describe in the zones of different of an engineering drawing, also can be divided into three engineering drawings and describe); And want architectural appearance of complete description and indoor design thereof, often need tens of the engineering drawings that are mutually related.According to described content difference, these association engineering charts can adopt different dimension of picture and ratio to draw respectively, as can in certain figure, drawing the detail section of certain engineering object in detail with vast scale, and this project object only schematically shows its position and profile with less ratio in other figure, direction rotation, offset etc. also may occur.Therefore, a certain drawing coordinate in the given engineering drawing can not be directly used in the various project data of accurate Calculation, must be transformed under the multiple-association engineering chart integration condition, be the global logic coordinate of foundation with dimension line length mark character string.This transfer process need a series of engineering drawing compare mutually, with reference to and coordinate conversion, artificial calculating very easily produces error, and efficient is lower.
Summary of the invention
The objective of the invention is defective, the automatic calculating method that provides a kind of global coordinate system under multiple-association engineering chart environment to be at the prior art of above-mentioned CAD engineering drawing coordinate system computing method.
In order to realize purpose of the present invention, the automatic calculating method that a kind of global coordinate system under multiple-association engineering chart environment provided by the invention is, it is characterized in that further comprising the steps of: (1) gets an engineering drawing, and this figure is calculated initial threshold d after the input engineering project; (2) calculate the free graticule that is comprised among this project figure; (3) the free lines that are parallel to each other and projection is overlapping are sorted from left to right or from the bottom to top; (4) if two adjacent parallel free lines are shared certain middle part vertical bar, and can search virgule, then generate candidate's dimension line at the intersection point place; (5) generate the dimension line group by one group of candidate's dimension line of sharing certain free lines; (6) respectively with dimension line group and the length character string pairing that closes on; (7) to each dimension line group, find all perpendicular dimension line groups, and get from its nearest, generate an orthogonal axes net by counterclockwise order; (8) compare each orthogonal axes net, get the local logic coordinate system of an orthogonal axes net of its sizing scope maximum as this project figure; Write down translation, rotation and the scale transformation matrix M of other orthogonal axes net with respect to the local logic coordinate system 1(9) judge whether all engineering drawings travel through end in the described engineering project, if judged result is for being then to skip to step (11); (10) if above-mentioned judged result for not, is then returned step (1); (11) compare each local logic coordinate system, the local logic coordinate system of getting sizing scope maximum is as the global logic coordinate system; Write down translation, rotation and the scale transformation matrix M of other local logic coordinate system with respect to the global logic coordinate system 2Generate global coordinate system.
In the step (1) of the automatic calculating method that described global coordinate system under multiple-association engineering chart environment is, the computing method of threshold value d are the average height of character string among this project figure.
In the step (2) of the automatic calculating method that described global coordinate system under multiple-association engineering chart environment is, also further may further comprise the steps: (a) in this project figure, straight-line segment is carried out end points and connect inspection, if the two-end-point place does not have crossing lines, then mark its be free lines, otherwise be labeled as the eliminating lines; (b) if certain free lines length less than 0.5d, or greater than 3d, then is labeled as the eliminating lines; (c) if certain free lines middle part does not have the lines that intersect vertically, then be labeled as the eliminating lines.
In the step (3) and step (4) of the automatic calculating method that described global coordinate system under multiple-association engineering chart environment is, described parallel free lines v iAnd v jThe angular error threshold value be calculated as follows:
θ ξ ( v i , v j ) = d max ( min ( length ( v i ) , length ( v j ) ) , d ) * 3
Length (v wherein i), length (v j) be lines v i, v jLength.
In the step (3) of the automatic calculating method that described global coordinate system under multiple-association engineering chart environment is, the projection overlay defining of two parallel lines is that overlap length accounts for than short-term bar length ratio greater than 0.3 and smaller or equal to 1.
In the step (4) of the automatic calculating method that described global coordinate system under multiple-association engineering chart environment is, virgule length should be less than d and greater than 0.2d.
In the step (8) of the automatic calculating method that described global coordinate system under multiple-association engineering chart environment is, M 1Be calculated as follows:
M 1 = cos θ 1 - sin θ 1 - x 1 cos θ 1 + y 1 sin θ 1 sin θ 1 cos θ 1 - x 1 sin θ 1 - y 1 sin θ 1 0 0 1
(x wherein 1, y 1) be the original point position point coordinate of a certain orthogonal axes net in this figure local logic coordinate system, θ 1Be the be rotated counterclockwise angle of this orthogonal axes net with respect to this figure local logic coordinate system.
In the step (11) of the automatic calculating method that described global coordinate system under multiple-association engineering chart environment is, M 2Be calculated as follows:
M 2 = cos θ 2 - sin θ 2 - x 2 cos θ 2 + y 2 sin θ 2 sin θ 2 cos θ 2 - x 2 sin θ 2 - y 2 sin θ 2 0 0 1
(x wherein 2, y 2) be the relative coordinate of the initial point of a certain local logic coordinate system with respect to the global logic coordinate origin, θ 2Be the be rotated counterclockwise angle of this local logic coordinate system with respect to the global logic coordinate system.
Beneficial effect: the present invention in the CAD environment, import one group in varing proportions, the associated diagram drawn of direction, and generate the global coordinate system be convenient to the engineering project discerning and calculate as requested, save a large amount of artificial computing costs, reduced the error that artificial coordinates computed frenulum comes.Effectively improve computer-aided design (CAD) efficient.This method has high generality, applicable to various engineering fields.
Description of drawings
Fig. 1: process flow diagram of the present invention.
Fig. 2: the exemplary plot of detected two the dimension line groups of the present invention.
Fig. 3: dimension line and sizing length character string pairing exemplary plot in the dimension line group.
Fig. 4: the exemplary plot of an actual engineering drawing.
Fig. 5: the figure as a result after the present invention discerns Fig. 4 local logic coordinate system.
Embodiment
The basic point of departure of the automatic calculating method of global coordinate system under multiple-association engineering chart environment system is by the dimension line among the automatic recognitive engineering figure, progressively be combined into orthogonal axes net, local logic coordinate system and global logic coordinate system and write down corresponding transformation matrix, generate world coordinates at last.
Below in conjunction with accompanying drawing the present invention is done more detailed explanation:
As shown in Figure 1.Step 1 among Fig. 1 is an initial actuating.Step 2 input one engineering project wherein comprises one group of associated diagram.Step 3 is got wherein engineering drawing.
Step 4 is calculated this figure threshold value d by given engineering drawing, and this threshold value calculation method is to get all character strings among this figure, adds up its average height.Each engineering drawing is drawn ratio, size may be different, wherein the character string average height in engineering drawing can be used for characterizing this figure with apart from relevant threshold value.
Step 5 detects free lines in given engineering drawing.Free lines are defined as the straight-line segment that the two-end-point place does not have connection or intersects with arbitrary shape, but can there be the straight-line segment that intersects vertically position in the middle of it.Free lines length range must be between 0.5d and 3d, to get rid of too short or long straight-line segment.The free lines of gained are as the boundary line of candidate's dimension line, thus step 6 will one group of free lines parallel and that projection is overlapping press from left to right (to non-vertical line segment) or from bottom to up (to vertical line segment) sort successively.When judging two parallel free lines, used angle threshold is calculated as follows:
θ ξ ( v i , v j ) = d max ( min ( length ( v i ) , length ( v j ) ) , d ) * 3
This formula has been considered the influence to parallel angle threshold of free line segment length and the average character string height of this figure, wherein 3 be initial threshold (unit: degree).The overlapping determination methods of projection is: the overlap length of the free lines of row of making even, divided by in two parallel free lines than short-term bar length, if the gained ratio is then overlapping for projection greater than 0.3 and smaller or equal to 1, otherwise got rid of.
Whether step 7 is searched for the shared perpendicular line in centre position in one group of relevant parallel free lines of step 6 gained, and have virgule to exist from the further detection of its intersection point, if success then generates candidate's dimension line.Wherein virgule is defined as length less than d and greater than the straight-line segment of 0.2d.On gained candidate dimension line basis, one group of interconnected candidate's dimension line that step 8 will be shared the middle part perpendicular line is combined as a dimension line group, sharing the middle part perpendicular line with this then is benchmark, the shortest length mark character string of detection range in vertical range threshold value 1.5*d scope, and one by one with this dimension line group in dimension line pairing.Fig. 2 has provided automatic detected two dimension line groups, wherein sizing length character string not pairing as yet.Fig. 3 has finished dimension line and the pairing of sizing length character string in the dimension line group on Fig. 2 basis.Sizing length character string is used for the overall length on the description logic, but not drawing coordinate length.
The step 9 of Fig. 1 travels through gained dimension line group with counterclockwise order in this project figure, and generates an orthogonal axes net by two quadratures and close dimension line group.Fig. 4 represents the exemplary plot of an actual engineering drawing, specifically is the board plane figure among the Structural Engineering figure.
Step 10 generates the local logic coordinate system of this project figure, method is: travel through all orthogonal axes nets of having discerned of this figure, sizing length character string in this orthogonal axes net is added up, get a local logic coordinate system of sign scope maximum as this project figure.Other each orthogonal axes net writes down its transformation matrix by relative translation, rotation and convergent-divergent relation with respect to this local logic coordinate system.This transformation matrix can be expressed as:
M 1 = cos θ 1 - sin θ 1 - x 1 cos θ 1 + y 1 sin θ 1 sin θ 1 cos θ 1 - x 1 sin θ 1 - y 1 sin θ 1 0 0 1
(x wherein 1, y 1) be the original point position point coordinate of a certain orthogonal axes net in this figure local logic coordinate system, θ 1Be the be rotated counterclockwise angle of this orthogonal axes net with respect to this figure local logic coordinate system.The as a result figure of Fig. 5 after the identification of local logic coordinate system; Click and to choose whole local logic coordinate system (wherein correspondingly-sized line, dimension line group, orthogonal axes net all are selected state).
Repeating step 3 is to step 10, and is processed until all engineering drawings, and generates local logic coordinate system separately.Step 11 judges whether to have traveled through all association engineering charts then, if judged result then continues next association engineering chart of traversal for not; If judged result is for being, carry out step 12, get wherein represent the scope maximum a local logic coordinate system as the global logic coordinate system, the local logic coordinate system of other each figure is by with respect to the corresponding transformation matrix with the convergent-divergent relation record of translation, rotation of this global logic coordinate system.This matrix can be calculated as follows:
M 2 = cos θ 2 - sin θ 2 - x 2 cos θ 2 + y 2 sin θ 2 sin θ 2 cos θ 2 - x 2 sin θ 2 - y 2 sin θ 2 0 0 1
(x wherein 2, y 2) be the relative coordinate of the initial point of a certain local logic coordinate system with respect to the global logic coordinate origin, θ 2Be the be rotated counterclockwise angle of this local logic coordinate system with respect to the global logic coordinate system.Generate the global coordinate system of engineering project under the multiple-association engineering chart environment with this.

Claims (6)

1, the automatic calculating method of a kind of global coordinate system under multiple-association engineering chart environment system is characterized in that after the input engineering project, and is further comprising the steps of:
(1) gets an engineering drawing, and this figure is calculated initial threshold d;
(2) calculate the free graticule that is comprised among this project figure;
(3) the free lines that are parallel to each other and projection is overlapping are sorted from left to right or from the bottom to top;
(4) if two adjacent parallel free lines are shared certain middle part vertical bar, and can search virgule, then generate candidate's dimension line at the intersection point place;
(5) generate the dimension line group by one group of candidate's dimension line of sharing certain free lines;
(6) respectively with dimension line group and the length character string pairing that closes on;
(7) to each dimension line group, find all perpendicular dimension line groups, and get from its nearest, generate an orthogonal axes net by counterclockwise order;
(8) compare each orthogonal axes net, get the local logic coordinate system of an orthogonal axes net of its sizing scope maximum as this project figure; Write down translation, rotation and the scale transformation matrix M of other orthogonal axes net with respect to the local logic coordinate system 1
(9) judge whether all engineering drawings travel through end in the described engineering project, if judged result is for being then to skip to step (11);
(10) if above-mentioned judged result for not, is then returned step (1);
(11) compare each local logic coordinate system, the local logic coordinate system of getting sizing scope maximum is as the global logic coordinate system; Write down translation, rotation and the scale transformation matrix M of other local logic coordinate system with respect to the global logic coordinate system 2Generate global coordinate system;
In the described step (1), threshold value d is the average height of character string among this project figure;
Described step (2) also further may further comprise the steps: (a) in this project figure, straight-line segment is carried out end points and connect to check, if the two-end-point place does not have crossing lines, then mark its be free lines, otherwise be labeled as the eliminating lines; (b) if certain free lines length less than 0.5d, or greater than 3d, then is labeled as the eliminating lines; (c) if certain free lines middle part does not have the lines that intersect vertically, then be labeled as the eliminating lines.
2, the automatic calculating method of global coordinate system under multiple-association engineering chart environment as claimed in claim 1 system is characterized in that step (3) and parallel free lines v described in the step (4) iAnd v jThe angular error threshold value be calculated as follows:
θ ξ ( v i , v j ) = d max ( min ( length ( v i ) , length ( v j ) ) , d ) * 3
Length (v wherein i), length (v j) be lines v i, v jLength.
3, the automatic calculating method of global coordinate system under multiple-association engineering chart environment as claimed in claim 1 system is characterized in that in step (3), the projection overlay defining of two parallel lines is that overlap length accounts for than short-term bar length ratio greater than 0.3 and smaller or equal to 1.
4, the automatic calculating method of global coordinate system under multiple-association engineering chart environment as claimed in claim 1 system is characterized in that in step (4), virgule length should be less than d and greater than 0.2d.
5, the automatic calculating method of global coordinate system under multiple-association engineering chart environment as claimed in claim 1 system is characterized in that, in step (8), and M 1Be calculated as follows:
M 1 = cos θ 1 - sin θ 1 - x 1 cos θ 1 + y 1 sin θ 1 sin θ 1 cos θ 1 - x 1 sin θ 1 - y 1 sin θ 1 0 0 1
(x wherein 1, y 1) be the original point position point coordinate of a certain orthogonal axes net in this figure local logic coordinate system, θ 1Be the be rotated counterclockwise angle of this orthogonal axes net with respect to this figure local logic coordinate system.
6, the automatic calculating method of global coordinate system under multiple-association engineering chart environment as claimed in claim 1 system is characterized in that, in step (11), and M 2Be calculated as follows:
M 2 = cos θ 2 - sin θ 2 - x 2 cos θ 2 + y 2 sin θ 2 sin θ 2 cos θ 2 - x 2 sin θ 2 - y 2 sin θ 2 0 0 1
(x wherein 2, y 2) be the relative coordinate of the initial point of a certain local logic coordinate system with respect to the global logic coordinate origin, θ 2Be the be rotated counterclockwise angle of this local logic coordinate system with respect to the global logic coordinate system.
CNB2007101340015A 2007-10-17 2007-10-17 Automatic calculation method for global coordinate system under multiple-association engineering chart environment Expired - Fee Related CN100476349C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2007101340015A CN100476349C (en) 2007-10-17 2007-10-17 Automatic calculation method for global coordinate system under multiple-association engineering chart environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2007101340015A CN100476349C (en) 2007-10-17 2007-10-17 Automatic calculation method for global coordinate system under multiple-association engineering chart environment

Publications (2)

Publication Number Publication Date
CN101144710A CN101144710A (en) 2008-03-19
CN100476349C true CN100476349C (en) 2009-04-08

Family

ID=39207357

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2007101340015A Expired - Fee Related CN100476349C (en) 2007-10-17 2007-10-17 Automatic calculation method for global coordinate system under multiple-association engineering chart environment

Country Status (1)

Country Link
CN (1) CN100476349C (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102034253A (en) * 2010-12-31 2011-04-27 北京数码大方科技有限公司 Dimension driving method and device of computer aided design (CAD)
CN102750553B (en) * 2012-06-28 2015-06-17 北京中科广视科技有限公司 Recognizing method of wall plane profile

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1563889A (en) * 2004-03-26 2005-01-12 清华大学 Laser tracking inertia combined measuring system and its measuring method
CN1605830A (en) * 2004-11-11 2005-04-13 天津大学 Large-scale three dimensional shape and appearance measuring and splicing method without being based on adhesive mark
EP1531322A2 (en) * 2003-11-13 2005-05-18 Matsushita Electric Industrial Co., Ltd. Map display apparatus
CN1797409A (en) * 2004-12-30 2006-07-05 李强 Method for automatic obtaining engineering parameter values of sampling points in graph by using computer
CN1824443A (en) * 2006-04-03 2006-08-30 西安交通大学 Construction method of multi cylinder milling enveloped single screw compressor tooth face type wire

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1531322A2 (en) * 2003-11-13 2005-05-18 Matsushita Electric Industrial Co., Ltd. Map display apparatus
CN1563889A (en) * 2004-03-26 2005-01-12 清华大学 Laser tracking inertia combined measuring system and its measuring method
CN1605830A (en) * 2004-11-11 2005-04-13 天津大学 Large-scale three dimensional shape and appearance measuring and splicing method without being based on adhesive mark
CN1797409A (en) * 2004-12-30 2006-07-05 李强 Method for automatic obtaining engineering parameter values of sampling points in graph by using computer
CN1824443A (en) * 2006-04-03 2006-08-30 西安交通大学 Construction method of multi cylinder milling enveloped single screw compressor tooth face type wire

Also Published As

Publication number Publication date
CN101144710A (en) 2008-03-19

Similar Documents

Publication Publication Date Title
CN109993827B (en) Elevation view identification method for converting building drawing into three-dimensional BIM model
Hüthwohl et al. Integrating RC bridge defect information into BIM models
Hou et al. Detecting structural components of building engineering based on deep-learning method
CN107169214A (en) A kind of BUILDINGS MODELS design method
CN100476350C (en) Automatic positioning method for global coordinate system under multiple-association engineering chart environment
CN111854758A (en) Indoor navigation map conversion method and system based on building CAD (computer-aided design) drawing
CN101446999B (en) Automatic checking method for dimension line marking error in engineering drawing
CN109035364A (en) Method for rapidly drawing profile map based on CAD topographic map
Almatared et al. Digital twin in the architecture, engineering, and construction industry: A bibliometric review
Jiang et al. Semantic enrichment for BIM: Enabling technologies and applications
Ding et al. BIM research vs BIM practice: A bibliometric-qualitative analysis from China
CN102506812B (en) VT checking method for stability judgment of reference points in deformation monitoring
CN100476349C (en) Automatic calculation method for global coordinate system under multiple-association engineering chart environment
Wang et al. An overview of a leader journal in the field of transport: A bibliometric analysis of “Computer-Aided Civil and Infrastructure Engineering” from 2000 to 2019
Ying et al. A two‐stage recursive ray tracing algorithm to automatically identify external building objects in building information models
CN113721969A (en) Multi-scale space vector data cascade updating method
Goes et al. Design coordination with Building Information Modeling: a case study
Beirão et al. Analysis and classification of public spaces using convex and solid-void models
CN109086528B (en) Method for automatically naming netty roads in civil3d according to ordering rule
Stinner et al. Automatic digital twin data model generation of building energy systems from piping and instrumentation diagrams
CN104516914A (en) Method and device for recognizing time sequence mode
CN116311007A (en) Node space analysis-based identification method and binding quality evaluation method for missed binding reinforcement nodes
CN114612394B (en) Concrete internal damage prediction method based on Yolo network and DIC technology
JP7333369B2 (en) Traffic data processing methods, devices, electronic devices, storage media and computer program products
CN112627538B (en) Intelligent acceptance method for binding quality of steel mesh binding wires based on computer vision

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090408

Termination date: 20101017