CN104462208B - A kind of automatic offline method of CAM file - Google Patents
A kind of automatic offline method of CAM file Download PDFInfo
- Publication number
- CN104462208B CN104462208B CN201410610504.5A CN201410610504A CN104462208B CN 104462208 B CN104462208 B CN 104462208B CN 201410610504 A CN201410610504 A CN 201410610504A CN 104462208 B CN104462208 B CN 104462208B
- Authority
- CN
- China
- Prior art keywords
- file
- cam
- fileinfo
- storage
- offline
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/11—File system administration, e.g. details of archiving or snapshots
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2228—Indexing structures
- G06F16/2246—Trees, e.g. B+trees
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a kind of automatic offline methods of CAM file, comprise the following steps:A, the fileinfo under the public directory of storage CAM file is read;B, by above-mentioned file information storage in tree construction;C, corresponding CAM file is subjected to offline processing;D, the number changed according to current time and file is backed up;E, the fileinfo for the file that the offline and success that succeeded is backed up is deleted in tree construction.The unitized management that the method for the present invention is stored using file designation, file, realize that all completed files are stored in production by certain storage algorithm automatically and take path by program, automated back-up processing is carried out while storage, ancient deed under original production file can be replaced automatically, the accuracy of file storage is greatly promoted, substantially reduces the time of file storage.The present invention can be widely applied to PCB fields as a kind of automatic offline method of CAM file.
Description
Technical field
The present invention relates to PCB fields, the automatic offline method of especially a kind of CAM file.
Background technology
It is needed because having multiple processes when PCB is produced using all kinds of production files, the production file needs that engineering is made
Use easy to produce has been stored classifiedly, has been initially that Miscellaneous Documents are put into the path specified by hand by CAM personnel, due to file knot
Structure is complicated, cumbersome, and the method is often present with file storage mistake, file is put in leakage, multi version file is existed simultaneously, stored
Take the problems such as long.
The content of the invention
In order to solve the above-mentioned technical problem, the purpose of the present invention is:A kind of reduction error rate is provided, carries efficient CAM
The automatic offline method of file.
The technical solution adopted in the present invention is:A kind of automatic offline method of CAM file, comprises the following steps:
A, the fileinfo under the public directory of storage CAM file is read;
B, by above-mentioned file information storage in tree construction;
C, corresponding CAM file is subjected to offline processing;
D, the number changed according to current time and file is backed up;
E, the fileinfo for the file that the offline and success that succeeded is backed up is deleted in tree construction.
Further, the fileinfo described in the step A include folder name, filename, file creation time with
And verification fileinfo.
Further, the step B includes following sub-step:
B1, filename uniqueness verification is carried out to above-mentioned fileinfo;
B2, by the file information storage after above-mentioned verification in tree construction.
Further, the step C includes following sub-step:
C1, the creation time for having descended line file more and the creation time that line file will be descended;
If C2, differential time are more than 3 days, delete and descend line file;Otherwise retain.
Further, the step D includes following sub-step:
D1, will the time on the same day add in filename after;
If D2, file have it is modified, after the above-mentioned filename changed plus modification number;
D3, amended file is backed up.
The beneficial effects of the invention are as follows:The unitized management that the method for the present invention is stored using file designation, file, realizes journey
All completed files are stored in production by certain storage algorithm automatically and take path by sequence, and storage while carries out automatic
Back-up processing, the ancient deed under original production file can be replaced automatically, greatly promoted the accuracy of file storage, contracted significantly
The time of short file storage.
Description of the drawings
Fig. 1 is the main flow chart of steps of the method for the present invention.
Specific embodiment
The specific embodiment of the present invention is described further below in conjunction with the accompanying drawings:
With reference to Fig. 1, a kind of automatic offline method of CAM file comprises the following steps:
A, the fileinfo under the public directory of storage CAM file is read;
Work card, tgz files, cnc files, laser files, gerber files, afvi files, electricity can be included under public directory
Survey file and jig files etc..
B, by above-mentioned file information storage in tree construction;
C, corresponding CAM file is subjected to offline processing;
D, the number changed according to current time and file is backed up;
E, the fileinfo for the file that the offline and success that succeeded is backed up is deleted in tree construction.
Preferred embodiment is further used as, the fileinfo described in the step A includes folder name, file
Name, file creation time and verification fileinfo.
First, outermost layer file is built with 8 before job number, the root node as tree construction;Second layer file:Power auger
Hole folder name is cnc, and laser drilling folder name is laser, and tgz folder names are cam, and circuit exposure folder name is
Ldi, the welding resistance exposure entitled gerber of file, electrical measurement folder name is etest, welding resistance silk-screen and filling holes with resin jig folder names
For jig, 2D automatic shape inspections folder name is afvi, and milling tape file presss from both sides entitled rou, and work card not build file.
Preferred embodiment is further used as, the step B includes following sub-step:
B1, filename uniqueness verification is carried out to above-mentioned fileinfo;
File designation rule:Ensure the uniqueness of file name suffix.It is to check file suffixes when carrying out file replacement
Name is replaced(Except afvi files, according to the characteristics of etest filenames, etest is to check filename length with after
Sew name to be replaced), it is assumed that there is not file name suffix, may result in when the different people of a file exports
File is not replaced, and it is therefore necessary to carry out unitized management, such as welding resistance silk-screen control depth jig files to file name suffix, is surpassed
Crossing 10 exit orifice needs a point drilling to make, and somebody likes being named as psrjigks-b and psrjigks-b1, and people in addition may like
Vigorously it is named as psrjigks-b1 and psrjigks-b2, it is assumed that because drawing coefficient variation has been more than 2/10000ths, to go to replace
File, mistake may be occurred by going to be replaced with software, three control deep drilling files are present in file, so must assure that
The uniqueness of export file name suffix.
B2, by the file information storage after above-mentioned verification in tree construction.
Preferred embodiment is further used as, the step C includes following sub-step:
C1, the creation time for having descended line file more and the creation time that line file will be descended;
If C2, differential time are more than 3 days, delete and descend line file;Otherwise retain.
It, cannot when offline because the different batches of product of a job number may reach drilling or shape process simultaneously
Alternate file directly is removed according to suffix name, otherwise a upper file results in the need for exporting text again not yet using being just replaced
Part, so outer layer drilling file and milling tape file need to check that output file creation time and correspondence will offline document creations
The difference of time, the output file less than or equal to 3 days retain, and the output file more than 3 days is deleted, and then places into correspondence
Lower line file.
Preferred embodiment is further used as, the step D includes following sub-step:
D1, will the time on the same day add in filename after;
If D2, file have it is modified, after the above-mentioned filename changed plus modification number;
D3, amended file is backed up.
The above are implementing to be illustrated to the preferable of the present invention, but the invention is not limited to the implementation
Example, those skilled in the art can also make a variety of equivalents on the premise of without prejudice to spirit of the invention or replace
It changes, these equivalent deformations or replacement are all contained in the application claim limited range.
Claims (3)
1. a kind of automatic offline method of CAM file, it is characterised in that:Comprise the following steps:
A, the fileinfo under the public directory of storage CAM file is read, the fileinfo includes folder name, file
Name, file creation time and verification fileinfo;
B, filename uniqueness verification is carried out to above-mentioned fileinfo, by the file information storage after verification in tree construction;
C, corresponding CAM file is subjected to offline processing;
D, the number changed according to current time and file is backed up;
E, the fileinfo for the file that the offline and success that succeeded is backed up is deleted in tree construction.
2. a kind of automatic offline method of CAM file according to claim 1, it is characterised in that:The step C include with
Lower sub-step:
C1, the creation time for having descended line file more and the creation time that line file will be descended;
If C2, differential time are more than 3 days, delete and descend line file;Otherwise retain.
3. a kind of automatic offline method of CAM file according to claim 1, it is characterised in that:The step D includes
Following sub-step:
D1, will the time on the same day add in filename after;
If D2, file have it is modified, after the above-mentioned filename changed plus modification number;
D3, amended file is backed up.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410610504.5A CN104462208B (en) | 2014-11-03 | 2014-11-03 | A kind of automatic offline method of CAM file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410610504.5A CN104462208B (en) | 2014-11-03 | 2014-11-03 | A kind of automatic offline method of CAM file |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104462208A CN104462208A (en) | 2015-03-25 |
CN104462208B true CN104462208B (en) | 2018-06-05 |
Family
ID=52908244
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410610504.5A Active CN104462208B (en) | 2014-11-03 | 2014-11-03 | A kind of automatic offline method of CAM file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104462208B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106855887A (en) * | 2016-12-26 | 2017-06-16 | 努比亚技术有限公司 | A kind of method of file management, device and terminal |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010282241A (en) * | 2007-08-20 | 2010-12-16 | Nec Corp | File management device, file management system, file management method, and program |
CN102722487A (en) * | 2011-03-30 | 2012-10-10 | 腾讯科技(深圳)有限公司 | Method and apparatus for file management |
CN103092665A (en) * | 2013-03-01 | 2013-05-08 | 畅捷通信息技术股份有限公司 | Immediate updating device and immediate updating method |
CN103226603A (en) * | 2013-04-27 | 2013-07-31 | 南京信息工程大学 | File synchronization update method and system based on portable storage device |
-
2014
- 2014-11-03 CN CN201410610504.5A patent/CN104462208B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010282241A (en) * | 2007-08-20 | 2010-12-16 | Nec Corp | File management device, file management system, file management method, and program |
CN102722487A (en) * | 2011-03-30 | 2012-10-10 | 腾讯科技(深圳)有限公司 | Method and apparatus for file management |
CN103092665A (en) * | 2013-03-01 | 2013-05-08 | 畅捷通信息技术股份有限公司 | Immediate updating device and immediate updating method |
CN103226603A (en) * | 2013-04-27 | 2013-07-31 | 南京信息工程大学 | File synchronization update method and system based on portable storage device |
Also Published As
Publication number | Publication date |
---|---|
CN104462208A (en) | 2015-03-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105184482B (en) | A kind of transformer account data verification system and its method | |
CN104035754A (en) | XML (Extensible Markup Language)-based custom code generation method and generator | |
CN107633353A (en) | Material BOM tables based on EXCEL Table V BA close rule inspection method | |
CN105447253B (en) | A kind of integrated approach of three-dimensional process data | |
CN105138752B (en) | Intelligent substation SCD file land parcel change trace differentiation compares and methods of exhibiting | |
CN103617047A (en) | Method, device and processor for developing business processes | |
CN104426896A (en) | Method and device for producing topic pages | |
CN104866249A (en) | 3D printing data generation method, processing system and 3D drawing file printing method | |
CN104794048A (en) | Automatic UI testing method and system | |
CN108228726B (en) | Incremental transaction content acquisition method and storage medium for distribution network red and black images | |
CN103425632A (en) | Serializing method, device and processor | |
CN103780448B (en) | A kind of generation method and device of control layer identification code | |
CN105761045A (en) | Printed circuit board BOM sorting method and system | |
CN108845942A (en) | Product feature management method, device, system and storage medium | |
CN109062570A (en) | A kind of method and storage medium automatically generating drawing based on EPLAN software | |
CN104376073A (en) | Database recovery method and device | |
CN105260446A (en) | Data query system and method | |
CN104462208B (en) | A kind of automatic offline method of CAM file | |
CN109033523A (en) | A kind of Assembly process specification generation System and method for based on three-dimensional CAD model | |
CN103942280A (en) | Automatic code generating method based on data structure | |
CN105183971A (en) | PCB borehole enlargement method | |
CN106980679A (en) | A kind of information system Domestic Database migration remodeling method and device | |
CN105808748A (en) | MIB (Management Information Base) version contrast method and device | |
CN111368353B (en) | CAD drawing die turning method, system, device and storage medium | |
CN104572730A (en) | Method and device for importing and exporting digital resources |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |