CN1456974A - Report forms generating system and method - Google Patents

Report forms generating system and method Download PDF

Info

Publication number
CN1456974A
CN1456974A CN 02115205 CN02115205A CN1456974A CN 1456974 A CN1456974 A CN 1456974A CN 02115205 CN02115205 CN 02115205 CN 02115205 A CN02115205 A CN 02115205A CN 1456974 A CN1456974 A CN 1456974A
Authority
CN
China
Prior art keywords
data
report
map file
submodule
user
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
CN 02115205
Other languages
Chinese (zh)
Other versions
CN100419674C (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 CNB021152055A priority Critical patent/CN100419674C/en
Publication of CN1456974A publication Critical patent/CN1456974A/en
Application granted granted Critical
Publication of CN100419674C publication Critical patent/CN100419674C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

The system consists of a file management module, a report processing module and a parameter management module, of which the file management module comprises a file management submodule used to receive report format provided by the user and a file classifying submodule used to classify report formats provided from the user, the report processing module comprises a field parameter setting submodule used to set report field parameter as per the user report format and a report generation submodule used to obtain various information required for making the report and form the required report as well as the parameter management module is used to store various field parameter generated by the management field parameter setting submodule.

Description

A kind of report generating system and method
[technical field]
The present invention relates to a kind of report generating system and method, refer to a kind of system and method that generates multi-form form according to the different statement forms that the user provided especially.
[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 that a kind of system and method can the auto-measuring entity object, and the design size that will measure size and entity object combines and generates a form, also can output in the design drawing file of entity object to instruct the production of manufacturer measuring size simultaneously.
[summary of the invention]
At the demand of above-mentioned reality, the invention provides a kind of report generating system and method, it can generate the form of different-format according to user's different demands.
Report generating system provided by the present invention includes a module for managing files, a report form processing module and a parameter management module.Module for managing files comprises that archives receive submodule, is used to receive the statement form that the user provides, and a classification of documents submodule, the statement form that is used for the user is provided is classified.The report form processing module comprises field parameter setting submodule, is used for setting according to user's statement form the field parameter of form, and a report generation submodule, is used to obtain generate the needed various data of form and generate the needed form of user.The parameter management module is used for the storage administration field parameter and sets the various field parameter that submodule generated.
The method of report generation provided by the present invention includes following steps: (i) statement form that invoke user provided; Whether each field parameter in the statement form of (ii) judging the user and being provided is all set; If (iii) each field parameter is set in the form, then judge whether to exist the data that generate this form; Exist if (iv) generate the dimensional data of form, then call the field parameter of this form; (v) the dimensional data that will generate form according to the difference of field parameter outputs to respectively in each field of form; (vi) store the form that is generated.
But the present invention's assisted user generates the physical size and the design size form of entity object fast, allowing product that manufacturer recognizes that it is produced and the difference between the design load easily, and improves 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 pastes among Figure 18 to measure the process flow diagram of size to the CAD map file.
Figure 24 is the system block diagrams of a known utilization reverse Engineering Technology formation 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 calcspar 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 calculating object each several part of object, and the object size data that will calculate gained are 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 Aided Design, 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 160 is used for measuring gained is attached 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 Fig. 2, shown is measuring program module 140 interior computational analysis submodules 141 and the pie graph that automatically performs submodule 142 among Fig. 1.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 the calculating 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 Organization Chart 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 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 formation calcspar of report generation subsystem 170.As shown in the figure, 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 object that autoscan measurement system 100 generated and the design size data of the 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 Organization Chart 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 Excel loose-leaf notebook lattice.Map file processing sub 512 is used to open will stick 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 sticks 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 paste a kind of corresponding between map file that measures size and the paste 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 that has posted the measurement size.Map file classification submodule 532 is used for posting the map file that measures size and is included into specific classification, such as the producer's classification according to the map file demand.Map file sub module stored 533 is used to store above-mentioned map file.
Consult Fig. 6, shown 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 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 the calculating 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 automatically pasting data onto image files subsystem 180 and sticks the measurement dimensional data (step 619) that autoscan measurement subsystem 100 is obtained on the other hand.The measurement size that the nominal value of pixel and autoscan measure this 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 object.At last, the dimensional data form that is generated is user's deposit (step 621) with the map file that sticks the measurement size.
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 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 of representing figure number, represent the pixel of nominal value and the X-axis in map file thereof, the Y-axis coordinate, 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.
Consult Figure 11, shown 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 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).
Consult Figure 13, shown 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, with the pixel of the representative nominal value that calls and the X-axis in map file thereof, Y-axis coordinate assignment 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 coordinate, and it is according to formula S QR ((a-b) 2+ (d-c) 2) calculate, wherein a represents figure number X-axis coordinate, and b represents nominal value pixel X-axis coordinate, and c represents nominal value pixel Y-axis coordinate, and d represents figure number Y-axis coordinate.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 object diagram 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 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 that metric data sticks map file file subsystem 180 automatically.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 paste dimensional data and the dimensional data etc. that will stick 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 post 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 to the map file that posts dimensional data check (step 1607) and judge the size of pasting whether wrong (step 1609).If the size of being pasted 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 paste, the form (step 1701) that need convert thereof into Excel loose-leaf notebook lattice is to allow the user can discern its content.Open to need paste 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 and paste the required various related datas (step 1801) of 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 attached to one group of measurement data wherein in the map file, also the multi-group data of measuring can be attached in the map file, can also select and will be attached 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 paste size and institute and are pasted 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 lattice, 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 value to carry out analytical calculation by analytical calculation submodule 526 and get in touch, thereby determine which kind of value is outputed in the CAD map file (step 1811) so that the metric data territory place value 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 dimensional 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 (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 (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 (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 (step 2105).After having extracted the property value of each pixel and X, Y-axis coordinate, 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 labelled 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 are labelled 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 pastes 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 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 to be attached to (step 2313) in the map file then, if have, then repeat above-mentioned step, otherwise whole subsides 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 (10)

1. a report generating system is used for the measurement size of entity object is combined with design size to generate the dimensional data form of entity object, it is characterized in that comprising:
One module for managing files is used to obtain the statement form that the user provides;
One report form processing module is used to set the field parameter of form and generates form by the statement form that the user provided;
One parameter management module is used to store the various field parameter that the report form processing module is generated.
2. report generating system as claimed in claim 1 is characterized in that module for managing files also includes a classification of documents module, and the statement form that is used for the user is provided is classified.
3. report generating system as claimed in claim 1 is characterized in that the report form processing module includes a report generation submodule, is used to obtain generate the required data of form and generate form.
4. report generating system as claimed in claim 3 is characterized in that generating measurement size and the design size that the required data of form comprise entity object.
5. report generating system as claimed in claim 1 is characterized in that the form field parameter of setting comprises figure number, nominal value, tolerance and measuring value.
6. a report generating system is used for the measurement size of entity object is combined with design size to generate the dimensional data form of entity object, it is characterized in that comprising:
One module for managing files comprises:
One archives receive submodule, are used to receive the statement form that the user provides;
One classification of documents submodule, the statement form that is used for the user is provided is classified;
One report form processing module comprises:
One field parameter is set submodule, is used for setting according to user's statement form the field parameter of form;
One report generation submodule is used to obtain the generation needed various data of form and generates the needed form of user;
One parameter management module is used for the storage administration field parameter and sets the various field parameter that submodule generated.
7. report generating system as claimed in claim 6 is characterized in that generating measurement dimensional data and the design size data that the required various data of form comprise entity object.
8. the method for a report generation, the statement form that is used for providing according to the user generates multi-form form, it is characterized in that comprising the steps:
The statement form that invoke user provided;
Judge whether each field parameter in the statement form that the user provides was all set;
If each field parameter is set in the form, then judge whether to exist the data that generate this form;
Exist if generate the data of form, then call the field parameter of this form;
The data that will generate form according to the difference of field parameter export to respectively in each field of form;
The form that storage is generated.
9. the method for report generation as claimed in claim 8 is characterized in that judging that the step whether field parameter is set includes following step:
When field parameter is not set, set field parameter and deposit it in parameter management module.
10. the method for report generation as claimed in claim 8 is characterized in that the step whether judgment data exists includes following steps:
Also do not exist if generate the data of form, then point out the flow process of makeing mistakes and finishing report generation.
CNB021152055A 2002-05-06 2002-05-06 Report forms generating system and method Expired - Fee Related CN100419674C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB021152055A CN100419674C (en) 2002-05-06 2002-05-06 Report forms generating system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB021152055A CN100419674C (en) 2002-05-06 2002-05-06 Report forms generating system and method

Publications (2)

Publication Number Publication Date
CN1456974A true CN1456974A (en) 2003-11-19
CN100419674C CN100419674C (en) 2008-09-17

Family

ID=29410269

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB021152055A Expired - Fee Related CN100419674C (en) 2002-05-06 2002-05-06 Report forms generating system and method

Country Status (1)

Country Link
CN (1) CN100419674C (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101145164B (en) * 2007-10-30 2010-06-02 金蝶软件(中国)有限公司 Chronological book inquiry method and device
CN102331983A (en) * 2010-07-15 2012-01-25 鸿富锦精密工业(深圳)有限公司 Test report generation system and method
CN102930127A (en) * 2011-08-09 2013-02-13 鸿富锦精密工业(深圳)有限公司 Color list management method and system for measured size
CN102955761A (en) * 2011-08-18 2013-03-06 鸿富锦精密工业(深圳)有限公司 Size information output system and size information output method
CN106372143A (en) * 2016-08-29 2017-02-01 中国能源建设集团广东省电力设计研究院有限公司 EXCEL internal function-based two-dimensional data linear query/valve selection method
CN111553187A (en) * 2020-03-20 2020-08-18 广联达科技股份有限公司 Method and system for identifying form in CAD drawing

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1052316C (en) * 1995-09-15 2000-05-10 殷步九 Computer managing and designing system and method thereof

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101145164B (en) * 2007-10-30 2010-06-02 金蝶软件(中国)有限公司 Chronological book inquiry method and device
CN102331983A (en) * 2010-07-15 2012-01-25 鸿富锦精密工业(深圳)有限公司 Test report generation system and method
CN102930127A (en) * 2011-08-09 2013-02-13 鸿富锦精密工业(深圳)有限公司 Color list management method and system for measured size
CN102955761A (en) * 2011-08-18 2013-03-06 鸿富锦精密工业(深圳)有限公司 Size information output system and size information output method
CN106372143A (en) * 2016-08-29 2017-02-01 中国能源建设集团广东省电力设计研究院有限公司 EXCEL internal function-based two-dimensional data linear query/valve selection method
CN111553187A (en) * 2020-03-20 2020-08-18 广联达科技股份有限公司 Method and system for identifying form in CAD drawing
CN111553187B (en) * 2020-03-20 2023-06-02 广联达科技股份有限公司 Method and system for identifying form in CAD drawing

Also Published As

Publication number Publication date
CN100419674C (en) 2008-09-17

Similar Documents

Publication Publication Date Title
CN112560275B (en) Two-dimensional three-dimensional real-time linkage online drawing annotation checking system and method
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
CN106844324B (en) Method for exporting variable column data into Excel format
CN106156280A (en) Order method for sorting based on GIS map and order sorting system
CN1217287C (en) Fingerprint identifying method and system
CN105045886A (en) Importing method of DICOM (Digital Imaging and Communications in Medicine) image
CN111260413A (en) Vector graph-based rapid calculation method for construction cost of power main network engineering
CN109408897A (en) The conversion method and system identified based on PDMS to AutoCAD drawing size marking
CN107862112A (en) Element material programming count and method for drafting suitable for AutoCAD floor plans
CN1456975A (en) Automatic scanning measuring data analytic processing system and method
CN1456974A (en) Report forms generating system and method
CN1232919C (en) Automatic picking picture document size system and method
TWI249116B (en) System and method for generating report of dimension
CN1635497A (en) Hardware-level based test script automatic generating system and method
CN1766888A (en) Mold designing system and method
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
CN111090630A (en) Data fusion processing method based on multi-source spatial point data
CN110555219B (en) Three-dimensional CAD model similarity retrieval system and method based on image recognition
JP5833975B2 (en) Image processing system, image processing method, and image processing program
CN101055601A (en) Quick inserting pattern frame system and method
US7113961B2 (en) System and method for capturing dimensions from a graphic file of an object
CN100347702C (en) Extendible marked language key constraint verification method based on structural analysis

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: 20080917

Termination date: 20150506

EXPY Termination of patent right or utility model