[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 automatically pasting data onto image files subsystem 180 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.