CN117634402A - Method, device, equipment and storage medium for realizing automatic replacement of PCB (printed circuit board) via holes - Google Patents

Method, device, equipment and storage medium for realizing automatic replacement of PCB (printed circuit board) via holes Download PDF

Info

Publication number
CN117634402A
CN117634402A CN202311648076.0A CN202311648076A CN117634402A CN 117634402 A CN117634402 A CN 117634402A CN 202311648076 A CN202311648076 A CN 202311648076A CN 117634402 A CN117634402 A CN 117634402A
Authority
CN
China
Prior art keywords
replaced
replacement
objects
selection
pcb
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
CN202311648076.0A
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.)
Kunshan Yanxiang Intelligent Technology Co ltd
Original Assignee
Kunshan Yanxiang Intelligent Technology 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 Kunshan Yanxiang Intelligent Technology Co ltd filed Critical Kunshan Yanxiang Intelligent Technology Co ltd
Priority to CN202311648076.0A priority Critical patent/CN117634402A/en
Publication of CN117634402A publication Critical patent/CN117634402A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The application provides a method for realizing automatic replacement of a PCB via hole, which comprises the following steps: acquiring a via replacement SKILL program; the via replacement SKILL program is used for acquiring a via object to be replaced, which is obtained by a user after one-time selection operation or multiple continuous selection operations in the current PCB design, and replacing the via object to be replaced with a target sample via according to the target sample via selected by the user; wherein each selection operation is one of a single-object selection operation and a multi-object selection operation; setting a target PCB design software, and automatically loading a via hole replacement SKILL program when the target PCB design software is started; creating a first-level target menu item corresponding to a via replacement SKILL program; and if the fact that the primary target menu item is clicked and selected is detected, starting the via replacement SKILL program to realize automatic replacement of the PCB via. The method and the device improve the flexibility and the replacement efficiency of the replacement of the PCB via holes, thereby improving the design efficiency of the PCB.

Description

Method, device, equipment and storage medium for realizing automatic replacement of PCB (printed circuit board) via holes
Technical Field
The present disclosure relates to the field of electronic technologies, and in particular, to a method, an apparatus, a device, and a storage medium for implementing automatic replacement of a PCB via.
Background
In PCB design, VIA is one of the important components of a multi-layer PCB, and different VIA may be used depending on various requirements of the design. In the case of PCB design using PCB design software such as Allegro software, it is inevitable that some unsuitable VIA is used in wiring, and the unsuitable VIA needs to be replaced with a suitable VIA when a later inspection is found. The prior art typically achieves via replacement by:
the method one, click the multilevel menu command in Allegro first to realize waiting to replace manual deletion of VIA, then set up the new VIA through starting the line command.
The second method uses the Replace command in Allegro to Replace VIA, and specifically comprises the following steps:
1) Selecting Tools command from Allegro's menu command
2) Selecting a Padstack command in the drop-down option of the Tools command
3) Selecting a Replace command in the drop-down option of a Padstack command
4) After entering the replay command, the old VIA name and the new VIA name are input, and then the replay is clicked to finish the replacement.
The third method uses the Replace pad command in the Allegro mouse right button menu to Replace the VIA, and specifically comprises the following steps:
1) The design object panel is emptied, and only the Vias is checked
2) Old VIA to be replaced is selected by one-time framing of left mouse button
3) Right key select Replacing Pladstack command on target VIA
4) Selecting Selected instance command in drop-down menu of Replace place command
5) Selecting a new target VIA in a pop-up pad window to complete replacement
In the first method, the original VIA needs to be deleted firstly, then a new VIA is beaten again by setting a wiring command, the steps are complex, and the replacement efficiency is low; in the second method, the replay command is located in the 3-level command menu bar of Allegro, two parameters are required to be input after the call, the call step is complicated, and when the replay command is replaced, all the old VIAs named in the same way in the PCB are replaced by new VIAs, so that the requirements are fewer in the design of the PCB, and the flexibility and the practicability are poor; in the third method, the design object panel is required to be set firstly, replacement is realized through a second-level command of a right-click menu of the mouse after the object VIA is selected, and the replacement parameter command can only be selected through one frame selection of the mouse when the object VIA is selected, and the replacement parameter command is required to be called for multiple times to realize all replacement requirements, so that the operation process is complicated, and the flexibility is low.
Disclosure of Invention
The embodiment of the application provides a method, a device, equipment and a storage medium for realizing automatic replacement of a PCB via hole, which can improve the flexibility and the replacement efficiency of the replacement of the PCB via hole, thereby improving the design efficiency of the PCB.
In a first aspect, an embodiment of the present application provides a method for implementing automatic replacement of a PCB via, including:
acquiring a via replacement SKILL program; the via replacement SKILL program is used for acquiring a via object to be replaced, which is obtained by a user after one-time selection operation or multiple continuous selection operations in the current PCB design, and replacing the via object to be replaced with the target sample via according to the target sample via selected by the user; wherein each of the selection operations is one of a single-object selection operation and a multi-object selection operation;
the through hole replacement SKILL program is automatically loaded when target PCB design software is set to start;
creating a first-level target menu item corresponding to the via replacement SKILL program;
and if the fact that the primary target menu item is clicked and selected is detected, starting the via replacement SKILL program to realize automatic replacement of the PCB via.
In a second aspect, an embodiment of the present application provides an implementation apparatus for automatically replacing a PCB via, including:
a replacement program acquisition unit for acquiring a via replacement SKILL program; the via replacement SKILL program is used for acquiring a via object to be replaced, which is obtained by a user after one-time selection operation or multiple continuous selection operations in the current PCB design, and replacing the via object to be replaced with the target sample via according to the target sample via selected by the user; wherein each of the selection operations is one of a single-object selection operation and a multi-object selection operation;
The automatic loading setting unit is used for setting the automatic loading of the via hole replacement SKILL program when the target PCB design software is started;
the menu creation unit is used for creating a first-level target menu item corresponding to the via hole replacement SKILL program;
and the replacement program starting unit is used for starting the via hole replacement SKILL program to realize automatic replacement of the PCB via hole if the primary target menu item is detected to be clicked and selected.
In a third aspect, an embodiment of the present application further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor executes the computer program to implement a method for implementing automatic replacement of a PCB via of the first aspect.
In a fourth aspect, embodiments of the present application further provide a computer readable storage medium, where the computer readable storage medium stores a computer program, which when executed by a processor, causes the processor to perform the method for implementing automatic replacement of PCB vias of the first aspect.
The application provides a method for realizing automatic replacement of a PCB via hole, which comprises the following steps: acquiring a via replacement SKILL program; the via replacement SKILL program is used for acquiring a via object to be replaced, which is obtained by a user after one-time selection operation or multiple continuous selection operations in the current PCB design, and replacing the via object to be replaced with the target sample via according to the target sample via selected by the user; wherein each of the selection operations is one of a single-object selection operation and a multi-object selection operation; the through hole replacement SKILL program is automatically loaded when target PCB design software is set to start; creating a first-level target menu item corresponding to the via replacement SKILL program; and if the fact that the primary target menu item is clicked and selected is detected, starting the via replacement SKILL program to realize automatic replacement of the PCB via. In the method, a via replacement SKILL program is written through a secondary development SKILL interface provided based on target PCB design software, wherein the via replacement SKILL program is used for acquiring a via object to be replaced obtained after a user performs one-time selection operation or multiple continuous selection operations in the current PCB design, replacing the via object to be replaced with a target sample via according to a target sample via selected by the user, and the user does not need to call a replacement command for multiple times, so that quick replacement of the via object after flexible selection is realized; and by setting the target PCB design software to automatically load the via replacement SKILL program when starting and creating the primary target menu item corresponding to the via replacement SKILL program, a user does not need to manually trigger the loading of the SKILL program, and when the via replacement is needed, the via replacement SKILL program can be triggered by clicking the primary target menu item, so that the via replacement step is simplified. The method and the device are beneficial to improving the flexibility and the replacement efficiency of PCB via hole replacement, so that the design efficiency of the PCB is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is an application scenario schematic diagram of an implementation method for automatic replacement of a PCB via provided in an embodiment of the present application;
fig. 2 is a flow chart of a method for implementing automatic replacement of PCB vias according to an embodiment of the present disclosure;
fig. 3 is a schematic sub-flowchart of an implementation method for automatic replacement of a PCB via according to an embodiment of the present disclosure;
fig. 4 is another schematic sub-flowchart of an implementation method of automatic replacement of a PCB via according to an embodiment of the present disclosure;
FIG. 5 is a schematic block diagram of an implementation apparatus for automatic replacement of PCB vias provided in an embodiment of the present application;
fig. 6 is a schematic block diagram of a computer device provided in an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
It should be understood that the terms "comprises" and "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
The application provides a realization method, device and equipment for automatically replacing a PCB via hole and a storage medium, which can improve the flexibility and the replacement efficiency of the replacement of the PCB via hole, thereby improving the design efficiency of the PCB. The execution main body of the implementation method for automatically replacing the PCB via hole may be an implementation device for automatically replacing the PCB via hole provided in the embodiment of the present application, the implementation device for automatically replacing the PCB via hole may be configured in target PCB design software, the target PCB design software may be specifically Allegro software, the execution main body of the implementation method for automatically replacing the PCB via hole may be a computer device integrated with the implementation device for automatically replacing the PCB via hole, where the implementation device for automatically replacing the PCB via hole may be implemented in a hardware or software manner, and the computer device may be a terminal or a server, and the terminal may be a smart phone, a tablet computer, a palm computer, a notebook computer, or the like.
Referring to fig. 1, fig. 1 is a schematic application scenario diagram of an implementation method for automatic replacement of a PCB via according to an embodiment of the present application. As shown in fig. 1, after configuring according to the implementation method for automatic replacement of PCB vias provided in the present application, after a user starts target PCB design software, for example, allegro, a menu item (via replacement in fig. 1) corresponding to a via replacement SKILL program may be clicked in a first-level menu, that is, the via replacement SKILL program is started. Specifically, as shown in fig. 1, if the user needs to replace via 1, via 2, via 3 and via 6, the user selects via 1, via 2 and via 6 by framing and singly selects via 3 in the current PCB design, after which the user can right-click the active window, click the trigger via end selection command, the via replacement skul program may take via 1, via 2, via 3 and via 6 selected by the user as the via objects to be replaced, and display the sample via selection window, receive the target sample via selected by the user (sample via 1 in fig. 1), after which the via replacement skul program realizes automatic replacement of the via objects to be replaced with the target sample via.
Referring to fig. 2, fig. 2 is a flowchart of a method for implementing automatic replacement of a PCB via according to an embodiment of the present application, where the method may be specifically applied to target PCB design software, and the target PCB design software may be Allegro software, and the method specifically includes steps S101 to S103 described below.
Step S101, obtaining a via replacement SKILL program; the via replacement SKILL program is used for acquiring a via object to be replaced, which is obtained by a user after one-time selection operation or multiple continuous selection operations in the current PCB design, and replacing the via object to be replaced with the target sample via according to the target sample via selected by the user; each of the selection operations is one of a single-object selection operation and a multi-object selection operation.
The via replacement SKILL program is a SKILL language program, and the function of the via replacement SKILL program is to realize via replacement. The SKILL language is an internal programming language of Cadence, and is used for the custom and automation of EDA tools, and in Allegro, the SKILL language can be used to write scripts to automate repeated design tasks, or to secondarily develop new design tools and functions.
In the implementation, a via replacement script written by a user in a text editor by adopting the SKILL language can be obtained and stored as an il file, so that the via replacement SKILL program is obtained.
The via object to be replaced is a via object to be replaced selected by a user, and the via object to be replaced may be obtained after one or more selection operations by the user, and each selection operation may be a single object selection operation, such as a single click selection operation, or may be a multi-object selection operation, such as a box selection operation. It will be appreciated that after one or more selection operations, the user may flexibly and quickly select all of the via objects in the current PCB design that need replacement.
The multiple continuous selection operations mentioned above means that the user can continuously perform the selection operation for the via object without performing additional operations until all via objects that need to be replaced are selected.
The target sample via is a sample via to which a via object to be replaced selected by a user needs to be replaced. In this embodiment, in the current PCB design, after one selection operation or multiple continuous selection operations, the via replacement SKILL program may obtain the selected via object as the via object to be replaced, and replace the via object to be replaced with the target sample via according to the target sample via selected by the user, so as to complete automatic replacement of the via object to be replaced, realize automatic replacement of the via object to be replaced after one-time selection, without executing the replacement program multiple times, and improve the efficiency of via replacement.
Step S102, when the target PCB design software is set to be started, the via replacement SKILL program is automatically loaded.
Specifically, taking the target PCB design software as an Allegro as an example, the environment variable value of the current computer device may be obtained first, the environment variable value is located to a folder pointed by the environment variable value, the via replacement SKILL program file (il file) is placed in the folder pointed by the environment variable value, and a load function is used to load the program pointed by the environment variable in the folder in the Allegro. Ilinit file in the folder, so that the target PCB design software, such as the Allegro, automatically loads the via replacement SKILL program when starting.
In this embodiment, the via replacement skull program is automatically loaded when the target PCB design software is set to be started, so that the user does not need to manually trigger the loading of the via replacement skull program.
And step S103, creating a first-level target menu item corresponding to the via replacement SKILL program.
The first-level target menu item is a first-level menu item corresponding to a via hole replacement SKILL program, the first-level menu item is a top-level menu in target PCB design software, and the via hole replacement SKILL program can be started when the first-level target menu item is clicked and selected by a user so as to realize automatic replacement of the PCB via hole.
Taking the target PCB design software as the Allegro software as an example, specifically, a function corresponding to the via replacement SKILL program may be registered as a command, an original allegro.men file under the installation target of Allegro is copied into the folder pointed by the environmental variable value, and the copied allegro.men is added with:
MENUITEM: "Menu instruction", "Command name"
The menu instruction is a menu name corresponding to the displayed first-level target menu item, and may be specifically determined according to practical situations, for example, "via replacement", where the command name is a function name of a function corresponding to the via replacement SKILL program.
And step S104, if the fact that the primary target menu item is clicked and selected is detected, starting the via replacement SKILL program to realize automatic replacement of the PCB via.
In this embodiment, after the user clicks and selects the first-level target menu item, the target PCB design software may detect a corresponding signal, start the via replacement skull program, and implement automatic replacement of the PCB via under operation of the via replacement skull program and interaction with the user.
Specifically, in an embodiment, as shown in fig. 3, the process of starting the via replacement skull procedure in step S104 to implement automatic replacement of the PCB via may specifically be performed in steps S201 to S206 described below.
Step S201, turning on an object selection mode in which the mouse selects an object as a group.
In this embodiment, after the object selection mode that the mouse selects the object as the group is started, the mouse may not only singly select, but also select a plurality of via objects through one-time operation by frame selection.
In some embodiments, before the step S201, an object selection setting panel may be further set to allow only the via object to be checked. Specifically, the object selection setting panel is used to set which types of objects in the current PCB design can be selected, specifically the find panel in Allegro. In this embodiment, the setting object selection setting panel only allows the via object to be checked, so that when a user selects an object in the current PCB design, only the via object can be effectively selected, which is convenient for a subsequent user to select a via object to be replaced, and is also beneficial to avoiding the user from erroneously selecting other non-via objects. In a specific implementation, after all objects in the object selection setting panel are de-selected, the object selection setting panel is set to only allow the via object to be selected.
Step S202, creating an active popup corresponding to a right mouse button command, wherein the active popup comprises a via ending selection command and a via replacement function ending command; after the via replacement function ending command is triggered, the following step S206 is executed; after the via-end selection command is triggered, the following step S203 is executed.
In this embodiment, the active popup window corresponding to the right mouse button command is a window that pops up and displays after the user right mouse button, where the active popup window includes a via ending selection command and a via replacement function ending command. The via ending selection command is used for selecting and triggering when the user needs to continue to execute the subsequent via replacement process after finishing selecting all via objects needing to be replaced, and the via replacement function ending command is used for selecting and triggering when the user needs to exit the via replacement process. In this embodiment, after the via end selection command is triggered, the following step S203 is continuously executed, otherwise, the following step S206 is executed, i.e. the via replacement process is exited.
In this embodiment, by setting the movable popup window corresponding to the right mouse button command and setting the via hole end selection command, the user can select all the via hole objects to be replaced at one time, and trigger the subsequent replacement operation through the via hole end selection command, without realizing replacement of a plurality of via hole objects by calling a plurality of via hole replacement functions, and efficiency of replacing the via hole objects is improved.
Step S203, obtaining one or more selected objects to be replaced in the current PCB design.
Specifically, in some embodiments, the number of objects in the SKILL may be called to obtain a function, such as an in-built function axlgetetset, to obtain all objects selected in the current PCB design, and a function axlgetettype in the SKILL may be called to obtain the type of all objects, where when the type of the object is a via object, the object is used as a via to be replaced.
In some embodiments, if the object selection setting panel has been set before the step S202, only the via object is allowed to be checked, and the user can only effectively select the via object in the current PCB design, the object number obtaining function built in the SKILL, such as the axlgetetset function, may be directly called to obtain the via object to be replaced in the current PCB design. The axlgetetselset is used for acquiring all selected objects in the current PCB design, and can specifically acquire database identifiers (DBIDs) of all selected objects, and since only the via objects are allowed to be selected in the current PCB design, the via objects to be replaced in the current PCB design can be acquired through the built-in function axlgetetselset.
In order to alert the user of the number of selected via objects to be replaced, in an embodiment, before step S201, setting the object selection setting panel only allows the via objects to be checked, as shown in fig. 4, step S203 may specifically include steps S301 to S305 described below.
S301, calling an object number acquisition function built in SKILL to acquire the total number corresponding to the via objects to be replaced.
Specifically, the object number obtaining function built in the SKILL may be a built-in function axlGetSelSetCount, axlGetSelSetCount function for obtaining the number of all objects selected in the current PCB design, and since only the via objects are allowed to be selected in the current PCB design, the number of objects obtained by the axlgetetsetcount function may be used as the total number corresponding to the via objects to be replaced.
And S302, displaying a text dialog box corresponding to confirmation selection, wherein the text dialog box corresponding to confirmation selection is used for confirming whether the selected through hole objects to be replaced with the total number are to be replaced or not by a user, when a confirmation selection instruction aiming at yes is received, the step S303 is executed, and when a confirmation selection instruction aiming at no is received, the step S304 is executed.
In this embodiment, the number (total number) of the objects to be replaced, which have been selected by the user, and the yes option and the no option are specifically displayed in the text dialog box corresponding to the confirmation selection, when the user selects the yes option, the following step S303 is executed, the subsequent via replacement process is continuously executed, and when the user selects the no option, the following step S304 is executed, and the via replacement process is terminated.
In this embodiment, the user is prompted to select the total number of the via objects to be replaced by confirming the corresponding text dialog box, so that the user can confirm whether to select the via objects which need to be replaced completely, and confirm the yes option when the selection is complete, and continue the subsequent via replacement process.
S303, calling an object acquisition function built in SKILL to acquire the to-be-replaced via object in the current PCB design.
Specifically, the object obtaining function built in the SKILL may be a built-in function axlgetetsetset. In this embodiment, since only the via object is allowed to be selected in the current PCB design, the via object to be replaced in the current PCB design may be obtained by the built-in function axlgetset.
S304, ending the via replacement SKILL program.
In this embodiment, the user confirms that the "no" option is selected, and then the via replacement skull program is ended, that is, the subsequent via replacement flow is ended.
In this embodiment, the text dialog box is used to prompt the user about the total number of the via objects to be replaced, and confirm whether to replace, so that the user can confirm that all the via objects to be replaced have been selected.
In an embodiment, after the one or more selected objects to be replaced in the current PCB design are obtained in the step S203, all the objects of the object selection setting panel may be deselected, so that all the objects are in an unselected state, and user' S false selection is avoided.
Step S204, displaying a selection list corresponding to all sample vias predefined in a design database, and acquiring the target sample vias selected in the selection list by a user.
The design database refers to a database containing various predefined design elements in target PCB design software such as (Allegro), and specific parameters of the design elements are preset and can be reused in the PCB design process to improve the design efficiency.
In this embodiment, all predefined sample objects, including various types of sample vias, are stored in the design database, and specific attribute data is preset in the sample vias, without repeatedly setting the attributes. In order to facilitate the user to quickly replace the via object, specifically, all sample vias predefined in the design database can be obtained, and information corresponding to all sample vias predefined in the design database is displayed in a selection list for the user to select, so that the target sample vias selected in the selection list by the user can be obtained.
Step S205, replacing each of the objects to be replaced with the target sample via.
In specific implementation, the replacement of the via object to be replaced with the target sample via can be achieved by setting the type corresponding to the via object to be replaced to be the PADSTACK type corresponding to the target sample via.
In some embodiments, the object to be replaced via may also be replaced with the target sample via by calling an object replacement function built in SKILL, such as an axlrepplace pad function. Wherein the built-in function axlrepplace Padstack comprises two in-parameters: the DBID of the object to be replaced and the name of the replaced PADSACK type are set as the name of the PADSACK type corresponding to the target sample via.
To ensure successful replacement of each via object to be replaced, in an embodiment, the step S205 may further include the following steps:
replacing the via-hole object to be replaced with the target sample via-hole for each via-hole object to be replaced, and adding the via-hole object to be replaced into a replaced object string when the replacement is successful; the initial value of the replaced object string is null;
judging whether the number of the objects in the replaced object string is equal to the total number corresponding to the through hole objects to be replaced;
if the number of the objects in the replaced object string is equal to the total number corresponding to the via objects to be replaced, displaying a text dialog box corresponding to the completely replaced objects, and ending the via replacement SKILL program;
and if the number of the objects in the replaced object string is not equal to the total number corresponding to the through hole objects to be replaced, displaying a text dialog box corresponding to incomplete replacement.
When the via-hole object to be replaced is replaced by the target sample via hole, an object replacement function built in SKILL, such as an axlrepplace Padstack function, may be called to replace the via-hole object to be replaced by the target sample via hole, or the replacement of the via-hole object to be replaced by the target sample via hole may be realized by setting the type corresponding to the via-hole object to be replaced to the PADSACK type corresponding to the target sample via hole.
The text dialog box is used for reminding the user that all the through hole objects to be replaced are successfully replaced with the target sample through holes, and the specific text form can be determined according to actual conditions; the text dialog box corresponding to the incomplete replacement is used for reminding the user that the via hole object to be replaced which is not successfully replaced by the target sample via hole exists, and the specific text form can be determined according to the actual situation.
In the implementation, the via-hole objects to be replaced can be stored in the via-hole object string to be replaced, and then the via-hole objects to be replaced in the via-hole object string to be replaced are sequentially replaced by target sample vias, and each via-hole object to be replaced is added into the replaced object string after being successfully replaced; after all the via objects to be replaced in the via object string to be replaced try to be replaced, determining whether all the via objects to be replaced have been replaced successfully by judging whether the number of the objects in the replaced object string is equal to the total number corresponding to the via objects to be replaced.
In this embodiment, when the number of objects in the replaced object string is equal to the total number corresponding to the via objects to be replaced, it is indicated that all the via objects to be replaced are successfully replaced, a text dialog box corresponding to the completely replaced object is displayed to prompt the user, and the via replacement SKILL program is ended; when the number of the objects in the replaced object string is not equal to the total number corresponding to the via objects to be replaced, indicating that the via objects to be replaced with failed replacement exist, displaying a text dialog box corresponding to incomplete replacement, and prompting a user that all the via objects to be replaced are not successfully replaced, so that the user can conveniently know whether all the via objects to be replaced are successfully replaced.
In order to facilitate the user to learn that the via objects to be replaced are not successfully replaced, in an embodiment, if the number of objects in the replaced object string is not equal to the total number of the via objects to be replaced, displaying a text dialog box corresponding to incomplete replacement includes:
if the number of the objects in the replaced object string is not equal to the total number corresponding to the via objects to be replaced, determining an unsuccessfully replaced target via object to be replaced based on the replaced object string;
displaying a text dialog box corresponding to the object to be replaced, which is not successfully replaced, of the target via object; the text dialog box corresponding to the unsuccessfully replaced via object is used for prompting a user that the unsuccessfully replaced via object is not replaced and prompting the user to replace the via object after unlocking the via object.
The text dialog box corresponding to the unsuccessfully replaced via object to be replaced is used for prompting the user that the unsuccessfully replaced via object to be replaced is the target via object to be replaced, and specifically, identification information corresponding to the target via object to be replaced can be displayed.
In practical application, the user may have locked the object in advance, so that the object is in a state that cannot be edited and replaced, based on this, in this embodiment, the number of objects in the replaced object string is not equal to the total number corresponding to the via objects to be replaced, and the target via object to be replaced that is not successfully replaced may be determined based on the replaced object string and all via objects to be replaced (for example, the objects in the replaced string), and on this basis, a text dialog box corresponding to the via object to be replaced that is not successfully replaced is displayed, so as to prompt the user that the via object to be replaced is not successfully replaced, and prompt the user to restart the via replacement SKILL program after unlocking the target via object to be replaced.
Step S206, ending the via replacement SKILL program.
In this embodiment, when the user triggers the via replacement function end command, the via replacement skull program is ended, that is, the via replacement flow is ended.
As can be seen, according to the above embodiment, in one simplest implementation manner of the method for implementing automatic replacement of PCB vias provided in the present application, the corresponding user need only include the following steps in the use process of the target PCB design software:
1. clicking one level of target menu item triggers starting via replacement SKILL program
2. Selecting via objects requiring replacement in current PCB designs by single and/or multiple selection operations
3. Right key triggering active window, selecting via object selection end command
4. And selecting the target sample via hole from the selection list corresponding to the popped sample via hole.
The automatic replacement of the to-be-replaced via objects can be realized by depending on the above necessary steps, compared with the prior art, the method does not need redundant complicated operation, so that a user can flexibly select the to-be-replaced via objects in batches with the least steps, the automatic replacement is realized, the batch replacement efficiency of the via objects is improved, and the design efficiency of the PCB is improved.
In summary, the present application provides a method for implementing automatic replacement of PCB vias, including: acquiring a via replacement SKILL program; the via replacement SKILL program is used for acquiring a via object to be replaced, which is obtained by a user after one-time selection operation or multiple continuous selection operations in the current PCB design, and replacing the via object to be replaced with the target sample via according to the target sample via selected by the user; wherein each of the selection operations is one of a single-object selection operation and a multi-object selection operation; the through hole replacement SKILL program is automatically loaded when target PCB design software is set to start; creating a first-level target menu item corresponding to the via replacement SKILL program; and if the fact that the primary target menu item is clicked and selected is detected, starting the via replacement SKILL program to realize automatic replacement of the PCB via. In the method, a via replacement SKILL program is written through a secondary development SKILL interface provided based on target PCB design software, wherein the via replacement SKILL program is used for acquiring a via object to be replaced obtained after a user performs one-time selection operation or multiple continuous selection operations in the current PCB design, replacing the via object to be replaced with a target sample via according to a target sample via selected by the user, and the user does not need to call a replacement command for multiple times, so that quick replacement of the via object after flexible selection is realized; and the via hole replacement SKILL program is automatically loaded when the target PCB design software is started, and the first-level target menu item corresponding to the via hole replacement SKILL program is created, so that a user does not need to manually trigger the loading of the SKILL program, and when the via hole replacement is required, the via hole replacement SKILL program can be triggered by clicking the first-level target menu item, the flexibility and the replacement efficiency of the via hole replacement of the PCB are improved, and the PCB design efficiency is improved.
The embodiment of the application also provides a device for realizing automatic replacement of the PCB via hole, which is used for executing the steps in any embodiment of the method for realizing automatic replacement of the PCB via hole. Specifically, referring to fig. 5, fig. 5 shows a schematic structural diagram of an implementation apparatus 500 for automatic replacement of a PCB via, where the implementation apparatus 500 for automatic replacement of a PCB via specifically includes a replacement program obtaining unit 501, an automatic loading setting unit 502, a menu creating unit 503, and a replacement program starting unit 504, where,
a replacement program obtaining unit 501, configured to obtain a via replacement skull program; the via replacement SKILL program is used for acquiring a via object to be replaced, which is obtained by a user after one-time selection operation or multiple continuous selection operations in the current PCB design, and replacing the via object to be replaced with the target sample via according to the target sample via selected by the user; wherein each of the selection operations is one of a single-object selection operation and a multi-object selection operation;
an automatic loading setting unit 502, configured to set the target PCB design software to automatically load the via replacement skull program when the target PCB design software is started;
A menu creation unit 503, configured to create a first-level target menu item corresponding to the via replacement skull program;
and a replacing program starting unit 504, configured to start the via replacement skull program to implement automatic replacement of the PCB via if the first-level target menu item is detected to be clicked.
In some embodiments, the replacing program starting unit 504 may specifically include:
the starting unit is used for starting an object selection mode that a mouse selects an object as a group;
the window creation unit is used for creating an active popup corresponding to the right mouse button command, wherein the active popup comprises a via ending selection command and a via replacement function ending command;
an ending program unit, configured to end the via replacement skull program if the via replacement function ending command is triggered;
a via object obtaining unit, configured to obtain, if the via end selection command is triggered, one or more via objects to be replaced that have been selected in the current PCB design;
the sample via hole acquisition unit is used for displaying a selection list corresponding to all sample via holes predefined in the design database and acquiring the target sample via holes selected in the selection list by a user;
And the via hole replacement unit is used for replacing each via hole object to be replaced with the target sample via hole.
In some embodiments, the implementation apparatus 500 for automatically replacing a PCB via may further include:
a panel setting unit for setting an object selection setting panel to allow only via objects to be checked;
the via object acquisition unit may specifically be configured to:
if the via ending selection command is triggered, calling an object number acquisition function built in the SKILL to acquire the total number corresponding to the via objects to be replaced;
displaying a text dialog box corresponding to confirmation selection, wherein the text dialog box corresponding to confirmation selection is used for confirming whether the user selects to replace the selected through hole objects to be replaced, the number of which is the total number;
when a confirmation selection instruction aiming at yes is received, an object acquisition function built in SKILL is called to acquire the to-be-replaced via object in the current PCB design;
and when a confirmation selection instruction aiming at no is received, ending the via replacement SKILL program.
In some embodiments, the via replacement unit may be specifically configured to:
replacing the via-hole object to be replaced with the target sample via-hole for each via-hole object to be replaced, and adding the via-hole object to be replaced into a replaced object string when the replacement is successful; the initial value of the replaced object string is null;
Judging whether the number of the objects in the replaced object string is equal to the total number corresponding to the through hole objects to be replaced;
if the number of the objects in the replaced object string is equal to the total number corresponding to the via objects to be replaced, displaying a text dialog box corresponding to the completely replaced objects, and ending the via replacement SKILL program;
and if the number of the objects in the replaced object string is not equal to the total number corresponding to the through hole objects to be replaced, displaying a text dialog box corresponding to incomplete replacement.
In some embodiments, the via replacement unit may be specifically configured to:
if the number of the objects in the replaced object string is not equal to the total number corresponding to the via objects to be replaced, determining an unsuccessfully replaced target via object to be replaced based on the replaced object string;
displaying a text dialog box corresponding to the object to be replaced, which is not successfully replaced, of the target via object; the text dialog box corresponding to the unsuccessfully replaced via object is used for prompting a user that the unsuccessfully replaced via object is not replaced and prompting the user to replace the via object after unlocking the via object.
In some embodiments, the via replacement unit may be specifically configured to:
and calling an object replacement function built in SKILL to replace the to-be-replaced via object with the target sample via.
In some embodiments, the panel setting unit may further be configured to:
deselecting all objects of the object selection setting panel.
It should be noted that, as those skilled in the art can clearly understand, the implementation device 500 for automatically replacing the PCB via and the specific implementation process of each unit may refer to the corresponding description in the foregoing method embodiment, and for convenience and brevity of description, the description is omitted here.
The above-described implementation means of automatic replacement of PCB vias may be implemented in the form of a computer program which may be run on a computer device as shown in fig. 6.
Referring to fig. 6, fig. 6 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 600 may be a terminal device such as a smart phone, tablet computer, personal computer, smart wearable device, server, etc. With reference to fig. 6, the computer device 600 includes a processor 602, a memory and a network interface 605 connected by a device bus 601, wherein the memory may include a storage medium 603 and an internal memory 604.
The storage medium 603 may store an operating system 6031 and a computer program 6032. The computer program 6032, when executed, causes the processor 602 to perform an implementation of automatic replacement of PCB vias.
The processor 602 is used to provide computing and control capabilities to support the operation of the overall computer device 600.
The internal memory 604 provides an environment for the execution of a computer program 6032 in the storage medium 603, which computer program 6032, when executed by the processor 602, causes the processor 602 to perform an implementation of automatic PCB via replacement.
The network interface 605 is used for network communications, such as providing for the transmission of data information, etc. Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of a portion of the architecture in connection with the present application and is not intended to limit the computer device 600 to which the present application is applied, and that a particular computer device 600 may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
The processor 602 is configured to execute a computer program 6032 stored in the memory to implement the method for implementing automatic replacement of a PCB via according to the embodiment of the present application.
Those skilled in the art will appreciate that the embodiment of the computer device shown in fig. 6 is not limiting of the specific construction of the computer device, and in other embodiments, the computer device may include more or less components than those shown, or certain components may be combined, or a different arrangement of components. For example, in some embodiments, the computer device may include only a memory and a processor, and in such embodiments, the structure and function of the memory and the processor are consistent with the embodiment shown in fig. 6, and will not be described again.
It should be appreciated that in embodiments of the present application, the processor 602 may be a central processing unit (Central Processing Unit, CPU), the processor 602 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSPs), application specific integrated circuits (Application Specific Integrated Circuit, ASICs), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In another embodiment of the present application, a computer-readable storage medium is provided. The computer readable storage medium may be a nonvolatile computer readable storage medium or a volatile computer readable storage medium. The computer readable storage medium stores a computer program, wherein the computer program when executed by a processor realizes the method for realizing automatic replacement of the PCB via hole disclosed in the embodiment of the application.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the apparatus, device and unit described above may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein. Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus, device, and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, for example, the division of units is merely a logical function division, there may be another division manner in actual implementation, or units having the same function may be integrated into one unit, for example, multiple units or components may be combined or may be integrated into another apparatus, or some features may be omitted, or not performed. In addition, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices, or elements, or may be an electrical, mechanical, or other form of connection.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purposes of the embodiments of the present application.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units may be stored in a storage medium if implemented in the form of software functional units and sold or used as stand-alone products. Based on such understanding, the technical solution of the present application is essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a background server, or a network device, etc.) to perform all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
The foregoing is merely a specific embodiment of the present application, but the protection scope of the present application is not limited thereto, and any equivalent modifications or substitutions will be apparent to those skilled in the art within the scope of the present application, and these modifications or substitutions should be covered in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. The method for realizing automatic replacement of the PCB via hole is characterized by comprising the following steps:
acquiring a via replacement SKILL program; the via replacement SKILL program is used for acquiring a via object to be replaced, which is obtained by a user after one-time selection operation or multiple continuous selection operations in the current PCB design, and replacing the via object to be replaced with the target sample via according to the target sample via selected by the user; wherein each of the selection operations is one of a single-object selection operation and a multi-object selection operation;
the through hole replacement SKILL program is automatically loaded when target PCB design software is set to start;
creating a first-level target menu item corresponding to the via replacement SKILL program;
and if the fact that the primary target menu item is clicked and selected is detected, starting the via replacement SKILL program to realize automatic replacement of the PCB via.
2. The method of claim 1, wherein the initiating the via replacement skull procedure to effect automatic replacement of PCB vias comprises:
starting an object selection mode that a mouse selects objects as a group;
creating an active popup corresponding to a right mouse button command, wherein the active popup comprises a via ending selection command and a via replacement function ending command;
ending the via replacement SKILL program if the via replacement function ending command is triggered;
if the via ending selection command is triggered, acquiring one or more selected via objects to be replaced in the current PCB design;
displaying a selection list corresponding to all sample vias predefined in a design database, and acquiring the target sample vias selected in the selection list by a user;
and replacing each to-be-replaced via object with the target sample via.
3. The method of claim 2, wherein before the turning on the mouse selects the object selection manner in which the object is the group, the method further comprises: the setting object selection setting panel only allows the via object to be checked;
and if the via ending selection command is triggered, acquiring one or more selected via objects to be replaced in the current PCB design, including:
If the via ending selection command is triggered, calling an object number acquisition function built in the SKILL to acquire the total number corresponding to the via objects to be replaced;
displaying a text dialog box corresponding to confirmation selection, wherein the text dialog box corresponding to confirmation selection is used for confirming whether the user selects to replace the selected through hole objects to be replaced, the number of which is the total number;
when a confirmation selection instruction aiming at yes is received, an object acquisition function built in SKILL is called to acquire the to-be-replaced via object in the current PCB design;
and when a confirmation selection instruction aiming at no is received, ending the via replacement SKILL program.
4. The method of claim 3, wherein said replacing each of said to-be-replaced via objects with said target sample via comprises:
replacing the via-hole object to be replaced with the target sample via-hole for each via-hole object to be replaced, and adding the via-hole object to be replaced into a replaced object string when the replacement is successful; the initial value of the replaced object string is null;
judging whether the number of the objects in the replaced object string is equal to the total number corresponding to the through hole objects to be replaced;
If the number of the objects in the replaced object string is equal to the total number corresponding to the via objects to be replaced, displaying a text dialog box corresponding to the completely replaced objects, and ending the via replacement SKILL program;
and if the number of the objects in the replaced object string is not equal to the total number corresponding to the through hole objects to be replaced, displaying a text dialog box corresponding to incomplete replacement.
5. The method of claim 4, wherein displaying the text dialog box that does not completely replace the corresponding object if the number of objects in the replaced object string is not equal to the total number of objects corresponding to the via to be replaced, comprises:
if the number of the objects in the replaced object string is not equal to the total number corresponding to the via objects to be replaced, determining an unsuccessfully replaced target via object to be replaced based on the replaced object string;
displaying a text dialog box corresponding to the object to be replaced, which is not successfully replaced, of the target via object; the text dialog box corresponding to the unsuccessfully replaced via object is used for prompting a user that the unsuccessfully replaced via object is not replaced and prompting the user to replace the via object after unlocking the via object.
6. The method of claim 4, wherein said replacing the via object to be replaced with the target sample via comprises:
and calling an object replacement function built in SKILL to replace the to-be-replaced via object with the target sample via.
7. The method of claim 2, wherein after the obtaining the one or more via objects to be replaced that have been selected in the current PCB design, the method further comprises:
deselecting all objects of the object selection setting panel.
8. An implementation device for automatically replacing a PCB via hole, comprising:
a replacement program acquisition unit for acquiring a via replacement SKILL program; the via replacement SKILL program is used for acquiring a via object to be replaced, which is obtained by a user after one-time selection operation or multiple continuous selection operations in the current PCB design, and replacing the via object to be replaced with the target sample via according to the target sample via selected by the user; wherein each of the selection operations is one of a single-object selection operation and a multi-object selection operation;
the automatic loading setting unit is used for setting the automatic loading of the via hole replacement SKILL program when the target PCB design software is started;
The menu creation unit is used for creating a first-level target menu item corresponding to the via hole replacement SKILL program;
and the replacement program starting unit is used for starting the via hole replacement SKILL program to realize automatic replacement of the PCB via hole if the primary target menu item is detected to be clicked and selected.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 7 when executing the computer program.
10. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the method according to any one of claims 1 to 7.
CN202311648076.0A 2023-12-04 2023-12-04 Method, device, equipment and storage medium for realizing automatic replacement of PCB (printed circuit board) via holes Pending CN117634402A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311648076.0A CN117634402A (en) 2023-12-04 2023-12-04 Method, device, equipment and storage medium for realizing automatic replacement of PCB (printed circuit board) via holes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311648076.0A CN117634402A (en) 2023-12-04 2023-12-04 Method, device, equipment and storage medium for realizing automatic replacement of PCB (printed circuit board) via holes

Publications (1)

Publication Number Publication Date
CN117634402A true CN117634402A (en) 2024-03-01

Family

ID=90017930

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311648076.0A Pending CN117634402A (en) 2023-12-04 2023-12-04 Method, device, equipment and storage medium for realizing automatic replacement of PCB (printed circuit board) via holes

Country Status (1)

Country Link
CN (1) CN117634402A (en)

Similar Documents

Publication Publication Date Title
CN111443911A (en) Page development method and device, electronic equipment and computer storage medium
CN110032519B (en) Cloud function debugging method and device, computer equipment and storage medium
CN100498704C (en) Persistent memory manipulation using EFI
US8281187B1 (en) Unified and extensible meta-testing framework
US20240086304A1 (en) Segmented customization
US20100031248A1 (en) Installation Sequence Manager
US7752005B2 (en) Integrated instrument driver network
US9501388B2 (en) Method and system for creating reference data
CN111158730B (en) System updating method, device, electronic equipment and readable storage medium
US11392360B2 (en) Systems and methods for redeploying source code builds
CN110765746B (en) Form automatic generation method and system based on event agent
CN109375921A (en) Page file quickly compiles method, apparatus and storage equipment, computer equipment
CN111538659B (en) Interface testing method, system, electronic equipment and storage medium of business scene
US20220197620A1 (en) Deploying micro frontends to different clusters from a single repository
US11983519B2 (en) Abort installation of firmware bundles
US10983782B1 (en) User interface upgrade analyzer
CN117634402A (en) Method, device, equipment and storage medium for realizing automatic replacement of PCB (printed circuit board) via holes
US20050028144A1 (en) Systems and methods for generating and distributing executable procedures for technical desk-side support
US20070208667A1 (en) Method and apparatus for switching between multiple versions of a software program
WO2020117222A1 (en) Comparisons of application programming interface interactions to determine compatibilities
CN113821249A (en) Project development configuration method and device, electronic equipment and readable storage medium
CN109684525B (en) Document display method and device, storage medium and test equipment
JP6939541B2 (en) Program, information processing device, display method
KR101420026B1 (en) A method, apparatus and computer program for loading files during a boot-up process
EP1868099B1 (en) Bug management tool

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