CN106815180A - A kind of method for being automatically obtained Altium software conversion of drawings - Google Patents

A kind of method for being automatically obtained Altium software conversion of drawings Download PDF

Info

Publication number
CN106815180A
CN106815180A CN201611112601.7A CN201611112601A CN106815180A CN 106815180 A CN106815180 A CN 106815180A CN 201611112601 A CN201611112601 A CN 201611112601A CN 106815180 A CN106815180 A CN 106815180A
Authority
CN
China
Prior art keywords
script
altium
automatically obtained
automatically
drawings
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.)
Pending
Application number
CN201611112601.7A
Other languages
Chinese (zh)
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.)
Wuhan Open Information Technology Ltd By Share Ltd
Original Assignee
Wuhan Open Information Technology Ltd By Share 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 Wuhan Open Information Technology Ltd By Share Ltd filed Critical Wuhan Open Information Technology Ltd By Share Ltd
Priority to CN201611112601.7A priority Critical patent/CN106815180A/en
Publication of CN106815180A publication Critical patent/CN106815180A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/30Circuit design
    • G06F30/39Circuit design at the physical level

Abstract

The present invention relates to a kind of method for being automatically obtained Altium software conversion of drawings.Comprise the following steps:S1:The operating procedure that tool mould fits PDF conversions in recording Altium is recorded using script;S2:The state and content being related to by each operating procedure in the image recognition of owner-drawing control and its driving instrument identification script recording instrument, and generate corresponding customizing script;S3:Using script interpreter according to the customizing script of generation, automatically each step is identified, and perform script completes operation.The method that the present invention is provided realizes PDF file destinations this function of being automatically converted on the machine intervened without personnel and meeted the requirements.

Description

A kind of method for being automatically obtained Altium software conversion of drawings
Technical field
The present invention relates to Altium Designer software conversion of drawings methods, Altium softwares are more particularly to automatically obtained Method of the conversion of drawings into pdf document.
Background technology
Altium Designer (hereinafter referred to as Altium) are the electronic product development systems of a set of integration, and it is by original Reason G- Design, circuit simulation, PCB draw editor, topological logic self routing, signal integrity analysis and design the technologies such as output It is merged, there is provided the solution of complete set, using quite varied.But because its drawing form is proprietary lattice Formula, causes there is certain difficulty in terms of drawing circulation, drawing exchange, drawing examination.
And PDF (the Portable Document Format) file formats of existing mainstream applications and application program, operation System, hardware are unrelated, and accurately can on a printer reduce color, character and image.These characteristics cause PDF in figure Using very convenient in the exchange of paper file.
It is the function of PDF to be integrated with its conversion of drawings in Altium at present, but step is comparatively laborious, Manual intervention is needed, therefore just brings following problem:
1st, existing PDF conversions are only capable of artificial operation completion, it is impossible to realize the integrated scheme between software;
If the 2, not buying the personalization component of Altium software vendors, the drawing of Altium cannot be turned with program mode (PM) It is changed to PDF;
3rd, cannot the Altium etc. of quick response user other similar integrated demands.
In addition for the conversion of PDF, in addition to artificial operation, currently there is Integrated Simulation operating technology to realize, Can by integrated interface, the technology such as crack, exploitation kit, file operate performing the associated external of designated software Into conversion operation.Current major technique has.
1st, network crawl technology.By finding correspondence webpage, interface, and instance object are reversely found, such as IHTMLElement, IHTMLDocument, IHTMLWindow object.These are by open interface, technology maturation.
2nd, software provides integrated interface in itself.Such as AutoCAD softwares, what is issued together with software has supporting exploitation work Tool, wherein second development interface or class will be provided, to realize the peripheral operation to software, and realizes integrated between software.
3rd, completely reverse file format.This method is parsed wherein interior by resolution file form in binary file Hold and carry out response operation.Such as OpenCAD has just cracked the widely used non-public file format such as DWG.
Due to not providing the second development interface that its drawing file is converted into pdf document directly in Altium softwares, So the 1st, 2 articles of technologies cannot be used, and it is business software additionally, due to Altium, its file format is also secrecy, by two Binary file conversion needs reverse its file format, and greatly, commercial value is not notable for R&D costs.
The content of the invention
In view of the above circumstances, the present invention proposes a kind of method for being automatically obtained Altium software conversion of drawings, in Altium Without providing its conversion of drawings on the premise of pdf document interface, the method for developing a set of simulated operation, union rule figure The identification technology of picture, judges the setting in transfer process and carries out corresponding operating, so as to realize in the machine intervened without personnel PDF file destinations this function of meeting the requirements is automatically converted on device.
A kind of method for being automatically obtained Altium software conversion of drawings, comprises the following steps:
S1:The operating procedure that tool mould fits PDF conversions in recording Altium is recorded using script;
S2:It is related to by each operating procedure in the image recognition of owner-drawing control and its driving instrument identification script recording instrument State and content, and generate corresponding customizing script;
S3:Using script interpreter according to the customizing script of generation, automatically each step is identified, and perform script is complete Into operation.
It is of the present invention it is a kind of be automatically obtained the method for Altium software conversion of drawings, script in the step S1 Each operating procedure performed when PDF in the manually operated Altium of tool records is changed is recorded, and with the side of script function Formula order is fitted together.
Described script function refers to, when being operated manually, to be recorded by script, the script function of generation.
It is of the present invention it is a kind of be automatically obtained the method for Altium software conversion of drawings, the step S2 includes:
S201, the image recognition of owner-drawing control and its driving instrument using imaging of interface, image recognition, gradation of image treatment it is right As identification technology in script recording instrument record the need for operate dialog control state be identified;
S202, by after identification, you can by different types of control state algorithm, identify the state of particular control, and root Corresponding customizing script is generated according to the result of identification.
Identifying Technique of Object in the step S201 is exactly according to the visible characteristics of objects breath of our institutes, from system In all objects for existing, destination object is identified.Putting magic arts according to identification can be divided into:Accurate identification and fuzzy diagnosis.Essence Really identification is the obvious characteristic information according to object, destination object is identified, not by any references object.Fuzzy diagnosis, It is, in the case where user can not be by accurately recognizing to obtain object, object to be obtained by a kind of reference object fuzzy diagnosis A kind of method.
Control state algorithm in the step S202 is determined by the feature and action type of each control.
Control state algorithm has two types at present.
(1) conventional push button control algorithm, this type algorithm need to only recognize its position and border, record click information.
(2) check box control algorithm, this type algorithm needs to obtain check box position and border, and is selected inside it special Levy area pixel point and check its color, whether be selected before operating and after operation with determining, thus judge the type of operation.
It is of the present invention it is a kind of be automatically obtained the method for Altium software conversion of drawings, pin in the step S3 This interpreter utilizes Object Operations technology, the customizing script of image recognition and its driving instrument generation according to owner-drawing control, from Dynamic ground is identified to each step, and the operation that responds.
Described Object Operations technology refers to after treating recongnition of objects out, simulated operation to be performed to object.Object Operation will be completed based on four kinds of technologies, and KeyEvent simulation, mouse event simulation, system message is acted grand by system The identification and operation of object, can just simulate various operations of the people to software, so as to realize automation.
Brief description of the drawings
Fig. 1 is a kind of schematic diagram of the method for being automatically obtained Altium software conversion of drawings.
Fig. 2 is the schematic diagram of script recording process.
Fig. 3 is the schematic diagram of script interpretation process.
Specific embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, below with reference to The embodiment of Description of Drawings is exemplary, is only used for explaining the present invention, and is not considered as limiting the invention.
A kind of method for being automatically obtained Altium software conversion of drawings, comprises the following steps:
S1:The operating procedure that tool mould fits PDF conversions in recording Altium is recorded using script;
S2:It is related to by each operating procedure in the image recognition of owner-drawing control and its driving instrument identification script recording instrument State and content, and generate corresponding customizing script;
S3:Using script interpreter according to the customizing script of generation, automatically each step is identified, and perform script is complete Into operation.
It is of the present invention it is a kind of be automatically obtained the method for Altium software conversion of drawings, pin in the step S1 Each operating procedure performed when PDF is changed in the manually operated Altium of this recording tool records, and with script function Mode order is fitted together.
Described script function refers to, when being operated manually, to be recorded by script, the script function of generation.
For example there is the operation that two buttons are pressed, recorded by script, script function can be generated:
pEdit.Run("ComKeyClick","Shift+.");
pEdit.Run("ComKeyClick",".")。
These orders are exactly script function, by the explanation of script interpreter, you can to realize that automatic imitation drawing switchs to Actuation of keys in PDF.
It is of the present invention it is a kind of be automatically obtained the method for Altium software conversion of drawings, the step S2 includes: S201, the image recognition of owner-drawing control and its driving instrument are known using objects such as imaging of interface, image recognition, gradation of image treatment Other technology in script recording instrument record the need for operate dialog control state be identified;
S202, by after identification, you can by different types of control state algorithm, identify the state of particular control, according to The result of identification generates corresponding customizing script.
The Identifying Technique of Object of the step S201 is exactly, according to the visible characteristics of objects breath of our institutes, to be deposited from system All objects in, identify destination object.
Putting magic arts according to identification can be divided into:Accurate identification and fuzzy diagnosis.Accurate identification is the obvious spy according to object Reference ceases, and destination object is identified, not by any references object.Such as object titles, the typonym of object, object is one Call number in group objects etc. information.
Fuzzy diagnosis, is in the case where user can not be by accurately recognizing to obtain object, by a kind of reference object Fuzzy diagnosis obtains a kind of method of object.
The control state algorithm of the step S202 is determined by the feature and action type of each control.Control state Algorithm has two types at present.
(1) conventional push button control algorithm, this type algorithm need to only recognize its position and border, record click information.
(2) check box control algorithm, this type algorithm needs to obtain check box position and border, and is selected inside it special Levy area pixel point and check its color, whether be selected before operating and after operation with determining, thus judge the type of operation.
For example, recognizing to judge whether it is selected state by the pixel to check box ad-hoc location.This needs When certain dialog box is state of activation, the control of the dialog box is enumerated one by one, by image recognition algorithm of the invention, select Go out the miniperipheral rectangle of specific check box, then further recognize, judge the selected state of the check box.
It is of the present invention it is a kind of be automatically obtained the method for Altium software conversion of drawings, script in the step S3 Interpreter utilizes Object Operations technology, the customizing script of image recognition and its driving instrument generation according to owner-drawing control, automatically Ground is identified to each step, and the operation that responds.
Described Object Operations technology refers to after treating recongnition of objects out, simulated operation, such as mould to be performed to object Intend mouse to be clicked, simulating keyboard is to being input into system characters string etc. in destination object.Object Operations will be based on four kinds of skills Art is completed, and KeyEvent simulation, mouse event simulation, system message acts grand identification and operation by system object, Various operations of the people to software can be just simulated, so as to realize automation.
For example:There is bar sentence pEdit.run (comkeyclick, "/") in script.PEdit is exactly a volume on interface Frame is collected, is exactly an object, this script is exactly the function of completing to be input into this edit box "/".Final result is exactly script solution Device perform script is released, completes to be automatically brought into operation.
Implement a kind of present invention method for being automatically obtained Altium software conversion of drawings of offer to have the advantages that:
1st, the integrated software interactive experience of client is realized;
2nd, the development cost of the integrated demand of Altium softwares greatly reduces;
3rd, conversion of drawings into pdf document has been greatly reduced by the time of artificial conversion by automatized script;
4th, PDF file destinations this function of being automatically converted on the machine intervened without personnel and meeted the requirements is realized.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means to combine specific features, structure, material or spy that the embodiment or example are described Point is contained at least one embodiment of the invention or example.In this manual, to the schematic representation of above-mentioned term not Necessarily refer to identical embodiment or example.And, the specific features of description, structure, material or feature can be any One or more embodiments or example in combine in an appropriate manner.
Although an embodiment of the present invention has been shown and described, it will be understood by those skilled in the art that:Not Can these embodiments be carried out with various changes, modification, replacement and modification in the case of departing from principle of the invention and objective, this The scope of invention is limited by claim and its equivalent.

Claims (5)

1. a kind of method for being automatically obtained Altium software conversion of drawings, it is characterised in that comprise the following steps:
S1:The operating procedure that tool mould fits PDF conversions in recording Altium is recorded using script;
S2:It is related to by each operating procedure in the image recognition of owner-drawing control and its driving instrument identification script recording instrument State and content, and generate corresponding customizing script;
S3:Using script interpreter according to the customizing script of generation, automatically each step is identified, and perform script is complete Into operation.
2. the method for being automatically obtained Altium software conversion of drawings according to claim 1, it is characterised in that the step Script in S1 records each operating procedure performed when PDF in the manually operated Altium of tool records is changed, and with pin The mode order of this function is fitted together.
3. the method for being automatically obtained Altium software conversion of drawings according to claim 1, it is characterised in that the step S2 includes:
S201, the image recognition of owner-drawing control and its driving instrument are using imaging of interface, image recognition, gradation of image process object Identification technology in script recording instrument record the need for operate dialog control state be identified;
S202, by after identification, you can by control state algorithm, identify the state of particular control, according to identification result Generate corresponding customizing script.
4. the method for being automatically obtained Altium software conversion of drawings according to claim 1, it is characterised in that the step Script interpreter in S3 utilizes Object Operations technology, the customization of image recognition and its driving instrument generation according to owner-drawing control Script, is automatically identified to each step, and the operation that responds.
5. the method for being automatically obtained Altium software conversion of drawings according to claim 3, it is characterised in that the step Control state algorithm in S202 includes conventional push button control algorithm and check box control algorithm.
CN201611112601.7A 2016-12-06 2016-12-06 A kind of method for being automatically obtained Altium software conversion of drawings Pending CN106815180A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611112601.7A CN106815180A (en) 2016-12-06 2016-12-06 A kind of method for being automatically obtained Altium software conversion of drawings

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611112601.7A CN106815180A (en) 2016-12-06 2016-12-06 A kind of method for being automatically obtained Altium software conversion of drawings

Publications (1)

Publication Number Publication Date
CN106815180A true CN106815180A (en) 2017-06-09

Family

ID=59106135

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611112601.7A Pending CN106815180A (en) 2016-12-06 2016-12-06 A kind of method for being automatically obtained Altium software conversion of drawings

Country Status (1)

Country Link
CN (1) CN106815180A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111507057A (en) * 2020-04-22 2020-08-07 深圳市亚派光电器件有限公司 Method and device for outputting PADS drawing and computer readable storage medium
CN112650493A (en) * 2020-12-25 2021-04-13 安徽鸿程光电有限公司 Method for generating control state image, using method, device and electronic equipment
CN114492293A (en) * 2022-02-10 2022-05-13 深圳市亿道电子科技有限公司 Automatic circuit splicing system and method based on altium software

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101388003A (en) * 2008-10-07 2009-03-18 广东威创视讯科技股份有限公司 High speed file-conversing method
CN101604286A (en) * 2008-06-11 2009-12-16 中兴通讯股份有限公司 A kind of method for generating keyword-driving table
CN104217396A (en) * 2014-09-11 2014-12-17 广西桂能软件有限公司 DWG (drawing) file format conversion method
CN104268211A (en) * 2014-09-23 2015-01-07 河海大学常州校区 Online engineering document to PDF document conversion method
CN104850668A (en) * 2014-02-13 2015-08-19 深圳崇达多层线路板有限公司 Method and apparatus for computer aided design
US20160148538A1 (en) * 2014-11-20 2016-05-26 Sultan Qaboos University Method and system to convert portable document format file to braille

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101604286A (en) * 2008-06-11 2009-12-16 中兴通讯股份有限公司 A kind of method for generating keyword-driving table
CN101388003A (en) * 2008-10-07 2009-03-18 广东威创视讯科技股份有限公司 High speed file-conversing method
CN104850668A (en) * 2014-02-13 2015-08-19 深圳崇达多层线路板有限公司 Method and apparatus for computer aided design
CN104217396A (en) * 2014-09-11 2014-12-17 广西桂能软件有限公司 DWG (drawing) file format conversion method
CN104268211A (en) * 2014-09-23 2015-01-07 河海大学常州校区 Online engineering document to PDF document conversion method
US20160148538A1 (en) * 2014-11-20 2016-05-26 Sultan Qaboos University Method and system to convert portable document format file to braille

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111507057A (en) * 2020-04-22 2020-08-07 深圳市亚派光电器件有限公司 Method and device for outputting PADS drawing and computer readable storage medium
CN111507057B (en) * 2020-04-22 2023-10-03 深圳市亚派光电器件有限公司 PADS drawing output method and device and computer readable storage medium
CN112650493A (en) * 2020-12-25 2021-04-13 安徽鸿程光电有限公司 Method for generating control state image, using method, device and electronic equipment
CN114492293A (en) * 2022-02-10 2022-05-13 深圳市亿道电子科技有限公司 Automatic circuit splicing system and method based on altium software

Similar Documents

Publication Publication Date Title
US11003422B2 (en) Methods and systems for visual programming using polymorphic, dynamic multi-dimensional structures
US9430455B2 (en) Methods and systems for intelligent form-filling and electronic document generation
US9501595B2 (en) Graphical design verification environment generator
Ahmed et al. Model-based user interface engineering with design patterns
CN105264474A (en) Machine vision system program editing environment including operating context aware copy and paste feature
CN104899132B (en) Application software testing method, apparatus and system
CN106815180A (en) A kind of method for being automatically obtained Altium software conversion of drawings
JP2018514878A (en) A computer-implemented method for displaying software-type applications based on design specifications
CN104395843B (en) Automatic operation system and operation automation method
CN112416788A (en) Hierarchical standard Web application UI automatic test method
CN114385150B (en) Low code development method based on intelligent engine
CN111694563B (en) Visual design system and method for user interface mode
Ammar A usability model for mobile applications generated with a model-driven approach
WO2021087818A1 (en) Method, apparatus and system for capturing knowledge in software
US8229224B2 (en) Hardware management based on image recognition
Kanai et al. 3D digital prototyping and usability enhancement of information appliances based on UsiXML
JP2002014845A (en) Method for automatically generating test script part and device for the same
JP6775740B1 (en) Design support device, design support method and design support program
CN103399817B (en) Based on module modeling and model inspection integral system detection means
KR20120017301A (en) System and method for making the objective test paper used in on-line
JP2006065364A (en) Information management method, program, and device
JP3557896B2 (en) Configuration tool for control design
Wahab et al. Interactive Visualization to Enhance Learning Experienced on Machining Process of EDM Wire Cut Through Augmented Reality (AR)
CN115357502A (en) Server interface testing method, device, equipment and storage medium
KR100400360B1 (en) System for automatic generating program products and method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170609

RJ01 Rejection of invention patent application after publication