CN111625879A - Method capable of rapidly grabbing component Group on PCB - Google Patents
Method capable of rapidly grabbing component Group on PCB Download PDFInfo
- Publication number
- CN111625879A CN111625879A CN202010380823.7A CN202010380823A CN111625879A CN 111625879 A CN111625879 A CN 111625879A CN 202010380823 A CN202010380823 A CN 202010380823A CN 111625879 A CN111625879 A CN 111625879A
- Authority
- CN
- China
- Prior art keywords
- name text
- pcb
- script
- component
- file
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/10—Geometric CAD
- G06F30/12—Geometric CAD characterised by design entry means specially adapted for CAD, e.g. graphical user interfaces [GUI] specially adapted for CAD
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/30—Circuit design
- G06F30/39—Circuit design at the physical level
- G06F30/392—Floor-planning or layout, e.g. partitioning or placement
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2115/00—Details relating to the type of the circuit
- G06F2115/12—Printed circuit boards [PCB] or multi-chip modules [MCM]
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Geometry (AREA)
- Computer Hardware Design (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Evolutionary Computation (AREA)
- Architecture (AREA)
- Human Computer Interaction (AREA)
- Computational Mathematics (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Pure & Applied Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a method capable of quickly grabbing a component Group on a PCB, which comprises the following steps: establishing a registry file; executing a BAT script on a PCB source file, wherein the BAT script establishes and opens a first element device name text; copying and pasting the loop contents of the schematic diagram in the PCB source file into a first component name text and closing the first component name text; after detecting that the first component name text is closed, the BAT script reads the content of the first component name text to generate a second component name text; dividing the content of the second element device name text according to the blank space by the BAT script, and writing the divided content into an instruction file of PCB design software; and executing the instruction file on the PCB design software through the VBS script, and operating the related action by the PCB design software according to the instruction file. The invention has less operation steps, can greatly reduce manual misoperation and simultaneously improves the working efficiency of inspectors.
Description
Technical Field
The invention relates to the field of PCBs (printed circuit boards), in particular to a method capable of quickly grabbing component groups on a PCB.
Background
Pcb (printed Circuit board), which is called printed Circuit board in chinese, is an important electronic component, is a support for electronic components, and is a carrier for electrical connection of electronic components. It is called a "printed" circuit board because it is made using electronic printing. Packaging refers to the routing of circuit pins on a silicon die to external connections for connection to other devices. The circuit of the schematic diagram is reflected in the PCB board by packaging and wiring, and one package corresponds to one component. Group is meant to be a Group, and its application is very common in PCB design.
In the PCB design software CR5000, the layout design corresponding to one circuit needs to move the components together, and the corresponding steps are: component name according to schematic → finding the component in CR5000 software → grabbing and moving the component. And then repeating the steps until all the components in the loop are grabbed. The method has a large amount of repetitive work, and greatly influences the working efficiency.
The above disadvantages need to be improved.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention provides a method capable of quickly grabbing a component Group on a PCB.
The technical scheme of the invention is as follows:
a method for rapidly grabbing a component Group on a PCB is characterized by comprising the following steps:
step S1: establishing a registry file;
step S2: executing a BAT script on a PCB source file, wherein the BAT script establishes and opens a first element device name text;
step S3: copying and pasting the loop contents of the schematic diagram in the PCB source file into the first component name text and closing the loop contents;
step S4: after detecting that the first component name text is closed, the BAT script reads the content of the first component name text to generate a second component name text;
step S5: the BAT script reads the content of the second element device name text, divides the content of the second element device name text according to a blank space, and writes the divided content into an instruction file of PCB design software;
step S6: and executing the instruction file on the PCB design software through a VBS script, wherein the PCB design software runs related actions according to the instruction file.
The present invention according to the above aspect is characterized in that the step S1 further includes: and constructing a right mouse button to execute the menu button of the BAT script, and establishing the registry file.
Further, the step S2 further includes: and opening the menu key by a right key on the PCB source file, executing the BAT script, automatically establishing the first element device name text by the BAT script, and opening the first element device name text through a notebook.
Further, the first component name text and the second component name text are both notepad texts.
The present invention according to the above aspect is characterized in that the step S4 further includes: and after the BAT script reads the content of the first element device name text, deleting the invalid empty lines in the first element device name text, and regenerating the second element device name text.
The present invention according to the above aspect is characterized in that the step S6 further includes: and generating a VBS script through the BAT script, and executing the instruction file on the PCB design software through the VBS script.
The invention according to the above scheme is characterized in that the PCB design software is CR5000 software.
Further, the instruction file is a log instruction file.
According to the invention of the scheme, the beneficial effects of the invention are as follows:
according to the method, the functions of CR5000 software are called by combining a BAT script and a VBS script to replace a repetitive action of an engineer of 'searching for a component according to a schematic diagram → in CR5000 software → grabbing and moving the component', the engineer only needs to copy and paste a loop in the schematic diagram into a text established by a BAT foot, and the rest work is executed by the BAT script; the invention has less operation steps, can greatly reduce the time of manual operation and simultaneously improves the working efficiency of inspectors.
Drawings
FIG. 1 is a flow chart of the method of the present invention.
Detailed Description
The invention is further described with reference to the following figures and embodiments:
as shown in fig. 1, a method for quickly grabbing a component Group on a PCB includes the following steps:
step S1: and establishing a registry file so that the BAT script can run in the Windows system.
Specifically, a menu button for executing the BAT script by a right mouse button is constructed, and a reg registry file install is established, wherein the editing content of the windows notepad is as follows:
[ HKEY _ CLASSES _ ROOT \ shell \ quick grabbing module ]
[ HKEY _ CLASSES _ ROOT \ shell \ quick grabbing module \ command ]
@="\"C:\\CompGroupMove.bat\"\"%1\""
Reg then double-clicks in order to make the addition of the registry. The HKEY _ CLASSES _ ROOT is information necessary for the operation of the windows application, and is intended to add a right mouse button menu fast capture module in the windows system, and execute BAT script (comp groupmove.
Step S2: executing BAT script on PCB source file, and creating and opening a first element device name text by BAT foot.
Specifically, a menu key of the quick capture module is opened on a right key on a PCB source file, a BAT script is executed, the BAT script automatically establishes a first element name text DeviceName.
The detailed codes are as follows:
echo [ fast grasping block ]
echo-------------------------------------------
echo ccancel^)>ini.log
echo^(groupmanager deletegroupid:"mey"^)ini.log
echo^(groupmanager addgroupid:"mey"grouping:"mey">>ini.log
echo[>>ini.log
After echo [ cue ] completes the TXT edit, all notepad windows must be closed.
echo is in an editing state.
echo # pastes device name down and saves and shuts > devicename
echo.>>DeviceName.txt
rem notepad program opens DeviceName
start notepad DeviceName.txt
Step S3: copy and paste the loop contents of the schematic in the PCB source file into the first componentware name text and close it.
Specifically, the engineer manually frames the contents of the loop in the schematic, then copies and pastes into the first componential name text devicename.
Step S4: and after detecting that the first component name text is closed, the BAT script reads the content of the first component name text to generate a second component name text.
Specifically, after detecting that the first component name text devicename.txt is closed, the BAT script reads the content of the first component name text devicename.txt, deletes the invalid empty row therein, and generates the second component name text devicenameRead.txt. Wherein the purpose of deleting invalid empty lines in the first component name text devicename.
The detailed codes are as follows:
rem setting reads the text start line
set/a sRow=1
set start=%sRow%
:mey_tasklist_capturemodule
tasklist | find/i "no tepad. exe" > nul & & gotmey _ tasklist _ capturemodule | | | echo completes the editing.
In instruction generation.
echo-------------------------------------------
:mey_tasklistok_capturemodule
rem deletion of empty lines of text to read results quickly
if exist DeviceNameRead.txt del DeviceNameRead.txt
for/f"delims="%%a in(DeviceName.txt)do(
echo%%a>>DeviceNameRead.txt
)
In this embodiment, the first and second component name texts are both notepad texts.
Step S5: and the BAT script reads the content of the second element device name text, divides the content of the second element device name text according to the blank space, and writes the divided content into an instruction file of the PCB design software.
Specifically, the BAT script reads the second componential name text devicenameread.txt, divides the content of the second componential name text devicenameread.txt according to the blank space, and writes the divided content into the log instruction file of the CR5000 software.
Step S6: and executing the instruction file on the PCB design software through the VBS script, and operating the related action by the PCB design software according to the instruction file.
Specifically, a VBS script is generated through a BAT script, a log instruction file is executed on CR5000 software through the VBS script, and the CR5000 software runs related actions according to the log instruction file so as to replace an engineer to execute repeated actions of searching for the component according to the component name of a schematic diagram → finding the component in the CR5000 software → grabbing and moving the component.
The detailed codes are as follows:
echo.Set mey=
WScript.CreateObject^("WScript.Shell"^)>C:\mey_vbs_execute_windows.vbs
echo.mey.AppActivate"Placement/Wiring
Tool(%~dpn1)">>C:\mey_vbs_execute_windows.vbs
echo.mey.sendkeys"{esc}">>C:\mey_vbs_execute_windows.vbs
echo.WScript.Sleep 500>>C:\mey_vbs_execute_windows.vbs
echo.mey.sendkeys"{x}">>C:\mey_vbs_execute_windows.vbs
cscript.exe/e:vbscript C:\mey_vbs_execute_windows.vbs>nul
echo execution complete!
The invention has the beneficial effects that: according to the method, the functions of CR5000 software are called by combining a BAT script and a VBS script to replace a repetitive action of an engineer of 'searching for a component according to a schematic diagram → in CR5000 software → grabbing and moving the component', the engineer only needs to copy and paste a loop in the schematic diagram into a text established by a BAT foot, and the rest work is executed by the BAT script; the invention has less operation steps, can greatly reduce the time of manual operation and simultaneously improves the working efficiency of inspectors.
It will be understood that modifications and variations can be made by persons skilled in the art in light of the above teachings and all such modifications and variations are intended to be included within the scope of the invention as defined in the appended claims.
The invention is described above with reference to the accompanying drawings, which are illustrative, and it is obvious that the implementation of the invention is not limited in the above manner, and it is within the scope of the invention to adopt various modifications of the inventive method concept and technical solution, or to apply the inventive concept and technical solution to other fields without modification.
Claims (8)
1. A method for rapidly grabbing a component Group on a PCB is characterized by comprising the following steps:
step S1: establishing a registry file;
step S2: executing a BAT script on a PCB source file, wherein the BAT script establishes and opens a first element device name text;
step S3: copying and pasting the loop contents of the schematic diagram in the PCB source file into the first component name text and closing the loop contents;
step S4: after detecting that the first component name text is closed, the BAT script reads the content of the first component name text to generate a second component name text;
step S5: the BAT script reads the content of the second element device name text, divides the content of the second element device name text according to a blank space, and writes the divided content into an instruction file of PCB design software;
step S6: and executing the instruction file on the PCB design software through a VBS script, wherein the PCB design software runs related actions according to the instruction file.
2. The method for rapidly grabbing a component Group on a PCB according to claim 1, wherein the step S1 further comprises: and constructing a right mouse button to execute the menu button of the BAT script, and establishing the registry file.
3. The method for rapidly grabbing a component Group on a PCB according to claim 2, wherein the step S2 further comprises: and opening the menu key by a right key on the PCB source file, executing the BAT script, automatically establishing the first element device name text by the BAT script, and opening the first element device name text through a notebook.
4. The method for rapidly grabbing a component Group on a PCB according to claim 3, wherein the first component name text and the second component name text are both notepad texts.
5. The method for rapidly grabbing a component Group on a PCB according to claim 1, wherein the step S4 further comprises: and after the BAT script reads the content of the first element device name text, deleting the invalid empty lines in the first element device name text, and regenerating the second element device name text.
6. The method for rapidly grabbing a component Group on a PCB according to claim 1, wherein the step S6 further comprises: and generating a VBS script through the BAT script, and executing the instruction file on the PCB design software through the VBS script.
7. The method for rapidly grabbing a component Group on a PCB according to claim 1, wherein the PCB design software is CR5000 software.
8. The method for rapidly grabbing a component Group on a PCB according to claim 7, wherein the command file is a log command file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010380823.7A CN111625879B (en) | 2020-05-08 | 2020-05-08 | Method capable of rapidly grabbing component Group on PCB |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010380823.7A CN111625879B (en) | 2020-05-08 | 2020-05-08 | Method capable of rapidly grabbing component Group on PCB |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111625879A true CN111625879A (en) | 2020-09-04 |
CN111625879B CN111625879B (en) | 2023-05-23 |
Family
ID=72259068
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010380823.7A Active CN111625879B (en) | 2020-05-08 | 2020-05-08 | Method capable of rapidly grabbing component Group on PCB |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111625879B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113204940A (en) * | 2021-05-25 | 2021-08-03 | 研祥智能科技股份有限公司 | Processing method and system for PCB design |
CN113721824A (en) * | 2021-08-10 | 2021-11-30 | 深圳市一博科技股份有限公司 | Method for one-key setting of library path of CR5000 platform |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5511148A (en) * | 1993-04-30 | 1996-04-23 | Xerox Corporation | Interactive copying system |
CN1667620A (en) * | 2004-03-11 | 2005-09-14 | 华为技术有限公司 | Method and apparatus for improving PCB design efficiency |
CN102929517A (en) * | 2012-11-08 | 2013-02-13 | 北京锐安科技有限公司 | Triggering prompt method in mouse click method |
CN103164570A (en) * | 2013-02-20 | 2013-06-19 | 曙光信息产业(北京)有限公司 | Circuit component lead-in method and device in circuit design |
CN104199873A (en) * | 2014-08-19 | 2014-12-10 | 深圳市兴森快捷电路科技股份有限公司 | PCB design drawing device search method and system based on PDF circuit diagram |
CN104573243A (en) * | 2015-01-14 | 2015-04-29 | 上海泰齐电子科技咨询有限公司 | PCB design layout audit device |
CN104915466A (en) * | 2015-02-11 | 2015-09-16 | 深圳市一博科技有限公司 | Design method for achieving automatic page layout according to schematic diagram |
CN105224719A (en) * | 2015-09-06 | 2016-01-06 | 浪潮集团有限公司 | A kind of method realizing same page part and sort out fast |
CN108460179A (en) * | 2018-01-11 | 2018-08-28 | 郑州云海信息技术有限公司 | Belong to the method and system of line in pcb board design using quick key switch GND |
-
2020
- 2020-05-08 CN CN202010380823.7A patent/CN111625879B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5511148A (en) * | 1993-04-30 | 1996-04-23 | Xerox Corporation | Interactive copying system |
CN1667620A (en) * | 2004-03-11 | 2005-09-14 | 华为技术有限公司 | Method and apparatus for improving PCB design efficiency |
CN102929517A (en) * | 2012-11-08 | 2013-02-13 | 北京锐安科技有限公司 | Triggering prompt method in mouse click method |
CN103164570A (en) * | 2013-02-20 | 2013-06-19 | 曙光信息产业(北京)有限公司 | Circuit component lead-in method and device in circuit design |
CN104199873A (en) * | 2014-08-19 | 2014-12-10 | 深圳市兴森快捷电路科技股份有限公司 | PCB design drawing device search method and system based on PDF circuit diagram |
CN104573243A (en) * | 2015-01-14 | 2015-04-29 | 上海泰齐电子科技咨询有限公司 | PCB design layout audit device |
CN104915466A (en) * | 2015-02-11 | 2015-09-16 | 深圳市一博科技有限公司 | Design method for achieving automatic page layout according to schematic diagram |
CN105224719A (en) * | 2015-09-06 | 2016-01-06 | 浪潮集团有限公司 | A kind of method realizing same page part and sort out fast |
CN108460179A (en) * | 2018-01-11 | 2018-08-28 | 郑州云海信息技术有限公司 | Belong to the method and system of line in pcb board design using quick key switch GND |
Non-Patent Citations (1)
Title |
---|
李强: "计量器具溯源信息管理中扫描文件自动改名功能的实现" * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113204940A (en) * | 2021-05-25 | 2021-08-03 | 研祥智能科技股份有限公司 | Processing method and system for PCB design |
CN113204940B (en) * | 2021-05-25 | 2023-03-31 | 研祥智能科技股份有限公司 | Processing method and system for PCB design |
CN113721824A (en) * | 2021-08-10 | 2021-11-30 | 深圳市一博科技股份有限公司 | Method for one-key setting of library path of CR5000 platform |
CN113721824B (en) * | 2021-08-10 | 2024-05-03 | 深圳市一博科技股份有限公司 | Method for setting library path by one key of CR5000 platform |
Also Published As
Publication number | Publication date |
---|---|
CN111625879B (en) | 2023-05-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111625879A (en) | Method capable of rapidly grabbing component Group on PCB | |
US20030125925A1 (en) | Batch editor for netlists described in a hardware description language | |
US20100106274A1 (en) | Wiring design apparatus | |
CN109543327B (en) | Method and device for placing parts in PCB design | |
CN112860278A (en) | Front-end terminal tool relying on nodejs uniform packaging | |
US20110154277A1 (en) | Method and apparatus for generating substrate layout | |
CN112235949A (en) | Method, device and equipment for digging differential via hole in printed circuit board design | |
CN110187886A (en) | A kind of documentation website generation method and terminal | |
US20070156934A1 (en) | High-speed PCI Interface System and A Reset Method Thereof | |
CN105224719A (en) | A kind of method realizing same page part and sort out fast | |
CN111209717B (en) | Method for respectively outputting surface layer device coordinates | |
CN106775779A (en) | A kind of automatic method for assigning via net attributes in Allegro softwares | |
CN115758963A (en) | Device, method and system for processing printing information in chip EDA simulation | |
CN112416444B (en) | Board switching control method, device, equipment and medium | |
CN113627121B (en) | Chip design data processing method, electronic device and computer readable medium | |
CN112417541B (en) | Method, readable medium and device for changing all screen printing reference points on PCB | |
CN101201866A (en) | System and method for managing circuit laying document | |
CN109710537B (en) | Intelligent automatic testing method and system | |
CN112241268A (en) | Keil engineering compiling method, system and equipment | |
CN113721824B (en) | Method for setting library path by one key of CR5000 platform | |
US6789234B2 (en) | Method and system for a timing based logic entry | |
CN109857380A (en) | A kind of workflow file compiling method and device | |
CN113205805B (en) | Convenient table operation method assisted by voice plug-in | |
CN111814416B (en) | Method for automatically converting ASIC memory into IP core of FPGA and readable medium | |
CN118094678A (en) | Data output method, input method, output processing system and input processing system |
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 | ||
CB02 | Change of applicant information |
Address after: 11F, Metro financial technology building, 9819 Shennan Avenue, Shenda community, Yuehai street, Nanshan District, Shenzhen, Guangdong 518000 Applicant after: EDADOC Co.,Ltd. Address before: 518000 Kangjia R&D Building, 28 Sci-tech South 12 Road, Nanshan District, Shenzhen City, Guangdong Province, 12H-12I, 12th floor Applicant before: EDADOC Co.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |