CN111625879B - Method capable of rapidly grabbing component Group on PCB - Google Patents

Method capable of rapidly grabbing component Group on PCB Download PDF

Info

Publication number
CN111625879B
CN111625879B CN202010380823.7A CN202010380823A CN111625879B CN 111625879 B CN111625879 B CN 111625879B CN 202010380823 A CN202010380823 A CN 202010380823A CN 111625879 B CN111625879 B CN 111625879B
Authority
CN
China
Prior art keywords
name text
pcb
script
component name
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.)
Active
Application number
CN202010380823.7A
Other languages
Chinese (zh)
Other versions
CN111625879A (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.)
Edadoc Co ltd
Original Assignee
Edadoc 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 Edadoc Co ltd filed Critical Edadoc Co ltd
Priority to CN202010380823.7A priority Critical patent/CN111625879B/en
Publication of CN111625879A publication Critical patent/CN111625879A/en
Application granted granted Critical
Publication of CN111625879B publication Critical patent/CN111625879B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/12Geometric CAD characterised by design entry means specially adapted for CAD, e.g. graphical user interfaces [GUI] specially adapted for CAD
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/30Circuit design
    • G06F30/39Circuit design at the physical level
    • G06F30/392Floor-planning or layout, e.g. partitioning or placement
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2115/00Details relating to the type of the circuit
    • G06F2115/12Printed 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 rapidly grabbing component groups on a PCB, which comprises the following steps: establishing a registry file; executing BAT script on the PCB source file, and establishing and opening a first element name text by the BAT script; copying and pasting the loop content of the schematic diagram in the PCB source file into a first component name text and closing the first component name text; after the BAT script detects that the first element name text is closed, reading the content of the first element name text to generate a second element name text; the BAT script divides the content of the name text of the second element according to the blank, and writes the divided content into an instruction file of PCB design software; executing the instruction file on the PCB design software through the VBS script, and running related actions by the PCB design software according to the instruction file. The invention has fewer operation steps, can greatly reduce manual misoperation, and improves the working efficiency of inspection staff.

Description

Method capable of rapidly grabbing component Group on PCB
Technical Field
The invention relates to the field of PCB boards, in particular to a method capable of rapidly grabbing component groups on a PCB.
Background
PCB (Printed Circuit Board) the Chinese name printed circuit board, also called printed circuit board, 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 connecting circuit pins on a silicon wafer to external connectors by wires for connection with other devices. The loops of the schematic diagram are reflected into the PCB board through the package and the wiring, and one package corresponds to one component. Group means Group meaning that the use of Group is very common in PCB design.
In the PCB design software CR5000, the layout design of a circuit requires that individual components be moved together, and the corresponding steps are: finding the component in CR5000 software according to the name of the component in the schematic diagram, and grabbing and moving the component. The steps are then repeated until all components of the loop are picked up. The method has a great deal of repeated work, and greatly influences the working efficiency.
The above disadvantages are to be improved.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention provides a method for rapidly grabbing a component Group on a PCB.
The technical scheme of the invention is as follows:
a method for quickly capturing a Group of components on a PCB, comprising the steps of:
step S1: establishing a registry file;
step S2: executing BAT script on the PCB source file, wherein the BAT script establishes and opens a first element name text;
step S3: copying and pasting the loop content of the schematic diagram in the PCB source file into the first component name text and closing the first component name text;
step S4: after the BAT script detects that the first component name text is closed, reading 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 component name text, divides the content of the second component name text according to spaces, and writes the divided content into instruction files of PCB design software;
step S6: executing the instruction file on the PCB design software through the VBS script, and running related actions by the PCB design software 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 a menu key of the BAT script, and constructing 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 component name text by the BAT script, and opening the first component name text by a notepad.
Further, the first component name text and the second component name text are notepad text.
The present invention according to the above-mentioned aspect is characterized in that the step S4 further includes: and after the BAT script reads the content of the first component name text, deleting invalid empty rows in the BAT script, and generating the second component name text.
The present invention according to the above aspect is characterized in that the step S6 further includes: 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:
the invention combines BAT script and VBS script to call the function of CR5000 software, replace engineer to execute repetitive actions of 'according to the name of the element of the schematic diagram → finding the element in CR5000 software → grabbing and moving the element', engineer only needs to copy and paste the loop in the schematic diagram into the text established by BAT foot, and the rest work is executed by BAT script instead; the invention has fewer operation steps, can greatly reduce the time of manual operation, and improves the working efficiency of inspection staff.
Drawings
FIG. 1 is a flow chart of the method of the present invention.
Detailed Description
The invention is further described below with reference to the drawings and embodiments:
as shown in fig. 1, a method for quickly capturing a Group of components on a PCB includes the following steps:
step S1: a registry file is built so that BAT scripts can run in a Windows system.
Specifically, a menu key of a mouse right button execution BAT script is constructed, a reg registry file is built, the content of editing a windows notepad is as follows:
[ HKEY_CLASSES_ROOT\Shell\quick-grab Module ]
[ HKEY_CLASSES_ROOT\Shell\quick grabbing Module\command ]
@="\"C:\\CompGroupMove.bat\"\"%1\""
Then double-click on the install. Reg makes the addition of the registry. The hkey_clips_root is information necessary for the windows application program to run, which is to add a mouse right-click menu quick grabbing module in the windows system, and execute BAT script (comproupmove. BAT) under the C disc after clicking the quick grabbing module.
Step S2: executing the BAT script on the PCB source file, the BAT script creates and opens a first element name text.
Specifically, a right key on a PCB source file is used for opening a quick capture module menu key, a BAT script is executed, the BAT script automatically establishes a first element name text DeviceName. Txt, and the first element name text DeviceName. Txt is opened through a windows notepad.
The detailed code is as follows:
echo (quick grab Module)
echo-------------------------------------------
echo ccancel^)>ini.log
echo^(groupmanager deletegroupid:"mey"^)ini.log
echo^(groupmanager addgroupid:"mey"grouping:"mey">>ini.log
echo[>>ini.log
After the editing of the TXT is completed, all notepad windows must be closed.
echo is in an edited state.
echo# pastes the device name underneath and saves and closes > devicename. Txt
echo.>>DeviceName.txt
The rem notepad program opens the devicename. Txt file
start notepad DeviceName.txt
Step S3: the loop content of the schematic in the PCB source file is copy-pasted into the first component name text and closed.
Specifically, the engineer manually boxes the contents of the loop in the schematic and then copies and pastes into the first component name text devicename.
Step S4: and after the BAT script detects that the first element name text is closed, reading the content of the first element name text, and generating a second element name text.
Specifically, after the BAT script detects that the first element name text DeviceNameRead. Txt is closed, the BAT script reads the content of the first element name text DeviceNameName. Txt, deletes invalid empty lines inside and regenerates the second element name text DeviceNameRead. Txt. The purpose of deleting invalid empty lines in the first component name text devicename.
The detailed code is as follows:
rem sets the read text start line
set/a sRow=1
set start=%sRow%
:mey_tasklist_capturemodule
the task list |find/i "notpad. Exe" > nul & & goto mey_task list_capturemodule |echo is edited.
Instruction generation.
echo-------------------------------------------
:mey_tasklistok_capturemodule
rem deletes text blank to quickly read results
if exist DeviceNameRead.txt del DeviceNameRead.txt
for/f"delims="%%a in(DeviceName.txt)do(
echo%%a>>DeviceNameRead.txt
)
In this embodiment, the first component name text and the second component name text are notepad text.
Step S5: the BAT script reads the content of the second component name text, divides the content of the second component name text according to spaces, and writes the divided content into instruction files of PCB design software.
Specifically, the BAT script reads the second element name text DeviceNameRead.txt, segments the content of the second element name text DeviceNameRead.txt according to spaces, and writes the segmented content into log instruction files of CR5000 software.
Figure BDA0002482011060000061
Step S6: executing the instruction file on the PCB design software through the VBS script, and running related actions by the PCB design software according to the instruction file.
Specifically, a VBS script is generated through the BAT script, then 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 engineers to execute repetitive actions of 'the name of a component according to a schematic diagram, searching the component in the CR5000 software, grabbing and moving the component'.
The detailed code is 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 completion-!
The invention has the beneficial effects that: the invention combines BAT script and VBS script to call the function of CR5000 software, replace engineer to execute repetitive actions of 'according to the name of the element of the schematic diagram → finding the element in CR5000 software → grabbing and moving the element', engineer only needs to copy and paste the loop in the schematic diagram into the text established by BAT foot, and the rest work is executed by BAT script instead; the invention has fewer operation steps, can greatly reduce the time of manual operation, and improves the working efficiency of inspection staff.
It will be understood that modifications and variations will be apparent to those skilled in the art from the foregoing description, and it is intended that all such modifications and variations be included within the scope of the following claims.
While the invention has been described above with reference to the accompanying drawings, it will be apparent that the implementation of the invention is not limited by the above manner, and it is within the scope of the invention to apply the inventive concept and technical solution to other situations as long as various improvements made by the inventive concept and technical solution are adopted, or without any improvement.

Claims (5)

1. A method for quickly capturing a Group of components on a PCB, comprising the steps of:
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 component name text;
step S3: copying and pasting the loop content of the schematic diagram in the PCB source file into the first component name text and closing the first component name text;
step S4: after the BAT script detects that the first component name text is closed, reading the content of the first component name text to generate a second component name text; after the BAT script reads the content of the first component name text, deleting invalid blank lines in the BAT script, and generating the second component name text;
step S5: the BAT script reads the content of the second component name text, divides the content of the second component name text according to spaces, and writes the divided content into instruction files of PCB design software;
step S6: executing the instruction file on the PCB design software through a VBS script, wherein the PCB design software operates related actions according to the instruction file; and generating a VBS script through the BAT script, and executing the instruction file on the PCB design software through the VBS script, wherein the PCB design software is CR5000 software.
2. The method of claim 1, wherein the step S1 further comprises: and constructing a right mouse button to execute a menu key of the BAT script, and constructing the registry file.
3. The method of 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 component name text by the BAT script, and opening the first component name text by a notepad.
4. The method of claim 3, wherein the first component name text and the second component name text are notepad text.
5. The method of claim 1, wherein the command file is a log command file.
CN202010380823.7A 2020-05-08 2020-05-08 Method capable of rapidly grabbing component Group on PCB Active CN111625879B (en)

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 CN111625879A (en) 2020-09-04
CN111625879B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113204940B (en) * 2021-05-25 2023-03-31 研祥智能科技股份有限公司 Processing method and system for PCB design
CN113721824B (en) * 2021-08-10 2024-05-03 深圳市一博科技股份有限公司 Method for setting library path by one key of CR5000 platform

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE69430967T2 (en) * 1993-04-30 2002-11-07 Xerox Corp Interactive copying system
CN100361130C (en) * 2004-03-11 2008-01-09 华为技术有限公司 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
CN104573243B (en) * 2015-01-14 2020-04-07 上海泰齐电子科技咨询有限公司 PCB design layout auditing 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

Also Published As

Publication number Publication date
CN111625879A (en) 2020-09-04

Similar Documents

Publication Publication Date Title
CN111625879B (en) Method capable of rapidly grabbing component Group on PCB
CN102087597B (en) J2EE and component set-based visualized development platform
CN110688145A (en) Android MVP code automatic generation method, device, medium and electronic equipment
CN102982217B (en) The treating method and apparatus of silk-screen
CN109543327B (en) Method and device for placing parts in PCB design
US20110154277A1 (en) Method and apparatus for generating substrate layout
CN112860278A (en) Front-end terminal tool relying on nodejs uniform packaging
CN111061486B (en) Android application program increment method
CN111857694A (en) Code editing method and device based on cloud native program development and deployment
CN111209717B (en) Method for respectively outputting surface layer device coordinates
CN116126690A (en) Debugging method and system for lightweight embedded system
CN103164570A (en) Circuit component lead-in method and device in circuit design
CN113139359B (en) Virtual simulation test method based on FPGA embedded processor
CN112417541B (en) Method, readable medium and device for changing all screen printing reference points on PCB
CN101414313A (en) Line layout system and method
CN112241268A (en) Keil engineering compiling method, system and equipment
CN109710537B (en) Intelligent automatic testing method and system
CN113434118A (en) Layered architecture system of concentrator based on Java platform
CN113721824B (en) Method for setting library path by one key of CR5000 platform
CN114721325B (en) Multi-platform multi-version PLC engineering compatible method
CN113205805B (en) Convenient table operation method assisted by voice plug-in
JP4006120B2 (en) Logic synthesis device
JP2001256075A (en) Developing system and developing method and recording medium
CN102012839A (en) Data interaction method, system and synchronous interaction module between DFM (design for manufacture) and EDA (electronic design automation)
JPH06223009A (en) Method for design data transfer between computers

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
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.

GR01 Patent grant
GR01 Patent grant