CN1456996A - Automatic picking picture document size system and method - Google Patents

Automatic picking picture document size system and method Download PDF

Info

Publication number
CN1456996A
CN1456996A CN02115206A CN02115206A CN1456996A CN 1456996 A CN1456996 A CN 1456996A CN 02115206 A CN02115206 A CN 02115206A CN 02115206 A CN02115206 A CN 02115206A CN 1456996 A CN1456996 A CN 1456996A
Authority
CN
China
Prior art keywords
map file
data
module
document size
picture document
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.)
Granted
Application number
CN02115206A
Other languages
Chinese (zh)
Other versions
CN1232919C (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.)
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
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 Hongfujin Precision Industry Shenzhen Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Shenzhen Co Ltd
Priority to CNB021152063A priority Critical patent/CN1232919C/en
Publication of CN1456996A publication Critical patent/CN1456996A/en
Application granted granted Critical
Publication of CN1232919C publication Critical patent/CN1232919C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The system consists of a diagrammatic document storage management centre which comprises a receiving module, a storage refreshing module and a classification module of digrammatic document and is used for obtaining the diagrammatic document to have its size data picked up; a diagram matic document processing centre which comprises a program analysis module for carrying on analysing calculation for the diagrammatic document to obtain size data of it and a report output module to output the obtained size data of the diagrammatic document, and a data storage management centre which comprises a data receiving module, a data checking module and a data disc depositing module as well as is used for storing the diagrammatic document size data obtained from the diagrammatic document.

Description

A kind of automatic picking picture document size system and method
[technical field]
The present invention relates to a kind of automatic picking picture document size system and method, especially refer to that a kind of design drawing file by the analyzing and processing entity object is to obtain the design size of entity object, thereby the measurement size of this design size and entity object is compared, produce improved system and method to instruct.
[background technology]
In recent years, the application of reverse-engineering on industrial design is made has been subjected to paying attention to widely.Its process mainly is with contact or discontiguous mode, obtains the profile cloud data of entity object.Then via the processing of software systems, thereby obtain the geometric figure of this entity object, produce this entity object according to this geometric figure again.
On April 15th, 1997, No. 5621648 patented invention of the U.S. of bulletin had a kind of Apparatus and method for of creating the entity object model.As shown in figure 24, the equipment that this patent disclosed includes the cut primary importance 2407 of the shuttle 2405 of a material removal mechanism 2401, a data acquisition mechanism 2403, a transmission object and entity object and obtains the second place 2409 of entity object physical dimension.When the shuttle 2405 that is loaded with entity object is in primary importance 2407, entity object is cut away a solid with length, width and thickness by material removal mechanism 2401, shuttle is loaded onto the second place 2409 with entity object then, and the surface of being cut by data acquisition mechanism sweep object is to obtain the map file in this cross section.Shuttle 2405 is sent to above-mentioned primary importance to repeat above-mentioned action with entity object then, and final data collecting mechanism 2403 obtains the map file in one group of this each cross section of object, and comprehensively these map files just can generate the computerized model of this entity object.
But, in the application of reality, also having other a kind of demand, that is exactly that what difference the shape of the entity object that must quick, correct affirmation manufactures of manufacturer and the design shape of this entity object have.A kind of area of computer aided verification system (Computer-Aided Verification is arranged now, CAV) can allow manufacturer check production voluntarily or the entity object that the supplier provided, will scan some cloud (point-cloud) data that obtained automatically and design a model and compare.Not only reduce the time of checking thus, can also carry out point-device comparison work entity object and Design Theory value.Comparing formed difference can also reflect with different colors, promptly so-called color range comparison.
Though the color range comparison can visualize go out the physical size of entity object and the difference between the theoretical size, but manufacturer more needs a difference value of determining to improve its production procedure to instruct sometimes, thereby the dimensional discrepancy of the entity object that the rectification actual production is come out.A kind of method that solves this kind demand is that the dimension measurement of entity object that actual production is gone out comes out, and its size with design is put together compare then, thereby obtain a concrete difference value.Another kind method is that the size that will measure directly is labelled in the design drawing file of object, places with former design size, for the measuring value that exceeds the design load margin tolerance, then indicates with eye-catching color.
For satisfying the demand of manufacturer, need the size of a kind of system and method in can automatic pick-up entity object map file, and the design size of the size that captured and entity object is combined generation one form, to instruct the production of manufacturer.
[summary of the invention]
At the demand of above-mentioned reality, the present invention mainly provides a kind of automatic picking picture document size system and method, so that the user carries out the design size data that analytical calculation can be obtained entity object by the design drawing file to entity object.
Automatic picking picture document size system provided by the invention comprises a map file storage administration center, a map file processing enter and a data storage management center.This map file storage administration center comprises a map file receiver module, is used to obtain the map file that will capture dimensional data; One map file sort module is used for the map file that is obtained is classified; And a map file storage update module, be used to judge whether standard of the map file that obtained.This map file processing enter comprises a process analysis module, is used for map file is carried out analytical calculation to obtain the design size data of map file; One report output module is used for the picture document size data output that the process analysis module is obtained.This data storage management center comprises a data reception module, is used to receive the picture document size data that the map file processing enter is exported; One data review module is used to judge whether the picture document size data that obtained are wrong; And a data deposits module, be used to store the picture document size data that obtained.
Automatic picking picture document size method provided by the present invention comprises the steps: that (i) obtains the map file that will capture dimensional data and it is classified; (ii) judge whether standard of the map file obtained; (iii) the analytical calculation map file is to obtain the design size data in the map file; Determine (iv) whether the picture document size data that obtained are wrong; (v) store the picture document size data that obtained.
But the dimensional data in the present invention's assisted user automatic pick-up entity object map file, generate the dimensional data form of entity object together with measurement dimensional data with itself and entity object, allowing product that manufacturer recognizes that it is produced and the difference between the design load easily, and improve its production procedure on this basis.
[description of drawings]
Fig. 1 is the Organization Chart of automatic scanning measuring data analytic processing system of the present invention.
Fig. 2 is the pie graph of measuring program module among Fig. 1.
Fig. 3 is the pie graph of automatic picking picture document size subsystem among Fig. 1.
Fig. 4 is the pie graph of report generation subsystem among Fig. 1.
Fig. 5 is the pie graph of automatically pasting data onto image files subsystem among Fig. 1.
Fig. 6 is a general flow chart of handling the picture document size data.
Fig. 7 is the process flow diagram of automatic picking picture document size subsystem.
Fig. 8 collects relevant information flow process figure in the automatic picking picture document size subsystem map file processing procedure among Fig. 7.
Fig. 9 obtains pixel property value process flow diagram in the automatic picking picture document size subsystem map file processing procedure among Fig. 7.
Figure 10 is a data analysis calculation flow chart in the automatic picking picture document size subsystem map file processing procedure among Fig. 7.
Figure 11 is a figure position calculation flow chart among Figure 10.
Figure 12 is a tolerance calculation flow chart among Figure 10.
Figure 13 is a logical calculated process flow diagram among Figure 10.
Figure 14 is the process flow diagram of data output processing in the automatic picking picture document size subsystem map file processing procedure among Fig. 7.
Figure 15 is the process flow diagram of report generation subsystem.
Figure 16 is the process flow diagram of automatically pasting data onto image files subsystem.
Figure 17 is the process flow diagram that obtains data among Figure 16.
Figure 18 is a process flow diagram of carrying out handling procedure among Figure 16.
Figure 19 is the process flow diagram that calls corresponding execution module among Figure 18.
Figure 20 is the process flow diagram of conversion data literal form among Figure 18.
Figure 21 is the process flow diagram that CAD pixel property value is extracted among Figure 18.
Figure 22 is the process flow diagram of analytical calculation among Figure 18.
Figure 23 is that output measures the process flow diagram of size to the CAD map file among Figure 18.
Figure 24 is the system block diagrams that an existing utilization reverse Engineering Technology generates the entity object model.
[embodiment]
At first relational language related among the present invention is described as follows.
Pixel: refer to be present in the map file object that constitutes figure, as the size of straight line, circle, angle and mark thereof etc.
Figure number: refer to the sequence number of size object in map file.
Figure position: the general position of the figure number that refers to the size object in map file.
Nominal value: the design size value that refers in the map file to be marked is used for the theoretical geometric configuration and the relation of position each other thereof of each pixel of presentation graphs file.
A figure position scope: the composite symbol that refers to be used on the map file determine a series of letter or numbers of each size positions.For example map file is divided into eight parts according to horizontal ordinate by numeral 1~8, is divided into seven parts according to ordinate by alphabetical A~G again, then can wait the figure position scope of representing each size object with 1A, 3D.
Figure position computer capacity: the actual size that refers to figure scope in the map file.The user can determine the figure position computer capacity of a rectangle by choosing a lower left corner coordinate and a upper right corner coordinate on graphical interfaces.
Shown in Figure 1 is the pie graph of an automatic scanning measuring data analytic processing system.This automatic scanning measuring data analytic processing system mainly measures subsystem 100, a map file receiving trap 150, an automatic picking picture document size subsystem 160, a report generation subsystem 170 and an automatically pasting data onto image files subsystem 180 by an autoscan and is constituted.Wherein, autoscan measures subsystem and includes some cloud data reception modules 110, an archives modular converter 120, an object judge module 130 and a measuring program module 140.Cloud data receiver module 110 is used for from the cloud data of scanning machine receiving entity object, and this cloud data can be that the mode with contact obtains, and such as probe scanning, also can be to obtain in contactless mode, such as laser scanning.Archives modular converter 120 is used for becoming computing machine can discern the form of handling the format conversion of the cloud data of acquisition entity object, (Initial Graphics ExchangeSpecification, IGES) cloud data of form converts the data of accessible form of computing machine such as text formatting to as fundamental figure being changed standard.Object judge module 130 is used to judge whether the identical entity object of the scanned and current entity object that scans.Measuring program module 140 is used for the size according to the cloud data computational entity object each several part of entity object, and the entity object dimensional data that will calculate gained is sent to the application in order to reality of report generation subsystem 170 and automatically pasting data onto image files subsystem 180, and it includes computational analysis submodule 141 and automatically performs submodule 142.Map file receiving trap 150 is used to receive the design drawing file of the entity object that the user sends.In the specific embodiment of the invention, this map file is utilization computer aided design system (Computer AidedDesign, CAD) map file that is generated (hereinafter to be referred as the CAD map file).Automatic picking picture document size subsystem 160 is used for obtaining the nominal value of the CAD map file pixel that map file receiving trap 150 received.The dimensional data that automatically pasting data onto image files subsystem 180 is used for measuring gained outputs to by the nominal value that the pairing pixel of each size of map file marked, to compare with the nominal value of map file Central Plains mark.Report generation subsystem 170 can generate various multi-form forms automatically according to user's demand, and this form is the entity object nominal value that obtained of automatic picking picture document size subsystem 160 and autoscan measures the summary sheet of the entity object measurement size that subsystem 100 obtained.
Consult shown in Figure 2ly, be computational analysis submodules 141 and the pie graph that automatically performs submodule 142 in the measuring program module among Fig. 1 140.Store the various programs that are used for dimension of picture calculating in the computational analysis submodule 141, comprise error in geometrical form calculation procedure 210, axle and face correction program 220 and point, line, surface calculation procedure 230.Automatically perform submodule 142 and include measurement executive routine 240 and output processing program 250, wherein measure the size that executive routine 240 is used for computational entity object each several part, it is adjustable with the various calculation procedures that store in the computational analysis submodule 141.Output processing program 250 is used for generating the measurement dimensional data and sending it to report generation subsystem 170 and automatically pasting data onto image files subsystem 180.
Shown in Figure 3 is the pie graph of automatic picking picture document size subsystem 160 among Fig. 1.Automatic picking picture document size subsystem 160 includes a map file storage administration center 3100, a map file processing enter 3200 and data storage management center 3300.Map file storage administration center 3100 is used to handle the previous work of picking picture document size operation, and it includes map file receiver module 3110, map file sort module 3120 and map file storage update module 3130.Map file receiver module 3110 is used for will capturing from the 150 interior acquisitions of map file receiving trap the map file of size.3120 of map file sort modules are classified the map file that is obtained, and the principle of its classification can be selected according to the difference of company, also can select according to the standard difference of figure.Map file storage update module 3130 is used to judge whether standard of the map file that obtained, comprises item number, release, map file form etc.Above-mentioned release is meant the release of map file, because the map file that manufacturer draws can be made a series of releases' regulation according to the time order and function of drawing, as AX, BX, CX ... A, B, C, D ... Deng, release's change is generally according to the user to be carried out the change request that product proposes, as the change of size nominal value, local shape change etc.
Map file processing enter 3200 is cores of automatic picking picture document size subsystem 160.Map file processing enter 3200 mainly includes process analysis module 3210 and report output module 3220.Process analysis module 3210 includes information gathering submodule 3211, data acquisition submodule 3212, data analysis submodule 3213 and output processing sub 3214.
Information gathering submodule 3211 is used to obtain the relevant information that the user imports, this relevant information comprises that the user is from the information of the interface input of system and the information of importing from map file, wherein the information from the interface input comprises dimensional tolerence, figure position scope, deposit path, dimensional units pattern etc., and the information of importing from map file includes figure number, nominal value, figure position computer capacity and judgement ratio etc.The ratio that the user was adopted when this judgement ratio was the map file drafting.
Data acquisition submodule 3212 is used for obtaining and the default corresponding to pixel of attribute from map file, and its property value is outputed in the Excel loose-leaf notebook in the property value worksheet.Excel is Microsoft (Microsoft) a kind of spreadsheet of releasing.Should be set by internal system by default attribute, in the present embodiment, this default property value is a numeric type.
Data analysis submodule 3213 is used for determining and the nearest nominal value of pixel distance of representing the size figure number, and this figure number and nominal value is exported.
3214 of processing sub of output are used for the dimensional data of each pixel of map file that will be obtained to be handled and storage, executive routines such as it includes, and data gather, data-switching, data screening and archives storage.Data gather program be used for be scattered in figure number, nominal value, figure position in each different operating table of Excel loose-leaf notebook, tolerance etc. is input in the same worksheet up and down.Data converter is used for the map file text formatting is converted to the text formatting of form, for example will convert the text formatting among the Excel for the CAD map file text formatting of ASCII form to.The data screening program is used to delete unwanted data, as temporary figure number, nominal value etc., and data such as variable in the releasing memory and array.
Report output module 3220 is used for the picture document size data that process analysis module 3210 is obtained are outputed to data storage management center 3300, and it includes the deposit form and chooses submodule 3221 and list data output sub-module 3222.The deposit form is chosen submodule 3221 and is used to determine the dimensional data that is obtained with which kind of form is stored, and the storage format of data all is stored in the form database in advance.List data output sub-module 3222 is used for the dimensional data of the form that generated of output processing sub 3214 is outputed to data storage management center 3300.
Data storage management center 3300 is used to store the dimensional data of the map file of being exported from report output module 3220, and it includes data reception module 3310, data review module 3320 and data deposit module 3330.Data reception module 3310 is used to receive the dimensional data of the form that map file processing enter 3300 sent.Data review module 3320 is used to determine whether the dimensional data that is obtained is wrong.Data deposit module 3330 is used for choosing the above-mentioned dimensional data that obtains of submodule 3221 determined deposit form storages by the deposit form.
Shown in Figure 4 is the pie graph of report generation subsystem 170.Report generation subsystem 170 includes a module for managing files 410, a report form processing module 420 and a parameter management module 430.Module for managing files 410 includes archives and receives submodule 411, is used to receive the standard forms form that the user provides, and a classification of documents submodule 412, the standard forms form that is used for the user is provided is classified.Wherein, archives receive submodule 411 and also are used to receive the required data of generation form, as the measurement dimensional data of the entity object that autoscan measurement system 100 generated and the design size data of the entity object that automatic picking picture document size subsystem 160 generated etc.
Report form processing module 420 includes a field parameter and sets a submodule 421 and a report generation submodule 422.Field parameter is set submodule 421 and is used to set the field parameter that will generate form, as the field data of report heading, figure number, nominal value, tolerance field, measuring value or the like.Report generation submodule 422 is used to generate required form.
Parameter management module 430 is used to store field parameter setting submodule 421 and is the field parameter that various form generated, and calls its stored field parameter when generating forms for report generation submodule 422.
Shown in Figure 5 is the pie graph of automatically pasting data onto image files subsystem 180.This system includes a data acquisition module 510, a data processing module 520 and a map file memory management module 530.Data processing module 510 includes format conversion submodule 511 and map file processing sub 512.Format conversion submodule 511 is used for autoscan is measured the form that dimensional data that subsystem obtains is transformed into the Excel loose-leaf notebook.Map file processing sub 512 is used to open will be imported the CAD map file that measures dimensional data and check that it has faultless message.
Data processing module 520 is used to realize that the dimensional data that will measure gained outputs to the CAD map file, and it includes data aggregation submodule 521, executive routine calls submodule 522, map file and FPDP and obtains submodule 523, Data Format Transform submodule 524, attributes extraction submodule 525, analytical calculation submodule 526 and data output sub-module 527.Data aggregation submodule 521 is used to collect the information that the user imports, producing the output effect that various user will reach, these information comprise figure number place field, nominal value place field, tolerance place field, the dimensional data way of output, Output Size font color and size, out-of-size size color etc. up and down.Executive routine calls submodule 522 and is used for according to the user the different demands of the dimensional data way of output being called different executive routines.Map file and FPDP are obtained submodule 523 and are used to obtain to import a kind of corresponding between map file that measures size and the import measurement dimensional data.It is that non-legible measurement size conversion is a word attribute that Data Format Transform submodule 524 is used for category attribute.Attributes extraction submodule 525 is used for extracting the property value of map file pixel.Analytical calculation submodule 526 is used for the property value foundation of pixel in the value of Excel loose-leaf notebook property value worksheet and the map file is got in touch, to determine which kind of dimensional data is outputed in the map file.Data output sub-module 527 is used for analytical calculation submodule 526 determined dimensional datas are outputed to the CAD map file according to certain form.
Map file memory management module 530 includes map file and receives submodule 531, map file classification submodule 532 and map file sub module stored 533.Map file receives submodule 531 and is used to receive the map file of having imported the measurement size.Map file classification submodule 532 is used for being included into specific classification with import the map file that measures size, classifies such as the producer according to the map file demand.Map file sub module stored 533 is used to store above-mentioned map file.
Shown in Figure 6 is the process flow diagram of automatic scanning measuring data analytic processing system.At first, cloud data receiver module 110 is from the cloud data (step 601) of scanning machine receiving entity object.Afterwards, archives modular converter 120 becomes computing machine can discern the form (step 603) of processing the format conversion of the cloud data received.Be the form of fundamental figure conversion standard (IGES) from the cloud data that scanning machine obtained generally, archives conversion process module 120 can convert thereof into the form that computing machine can be discerned processing.Object judge module 130 can judge whether that identical entity object had been scanned (step 605) then, thereby determines whether to have existed in the system measuring program of this entity object.If there is identical entity object to be scanned, the measuring program of existing this entity object in the illustrative system, then flow process can forward next step measuring program (step 607) of carrying out this entity object to.In carrying out the process of measuring program, measure executive routine 240 and call the size that error in geometrical form calculation procedure 210, axle and face correction program 220 and point, line, surface calculation procedure 230 come computational entity object various piece respectively.If there was not scanned this entity object in the past, that is also do not measure the measuring program of this entity object, then object judge module 130 notice measurement personnel write the measuring program (step 609) that measures this entity object, finish to go to step 607 again behind the measuring program and measure.
Execute after the measuring program, the size of respectively calculating promptly gathers the measurement dimensional data (step 611) that generates the entity object that scans.The measurement dimensional data that is generated can store with the discernible form of a kind of computing machine, in this embodiment, this measurement dimensional data is to be stored in the metric data worksheet (not drawing among the figure) of an Excel loose-leaf notebook with the Excel form, its on the one hand by report generation subsystem 170 application become a part of content of size form, can be 1 80 of automatically pasting data onto image files subsystems on the other hand and use and output in the CAD map file.
Simultaneously, map file receiving trap 150 receive that the user imported this be scanned the design drawing file (step 615) of entity object.In the present embodiment, the map file that the user imported is the CAD map file.The CAD map file that is received can be sent to map file storage administration center 3100 and data acquisition submodule 510, its on the one hand by automatic picking picture document size subsystem 160 utilizations capture the nominal value (step 617) of pixel in this map file, it can be the measurement dimensional data (step 619) that automatically pasting data onto image files subsystem 180 input autoscans measurement subsystems 100 are obtained on the other hand.The measurement size that the nominal value of pixel and autoscan measure this entity object that subsystem 100 obtained in the map file that is obtained in step 617 can be that report generation subsystem 170 is integrated and the dimensional data form (step 613) that generates this entity object.At last, the dimensional data form that is generated with imported measure size map file by deposit (step 621).
Shown in Figure 7 is the operation process chart of automatic picking picture document size subsystem 160 among Fig. 1.At first, map file receiver module 3110 is from the CAD map file (step 701) of map file receiving trap 150 receiving entity objects, and map file update module 3130 can be judged whether standard (step 703) of this map file, such as the setting that whether meets figure position scope etc.If this map file does not meet the requirement of system, map file update module 3230 can notify the user that it is upgraded operation (step 705), and finishes more new element the user and judge once more later on.If map file meets the requirement of system of the present invention, map file processing enter 3200 is promptly handled to obtain the dimensional data (step 707) of pixel in the map file it, this processing procedure comprises information gathering, data acquisition, data analysis and output processing etc., and the back can describe in detail this.
Above-mentioned in the map file that map file processing enter 3200 is obtained the dimensional data of pixel received by the data reception module in the data storage management center 3,300 3310, and it is checked (step 709) by data review module 3320, to judge the dimensional data that obtained whether wrong (step 711).If this dimensional data is wrong, then it is carried out error correction (step 713) and also check once more, until errorless.Errorless dimensional data is finally stored by data deposit module 3330, and is applied to (step 715) in the reality, as is used to generate dimensional data form etc.
Fig. 8 is the process flow diagram that map file processing enter 3200 is carried out information gathering.The various information (step 801) that information gathering module 3211 is at first collected the user and imported comprise information that the user imports from user interface and the information of importing from the CAD map file.Include tolerance, figure position scope and the deposit path etc. of size from the information of user interface input.Comprise the selection figure number, select nominal value, setting figure position computer capacity etc. from the information of CAD map file input, input information is to realize in the mode of clicking pixel in the map file in map file.Then whether correctly information gathering module 3211 can judge information that the user imports (step 803), if the information that the user imported does not meet the requirement of system, system can require the user to re-enter (step 805).If the information conforms requirement of input, information gathering module 3211 can store the information of being obtained (step 807).
Shown in Figure 9 is the process flow diagram that data acquisition module 3212 obtains the property value of pixel in the map file.Data acquisition module 3212 at first obtains a pixel (step 901) from the stored figure position computer capacity of information gathering module 3211, and the attribute of judging this pixel whether meet the requirements (step 903).In the present embodiment, the attribute of this requirement is meant that category attribute is a numeric type.If inconsistent, seek pixel in the figure position computer capacity that then continues in appointment.If the category attribute of pixel is a numeral, then the property value of this pixel is outputed in the attribute worksheet of Excel loose-leaf notebook (step 905), the property value of this output comprises X-axis, the Y-axis coordinate figure of this pixel in map file.Judge the pixel (step 907) of whether not looking in addition in the computer capacity of appointment figure position then.If do not judge the pixel of attribute in addition, then go to step 901, otherwise flow process finishes.
Figure 10 is the process flow diagram that data analysis is calculated in the map file processing procedure of automatic picking picture document size subsystem 160.(step 1001) calculated in figure position can judge whether the pixel of the representative figure number of being obtained is promptly schemed in the scope in the figure scope of appointment, and will the pixel in specified scope outputs in the figure position worksheet in the Excel loose-leaf notebook.Tolerance is calculated (step 1003) and is used to judge whether the pixel of representing nominal value has tolerance value, and composes a default tolerance value to the pixel of zero allowance value, it is stored in the tolerance worksheet in the Excel loose-leaf notebook again.Should default tolerance value be information gathering submodule 3211 obtained by the tolerance value of user from the user interface input.Calculate above-mentioned figure position and tolerance calculating can be described in detail below.After aforementioned calculation is finished, data analysis submodule 3213 calls the property value (step 1005) of the pixel of representative figure number in the attribute worksheet and nominal value, this property value comprises pixel and X-axis, the Y-axis coordinate figure of representing figure number, represent the pixel of nominal value and the X-axis in map file thereof, the Y-axis coordinate figure, and carry out logical calculated (step 1007), to find out figure number and the nominal value pixel nearest with it.If find out and the nominal value of a figure number, then this figure number, nominal value and lowest distance value are outputed in the lowest distance value worksheet in the Excel loose-leaf notebook (step 1009), otherwise proceed comparison apart from minimum.
Shown in Figure 11 is the process flow diagram that figure calculates the position among Figure 10.Figure position computer capacity (step 1101) that data analysis submodule 3213 invoke user are imported and the coordinate (step 1103) that calculates each position in this scope, generate a figure position logic determines (step 1105) then, this logic determines is used for judging whether the pixel of representing figure number is being schemed in the computer capacity of position in the position of map file.The coordinate figure (step 1107) of pixel of figure number represent in acquisition again, and utilization figure position logic determines determines that this figure number is whether in scheming a computer capacity (step 1109).If the figure number that is captured then captures the coordinate figure of other figure number not in the computer capacity of figure position.If this figure number then outputs to this figure number in the figure number worksheet in the Excel loose-leaf notebook (step 1111) in the computer capacity of figure position.
Figure 12 is the process flow diagram that tolerance is calculated among Figure 10.In this course, represent the pixel (step 1201) of nominal value in the data analysis submodule 3213 first picking picture documents, and judge whether it has design tolerance value (step 1203).If existing design tolerance value in this nominal value then outputs to the design tolerance of this size in the tolerance worksheet in the Excel loose-leaf notebook.If this nominal value does not have tolerance, the collected tolerance (step 1205) that the user imported of recalls information collection module 3211 then, and itself and nominal value combined.Data analysis submodule 3313 judges whether this tolerance and nominal value mate (step 1207) then, and the tolerance of coupling is outputed in the tolerance worksheet in the Excel loose-leaf notebook (step 1209).
Shown in Figure 13 is the process flow diagram of logical calculated among Figure 10, and the fundamental purpose of this flow process is to find out the minor increment between figure number and the pixel nominal value.At data input step (step 1301), data analysis submodule 3213 is the pixel of the above-mentioned representative figure number of calling and X-axis thereof, Y-axis coordinate assignment to three a different memory headroom, and the pixel of the representative nominal value that calls and the X-axis in map file thereof, Y-axis coordinate figure are assigned to other three different memory headrooms.Next step promptly is to calculate the distance (step 1303) of each figure number with other nominal value pixel, and it is according to formula S QR ((a-b) 2+ (d-c) 2) calculate, wherein a represents figure number X-axis coordinate figure, and b represents nominal value pixel X-axis coordinate figure, and c represents nominal value pixel Y-axis coordinate figure, and d represents figure number Y-axis coordinate figure.Calculate each figure number then with minimum value and value (step 1305) between other nominal value, judge whether that again the distance value between plural figure number and the same nominal value pixel all is a minimum value (step 1307).If the distance that plural figure number and same nominal value pixel are arranged for minimum, then come respectively the relatively distance value between each figure number and the nominal value by the X-direction and the Y direction of coordinate, and is calculated minimum value (step 1311) wherein.If all calculate apart from minimum value, then it is outputed in the lowest distance value worksheet in the Excel loose-leaf notebook (step 1313).
Figure 14 is the process flow diagram of data output processing in the map file processing procedure among Fig. 7.Data gather that (step 1401) is used for the figure number, nominal value, figure position that are scattered in each different forms, data such as tolerance are input in the same worksheet in the Excel loose-leaf notebook up and down.In translation data form step (step 1403) lining, be used for the text formatting of cad file is converted to the text formatting of Excel loose-leaf notebook form.In the data screening process (step 1405), then unwanted data, delete as the D coordinates value of temporary figure number, nominal value, tolerance etc., and the variable in the releasing memory, array and temporary value etc.Archives storages (step 1407) then mainly are to determine the title of archives and the path of setting deposit.
Figure 15 is the process flow diagram of report generation subsystem 170.Before generating form, the standard forms form (step 1501) that report generation subsystem 170 at first can be provided from module for managing files 410 invoke user, and judge that the field parameter of form has or not setting (step 1503) in system.If the form field parameter is set, the measurement dimensional data of the entity object that no user provides is then directly arranged and the nominal value data of the entity object that obtained from the entity object map file to step 1507 inquiry system.Otherwise, if do not set such field parameter in the past, then 421 meetings of field parameter setting module generate each field parameter according to the statement form that the user provided and it are stored in the parameter management module 430 (step 1505), and then inquire about above-mentioned dimensional data (step 1507).If temporary no required dimensional data in the system, system prompt mistake (step 1509) then, whole flow process end.If the measurement dimensional data and the nominal value data of existing this entity object in the system, format fields parameter in the report generation submodule 422 call parameters administration modules 430 and the standard forms form (step 1511) that the user provided in the module for managing files 410.Then according to the difference of field parameter, the dimensional data of the map file that obtained is input in the different field of form correspondingly, thereby generates a form (step 1513) that meets user's request.At last the form that is generated is stored (step 1515).
Figure 16 is the process flow diagram of automatically pasting data onto image files subsystem 180.The data (step 1601) that at first need obtain to be correlated with are as the CAD map file of the entity object that will import dimensional data and the dimensional data etc. that will import the resulting entity object of measurement of this CAD map file.Data processing module 520 execution handling procedures output in the CAD map file (step 1603) will measure dimensional data then, will import the CAD map file that measures size again and export map file memory management module 530 (step 1605) to.Map file memory management module 530 can be checked (step 1607) and judge the measurement size imported whether wrong (step 1609) the map file of having imported dimensional data.If the size of being imported is wrong, then needs it is carried out error correction (step 1611), and the map file of correcting is outputed to map file memory management module 530 so that unified storage management.
Figure 17 is the process flow diagram that obtains data among Figure 16.After obtaining the dimensional data that will import, the form (step 1701) that need convert thereof into the Excel loose-leaf notebook is to allow the user can discern its content.Open to need input to measure the CAD map file (step 1703) of size then, and check the whether desired version of compliance with system (step 1705) of this map file.
Figure 18 is a process flow diagram of carrying out handling procedure among Figure 16.At first data aggregation submodule 521 can be collected the required various related datas (step 1801) of input size, and executive routine calls submodule 522 and calls different executive routines (step 1803) according to the required dimensional data way of output of user then.Owing to during the measurement entity object, all measure the precision of measuring to improve several times, therefore can form the metric data of many groups.According to different user's requests, system of the present invention can be input to one group of measurement data wherein in the map file, also the multi-group data of measuring can be input in the map file, can also select and to be input in the map file with one group of measuring value of nominal value difference maximum.Correspondingly, in this embodiment, have three kinds of executive routines: import one group of output executive routine, the many group output executive routines of many group inputs and many group input worst-case value output executive routines for one group.Import one group of output for one group and be meant that only importing one group measures dimensional data and should organize data then and output in the map file.The many group outputs of many group inputs are meant that the many groups of input measure dimensional data, all output to these data in the map file then.The output of many group input worst-case values is meant that the many groups of input measure dimensional data, will measure size with a group of design size difference maximum then and output in the map file.Carry out different executive routines, just can reach different effects.Subsequently, map file and FPDP are obtained map file that submodule 523 obtains to import size and institute and are imported connectivity port between the metric data, with the data communication (step 1805) between realization CAD map file and the measurement size.Data Format Transform submodule 524 is that the category attribute of the measuring value of numeric type converts the character type (step 1807) that the CAD map file can be discerned to classification, the main cause of conversion is because the form of single literal in the CAD map file and multirow literal may be different with the written form in the Excel loose-leaf notebook, therefore be input among the CAD and will make mistakes, thereby will utilize program to go to correct.Then, attributes extraction submodule 525 extracts the property value (step 1809) of pixel in the map file, and utilize this property value to carry out analytical calculation by analytical calculation submodule 526 and get in touch, thereby determine which kind of metric data is outputed in the CAD map file (step 1811) so that the metric data in the Excel loose-leaf notebook is set up with the property value of the pixel of extracting from the CAD map file.At last, data output sub-module 527 outputs to determined metric data in the CAD map file (step 1813).
Figure 19 is the process flow diagram that calls executive routine among Figure 18.The information of being obtained according to data aggregation submodule 521 that the user imported, executive routine calls submodule 522 and at first judges whether want one group of data input one group of data output (step 1901) again, if be defined as is then to call/one group of output of one group of input executive routine (step 1903).Otherwise, if not requiring one group of input one group of output again, executive routine calls submodule 522 to be continued to judge whether to want multi-group data to import multi-group data output (step 1905) again, if be defined as is that then executive routine calls submodule 522 and just calls many group inputs/many group output executive routines (step 1907).If not, then judge whether to want the multi-group data input to choose worst-case value output (step 1909) again, if, then call many groups and import/choose worst-case value output executive routine (step 1911), otherwise prompting error message (step 1913) informs that the user selects a kind of executive routine.
Shown in Figure 20 is the process flow diagram of the text formatting of conversion data object among Figure 18.At first obtain the field (step 2001) at measuring value and figure number place in the Excel loose-leaf notebook, set up then one from 1 to infinitely-great circulation (step 2003) and move this circulation.When running to a cycle values, need to judge figure number that current cycle values is identical field value whether be zero (step 2005).If be zero, then loop ends, otherwise capture the category attribute (step 2007) of current cycle values place field measuring value, and judge whether this attribute is literal (step 2009).If the classification of current cycle values place field measuring value is a literal, then carry out next circulation, otherwise convert thereof into the text formatting (step 2011) that the CAD map file can be discerned, and judge whether the figure number place field value identical with next cycle values is zero (step 2013), if it is non-vanishing, then turn back to step 2007 and proceed circulation, otherwise loop ends.
Figure 21 is the process flow diagram that CAD pixel object properties value is extracted among Figure 18.At first set up a circulation (step 2101), be used for circulating all pixel objects of query graph file according to this according to all pixel objects of map file.In operation round-robin process, whenever inquire a pixel object, judge at first then whether this pixel is segment (step 2103), if, then extract the segment attribute of this pixel and X thereof, Y-axis coordinate figure (step 2105), if not, judge then whether pixel is single line text (step 2107).If if the pixel single line text of being inquired about then extracts its text attribute and X thereof, Y-axis coordinate figure (step 2105).Otherwise,, judge then whether it is multirow literal (step 2109) if the pixel of being inquired about is not a single line text.If pixel is the multirow literal, then extract its text attribute and X thereof, Y-axis coordinate figure (step 2105), if not the multirow literal, judge then whether it is size object (step 2111).This size object comprises linear dimension size object, half (directly) footpath dimensioning object, angular dimension size object and lead-in wire dimensioning object etc.If pixel is the size object, then extract its size part property value and X thereof, Y-axis coordinate figure (step 2105).After having extracted the property value of each pixel and X, Y-axis coordinate figure, judge then whether each property value that extracts meets a predetermined standard (step 2113).The pixel that clicks when in the present embodiment, this predetermined standard figure layer that is pixel is with the beginning executive routine is identical, the category attribute of pixel is for numeral and be integer less than 5000.If pixel meets this standard, then the property value of this pixel and X thereof, Y-axis coordinate are inputed to respectively in the Excel loose-leaf notebook among hurdle A, the hurdle B in the object attribute worksheet and hurdle C (step 2115), carry out next circulation again.Otherwise,, then the property value of this pixel and X thereof, Y-axis coordinate figure are outputed to hurdle D, hurdle E and the hurdle F (step 2117) in the object attribute worksheet in the Excel loose-leaf notebook respectively, and then carry out next circulation if pixel does not meet this standard.
In step 2111, if the pixel object is not the size object, then judge the pixel (step 2119) that whether also has other in the map file, if having, then proceed to next circulation, if do not have, then finish the flow process that property value extracts.
Figure 22 is the process flow diagram of analytical calculation step among Figure 18.Analytical calculation submodule 526 at first captures the property value (step 2201) of pixel in the CAD map file that attributes extraction submodule 525 obtained, set up then one from 1 to infinitely-great circulation (step 2203).Move this circulation, judge at first whether the figure number identical with cycle values is zero (step 2205), if figure number is zero, then finishes this time circulation, if non-vanishing, then whether the integral part of decision content measured value equals CAD pixel property value (step 2207).If be not equal to, then measuring value is outputed in the CAD map file (step 2215), whether if equal zero, then continuing decision content measured value fraction part is zero (step 2209).If be zero, then this measuring value is outputed in the CAD map file (step 2215), otherwise, current cycle values is added after 1, judge figure number is whether the measuring value that current cycle values adds 1 pixel is integer (step 2211).If be integer, then this measuring value is outputed in the CAD map file (step 2215), otherwise, current measuring value is stored among a variable I=I+CH (10)+CH (13) (step 2213), enter next circulation then.In the above-mentioned equation, I represents current measuring value, and CH (10) represents a space, and CH (13) represents carriage return operation.
Figure 23 imports the process flow diagram of data to the CAD map file among Figure 18.Data output sub-module 527 at first obtains the metric data (step 2301) that will output in the CAD map file from the Excel loose-leaf notebook, obtain the attribute of the more defined object outputs of users then from data aggregation submodule 521, as the color of extension line color, output font color, out-of-size font or the like (step 2303).Again from the CAD map file pixel coordinate set up YITIAOGEN according to the user from the extension line (step 2305) ordered, set up the metric data (step 2307) that from the Excel loose-leaf notebook, obtains then at extension line terminal point coordinate place, this metric data is a character type.Judge then whether the metric data of this character type has exceeded the design tolerance scope (step 2309) of entity object.If measuring value has exceeded the margin tolerance of design load, the color change that then will be shown in the measuring value in the map file becomes the color (step 2311) of the out-of-size font that the user makes by oneself, check whether also have the metric data of omitting not output to (step 2313) in the map file then, if have, then repeat above-mentioned step, otherwise whole input data are to the flow process end of map file.In step 2309,, then jump directly to step 2313 and check whether also have the metric data of omitting not output in the map file if measuring value does not exceed the margin tolerance of design load.

Claims (9)

1. automatic picking picture document size system is used for obtaining from the map file of entity object the dimensional data of this entity object, it is characterized in that comprising:
One map file storage administration center comprises:
One map file receiver module is used to obtain the map file that will capture dimensional data;
One map file sort module is used for the map file that is obtained is classified;
One map file storage update module is used to judge whether standard of the map file that obtained;
One map file processing enter comprises:
One process analysis module is used for map file is carried out analytical calculation to obtain the design size data of map file;
One report output module is used for the picture document size data output that the process analysis module is obtained;
One data storage management center comprises:
One data reception module is used to receive the picture document size data that the map file processing enter is exported;
One data review module is used to judge whether the picture document size data that obtained are wrong;
One data deposit module is used to store the picture document size data that obtained.
2. automatic picking picture document size system as claimed in claim 1 is characterized in that the process analysis module includes an information gathering submodule, is used to obtain the relevant information that the user imports.
3. automatic picking picture document size system as claimed in claim 1 is characterized in that the process analysis module also includes a data acquisition submodule, is used for obtaining and the default corresponding to pixel of attribute from map file.
4. automatic picking picture document size system as claimed in claim 1 is characterized in that the process analysis module also includes a data analysis submodule, is used for obtaining the dimensional data of each pixel of map file.
5. automatic picking picture document size system as claimed in claim 1 is characterized in that the process analysis module also includes an output processing sub, is used to store the dimensional data of each pixel of map file that is obtained.
6. the method for an automatic picking picture document size is used for obtaining from the map file of entity object the dimensional data of this entity object, and this method comprises the steps:
Obtain the map file that will capture dimensional data and it is classified;
Judge whether standard of the map file obtained;
The analytical calculation map file is to obtain the design size data of map file;
Determine whether the picture document size data that obtained are wrong;
The picture document size data that storage is obtained.
7. the method for automatic picking picture document size as claimed in claim 6 is characterized in that the analytical calculation step more includes following step:
Collect the information that the user imported, this information comprises figure number place figure layer, design size place figure layer;
Obtain the pixel in the map file, comprise figure block object, single line text object, multirow literal object and size object;
Analytical calculation and each figure number distance are minimum size object;
Output figure number and and its size object and this lowest distance value apart from minimum.
8. the method for automatic picking picture document size as claimed in claim 6 is characterized in that with the map file classification be to carry out according to company's classification.
9. the method for automatic picking picture document size as claimed in claim 6 is characterized in that the step of judging more includes and works as the map file that is obtained when lack of standardization, the step of notifying the user to correct.
CNB021152063A 2002-05-06 2002-05-06 Automatic picking picture document size system and method Expired - Fee Related CN1232919C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB021152063A CN1232919C (en) 2002-05-06 2002-05-06 Automatic picking picture document size system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB021152063A CN1232919C (en) 2002-05-06 2002-05-06 Automatic picking picture document size system and method

Publications (2)

Publication Number Publication Date
CN1456996A true CN1456996A (en) 2003-11-19
CN1232919C CN1232919C (en) 2005-12-21

Family

ID=29410270

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB021152063A Expired - Fee Related CN1232919C (en) 2002-05-06 2002-05-06 Automatic picking picture document size system and method

Country Status (1)

Country Link
CN (1) CN1232919C (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102682181A (en) * 2011-03-08 2012-09-19 鸿富锦精密工业(深圳)有限公司 System and method for off-line programming measurement
CN102955761A (en) * 2011-08-18 2013-03-06 鸿富锦精密工业(深圳)有限公司 Size information output system and size information output method
CN102955870A (en) * 2011-08-30 2013-03-06 鸿富锦精密工业(深圳)有限公司 Method and system for extracting dimension information
CN103093291A (en) * 2011-10-31 2013-05-08 鸿富锦精密工业(深圳)有限公司 Image measurement object management system and method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102682181A (en) * 2011-03-08 2012-09-19 鸿富锦精密工业(深圳)有限公司 System and method for off-line programming measurement
CN102955761A (en) * 2011-08-18 2013-03-06 鸿富锦精密工业(深圳)有限公司 Size information output system and size information output method
CN102955870A (en) * 2011-08-30 2013-03-06 鸿富锦精密工业(深圳)有限公司 Method and system for extracting dimension information
CN103093291A (en) * 2011-10-31 2013-05-08 鸿富锦精密工业(深圳)有限公司 Image measurement object management system and method

Also Published As

Publication number Publication date
CN1232919C (en) 2005-12-21

Similar Documents

Publication Publication Date Title
US20030204366A1 (en) System and method for analyzing and processing data on an object
CN1276392C (en) Reference based parametric dimensioning method and system
CN1303061A (en) System and method of sequencing and classifying attributes for better visible of multidimentional data
CN102693334B (en) Based on the dynamic component recognition methods of CAD electronic drawing
CN108830554B (en) Task model-based intelligent detection method and system for data result information quality
CN1217287C (en) Fingerprint identifying method and system
CN101075249A (en) Data warehouse system and its construction for geographical information system
CN1456975A (en) Automatic scanning measuring data analytic processing system and method
CN1232919C (en) Automatic picking picture document size system and method
CN109448040A (en) A kind of machinery production manufacture displaying auxiliary system
CN100419674C (en) Report forms generating system and method
US7225396B2 (en) System and method for generating a report on an object
CN1635497A (en) Hardware-level based test script automatic generating system and method
CN1766888A (en) Mold designing system and method
CN107729474B (en) Data quality detection method, system, equipment and storage medium of CAD model
US6834253B2 (en) System and method for outputting measurement data on an object to a graphic file thereof
CN1456997A (en) System and method for automatically pasting data onto image files
KR101030250B1 (en) Data processing method and data processing program
CN111090630A (en) Data fusion processing method based on multi-source spatial point data
US7113961B2 (en) System and method for capturing dimensions from a graphic file of an object
CN101055601A (en) Quick inserting pattern frame system and method
JP2014006100A (en) Image processing system, image processing method, and image processing program
CN100347702C (en) Extendible marked language key constraint verification method based on structural analysis
CN113486105B (en) CIM-oriented natural resource history business data integration method and device
CN1591326A (en) System for measuring division of labour and automation operating and method thereof

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20051221

Termination date: 20150506

EXPY Termination of patent right or utility model