CN111507057B - PADS drawing output method and device and computer readable storage medium - Google Patents

PADS drawing output method and device and computer readable storage medium Download PDF

Info

Publication number
CN111507057B
CN111507057B CN202010324916.8A CN202010324916A CN111507057B CN 111507057 B CN111507057 B CN 111507057B CN 202010324916 A CN202010324916 A CN 202010324916A CN 111507057 B CN111507057 B CN 111507057B
Authority
CN
China
Prior art keywords
file
attribute information
pcb
components
component
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
CN202010324916.8A
Other languages
Chinese (zh)
Other versions
CN111507057A (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.)
Shenzhen Apat Opto Electronics Components Co ltd
Original Assignee
Shenzhen Apat Opto Electronics Components 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 Shenzhen Apat Opto Electronics Components Co ltd filed Critical Shenzhen Apat Opto Electronics Components Co ltd
Priority to CN202010324916.8A priority Critical patent/CN111507057B/en
Publication of CN111507057A publication Critical patent/CN111507057A/en
Application granted granted Critical
Publication of CN111507057B publication Critical patent/CN111507057B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering

Abstract

The invention discloses a PADS drawing output method, which comprises the following steps: traversing the currently loaded PCB file to confirm the attribute information of the components in the PCB file; generating a macro command according to the attribute information, and executing the macro command to edit the attribute information of the components in the PCB file; and after confirming that the editing of the attribute information of the component is completed, generating an output file of the PCB file, wherein the output file comprises a PCB mounting diagram and a 3D file. The invention also discloses a device and a computer readable storage medium. According to the invention, the macro command for drawing the component lines is formed by traversing the components by executing the editing Script (Script), so that complicated configuration options are saved, corresponding engineering files (mounting pictures, 3D files) of the PCB are output by one key, the internal parameter setting and the output format are unified, and the technical problem of interface standardization in the PCB drawing is realized.

Description

PADS drawing output method and device and computer readable storage medium
Technical Field
The present invention relates to the field of output technologies of PADS drawings, and in particular, to a method and an apparatus for outputting a PADS drawing, and a computer readable storage medium.
Background
PADS (PADS is a software for manufacturing a PCB board, and the PADS comprises PADS Logic, PADS Layout and PADS Router) mounting patterns, and is used for checking the mounting positions of components by SMT (Surface Mounted Technology) engineering personnel or checking the materials after PCBA (Printed Circuit Board Assembly) receiving goods. The PADS can print the PCB drawing to form a PCBA mounting diagram, but some positions may be reserved in the drawing, no devices are mounted, special marks cannot be carried out on the non-mounted devices in original software, and the difficulty of SMT engineering personnel in checking the mounting positions of the components is increased.
The PADs may form a corresponding 3D file for the current PCB design file, but require manual setting of relevant parameters such as PCB thickness, PCB lamination information, configuration of the 3D file correspondence. The process is complicated, and the configuration of the 3D files finally output by different designers may have differences, which is not beneficial to unified management.
The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present invention and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
The invention mainly aims to provide a PADS drawing output method, a PADS drawing output device and a PADS drawing output computer readable storage medium, and aims to solve the technical problems that the existing PCB design files form corresponding 3D files, but related parameters are required to be set manually, the flow is complicated, and the configuration of the 3D files finally output by different designers may have differences, so that unified management is not facilitated.
In order to achieve the above object, the present invention provides a method for outputting a PADS drawing, the method for outputting a PADS drawing includes the following steps:
traversing the currently loaded PCB file to confirm the attribute information of the components in the PCB file;
generating a macro command according to the attribute information, and executing the macro command to edit the attribute information of the components in the PCB file;
and after confirming that the editing of the attribute information of the component is completed, generating an output file of the PCB file, wherein the output file comprises a PCB mounting diagram and a 3D file.
Optionally, the step of traversing the currently loaded PCB file to confirm the attribute information of the components in the PCB file includes:
loading a layout diagram of the PCB file and calling a saxbasic secondary development tool;
and executing a preset script file to traverse the components of the layout graph through the called saxbasic secondary development tool.
Optionally, the step of executing the preset script file to traverse the components of the layout graph through the called saxbasic secondary development tool includes:
acquiring optimization information of the layout graph, and optimizing the loaded layout graph according to the optimization information;
traversing the optimized components of the layout graph.
Optionally, the step of generating a macro command according to the attribute information and executing the macro command to edit the attribute information of the components in the PCB file includes:
confirming the position of the component according to the attribute information, and drawing a position line of the component based on the position of the component;
and generating and executing a macro command based on the position line.
Optionally, the step of confirming the position of the component according to the attribute information and drawing the position line of the component based on the position of the component includes:
searching position coordinates of the components in a drawing, and after sequencing the position coordinates, confirming absolute value coordinates of the position coordinates;
and drawing a position line of the component according to the absolute value coordinates.
Optionally, before the step of retrieving the position coordinates of the component in the drawing, and after sorting the position coordinates, confirming the absolute value coordinates of the position coordinates, the method further includes:
confirming whether the attribute information of the component contains keywords or not;
and when the attribute information is confirmed to contain keywords, executing the step of searching the position coordinates of the components in the drawing.
Optionally, the step of generating a macro command according to the attribute information and executing the macro command to edit the attribute information of the components in the PCB file includes:
executing the macro command through a script file which runs currently;
and editing the attribute information of the component by the executed macro command, wherein the operation of editing the attribute information comprises adding an attribute, deleting the attribute and modifying the attribute.
Optionally, the step of generating the output file of the PCB file after confirming that the editing of the attribute information of the component is completed includes:
confirming the file type of the output file, and acquiring a preset PCB thickness value if the file type is a 3D file;
and editing the level thickness value of the PCB file according to the PCB thickness value to generate a 3D file for outputting after editing the PCB file with the level thickness value.
In addition, in order to achieve the above object, the present invention further provides a device for outputting a PADS drawing, where the device for outputting a PADS drawing includes: the device comprises a memory and a processor, wherein the memory stores a computer program which can be called by the processor, and the computer program realizes the steps of the output method of the PADS drawing when being executed by the processor.
The invention also provides a computer readable storage medium, wherein the computer readable storage medium stores a PADS drawing output program, and the PADS drawing output program is executed by a processor to realize the steps of the PADS drawing output method.
The embodiment of the invention provides a PADS drawing output method. Traversing a currently loaded PCB file to confirm attribute information of components in the PCB file; generating a macro command according to the attribute information, and executing the macro command to edit the attribute information of the components in the PCB file; and after confirming that the editing of the attribute information of the component is completed, generating an output file of the PCB file, wherein the output file comprises a PCB mounting diagram and a 3D file. According to the invention, macro commands for traversing the components to form component line drawing are executed through the Script (Script), so that complicated configuration options are omitted, corresponding engineering files (mounting graphs and 3D files) of the PCB are output by one key, the internal parameter setting and output formats are unified, and the technical problem of interface standardization in the PCB drawing is realized.
Drawings
FIG. 1 is a schematic diagram of a terminal/device structure of a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a flowchart of a first embodiment of a PADS drawing output method according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The main solutions of the embodiments of the present invention are: traversing the currently loaded PCB file to confirm the attribute information of the components in the PCB file; generating a macro command according to the attribute information, and executing the macro command to edit the attribute information of the components in the PCB file; and after confirming that the editing of the attribute information of the component is completed, generating an output file of the PCB file, wherein the output file comprises a PCB mounting diagram and a 3D file.
Because the existing PCB design files form the corresponding 3D files, the related parameters are required to be set manually, the flow is complicated, and the configuration of the 3D files finally output by different designers may have differences, so that the technical problem of unified management is not facilitated.
The invention provides a solution, which is to execute macro commands for traversing the components to form component line drawing through editing scripts (scripts), omit complicated configuration options, output corresponding engineering files (mounting graphs, 3D files) of the PCB by one key, unify internal parameter setting and output formats, and realize the technical problem of interface standardization in the PCB drawing.
As shown in fig. 1, fig. 1 is a schematic diagram of a terminal structure of a hardware running environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention can be movable or immovable terminal equipment such as a PC, a smart phone, a tablet personal computer, an electronic book reader, a portable computer and the like.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the terminal structure shown in fig. 1 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and an output program of a PADS drawing may be included in the memory 1005 as one type of computer storage medium.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call an output program of the PADS drawing stored in the memory 1005, and perform the following operations:
traversing the currently loaded PCB file to confirm the attribute information of the components in the PCB file;
generating a macro command according to the attribute information, and executing the macro command to edit the attribute information of the components in the PCB file;
and after confirming that the editing of the attribute information of the component is completed, generating an output file of the PCB file, wherein the output file comprises a PCB mounting diagram and a 3D file.
Further, the processor 1001 may call the output program of the PADS drawing stored in the memory 1005, and further perform the following operations:
loading a layout diagram of the PCB file and calling a saxbasic secondary development tool;
and executing a preset script file to traverse the components of the layout graph through the called saxbasic secondary development tool.
Further, the processor 1001 may call the output program of the PADS drawing stored in the memory 1005, and further perform the following operations:
acquiring optimization information of the layout graph, and optimizing the loaded layout graph according to the optimization information;
traversing the optimized components of the layout graph.
Further, the processor 1001 may call the output program of the PADS drawing stored in the memory 1005, and further perform the following operations:
confirming the position of the component according to the attribute information, and drawing a position line of the component based on the position of the component;
and generating and executing a macro command based on the position line.
Further, the processor 1001 may call the output program of the PADS drawing stored in the memory 1005, and further perform the following operations:
searching position coordinates of the components in a drawing, and after sequencing the position coordinates, confirming absolute value coordinates of the position coordinates;
and drawing a position line of the component according to the absolute value coordinates.
Further, the processor 1001 may call the output program of the PADS drawing stored in the memory 1005, and further perform the following operations:
confirming whether the attribute information of the component contains keywords or not;
and when the attribute information is confirmed to contain keywords, executing the step of searching the position coordinates of the components in the drawing.
Further, the processor 1001 may call the output program of the PADS drawing stored in the memory 1005, and further perform the following operations:
executing the macro command through a script file which runs currently;
and editing the attribute information of the component by the executed macro command, wherein the operation of editing the attribute information comprises adding an attribute, deleting the attribute and modifying the attribute.
Further, the processor 1001 may call the output program of the PADS drawing stored in the memory 1005, and further perform the following operations:
confirming the file type of the output file, and acquiring a preset PCB thickness value if the file type is a 3D file;
and editing the level thickness value of the PCB file according to the PCB thickness value to generate a 3D file for outputting after editing the PCB file with the level thickness value.
Referring to fig. 2, fig. 2 is a flowchart of a first embodiment of a PADS drawing output method of the present invention, where the PADS drawing output method is applied to a refractive topographic map instrument, and the PADS drawing output method includes:
step S10, traversing the currently loaded PCB file to confirm the attribute information of components in the PCB file;
according to the PCB file to be processed currently, starting the current PADS program to load the PCB file, traversing the loaded PCB file to confirm the attribute information of the components in the PCB file, wherein in the loaded PCB file, the PCB file comprises a functional file for arranging the contents of the components, so when the PCB file is loaded, traversing the functional file of the PCB file to confirm the attribute information of the components in the PCB file, and the step of traversing the currently loaded PCB file to confirm the attribute information of the components in the PCB file comprises the following steps:
loading a layout diagram of the PCB file and calling a saxbasic secondary development tool;
and executing a preset script file to traverse the components of the layout graph through the called saxbasic secondary development tool.
According to a PCB file to be processed currently, loading a layout diagram (a split mirror table design diagram) of the PCB file, and calling a saxbasic secondary development tool based on the loaded layout diagram, wherein the saxbasic secondary development tool is a secondary development tool of a current PADS program, and after the saxbasic secondary development tool is called, executing a preset script file by the saxbasic secondary development tool so as to traverse the components in the loaded layout diagram through the running function in the script file. In addition, before traversing the components, the step of editing the attribute information of the layout based on the editing function in the script file to optimize the layout diagram, so that the graphic format of the layout diagram is adapted to the current traversing and editing operation, that is, the step of executing the preset script file to traverse the components of the layout diagram through the called saxbasic secondary development tool includes:
acquiring optimization information of the layout graph, and optimizing the loaded layout graph according to the optimization information;
traversing the optimized components of the layout graph.
According to the currently loaded layout diagram, obtaining optimization information based on the layout diagram, wherein the optimization information can be input manually by a user from an optimization parameter input box popped up by the current PADS program after being loaded into the layout diagram; or acquiring default optimization parameters defined in a script file which is currently executed; or acquiring corresponding optimized parameter files from a preset database after identifying the component information in the layout diagram. In this way, according to the currently acquired layout map optimization parameter, the loaded layout map is optimized, and further, the operation of optimizing the layout map may be as follows:
based on the script file currently executed, firstly, all components in the current PCB design file layout diagram are traversed, the corresponding display labels are deleted, and the problems that the previously placed display labels are overlapped, the size is improper and the like are prevented. After the deletion is finished, traversing all the components, re-adding display marks of the components at the PADS, selecting all the display marks after the addition is finished, setting the display marks to be aligned to the corresponding position centers of the components to which the display marks belong in the mounting diagram, and adjusting fonts.
Operating parameter options of an initial optimized parameter input box according to the script file, and if a user selects automatic word height setting, setting all word heights to be matched with the component with the smallest size in the current PCB file; if the user selects the custom font height setting, the font height of the display label will be set to the user's input value.
In order to ensure the clarity of the mounting diagram, the script needs to adjust the display labels (such as C1, C2, R1 and R2 …) of all the components first, so that the display labels are placed in the center of the positions of the components in the mounting diagram, and the display label fonts are ensured to be proper in size.
According to the logic requirement judged by the script file, if a certain component does not need to exist in the final PCBA (namely, the mounting position which needs to be reserved in the PCB mounting diagram is not subjected to mounting operation), in the Value attribute, a new keyword is added by using the script file, namely whether the keyword is displayed or not: NC (Not Connect), UI (unitall), DNI (Do Not Install), such as vaule= "NC", vaule= "10K/DNI", value= "0.1UF (UI)". E.g., value=10k is adjusted to value=10k/UNI.
Step S20, generating a macro command according to the attribute information, and executing the macro command to edit the attribute information of the components in the PCB file;
after the attribute information of the components in the current PCB file is read, a macro command for editing the components currently is generated according to the attribute information, and the attribute information of the components in the PCB file is edited based on the macro command executed by a saxbasic secondary development tool running currently, wherein the attribute information of the components is edited, the attribute information of the components is required to be confirmed based on the attribute information of the components to be generated, the characteristics of the components are mainly confirmed through the attribute information, and generally, the characteristics of the components which can be realized by the attribute information of the components comprise the type, the position and the like of the components which are related to the functions required to be realized based on the current PCB file. In this way, when generating a macro command for editing attribute information of a current component according to the attribute information of the component, the feature of the component needs to be determined, and in general, when the macro command is mainly used for editing the attribute information of the component, the macro command may be determined based on the location of the component in the current PCB file, that is, the step of generating the macro command according to the attribute information, and executing the macro command to edit the attribute information of the component in the PCB file includes:
confirming the position of the component according to the attribute information, and drawing a position line of the component based on the position of the component;
and generating and executing a macro command based on the position line.
And according to the attribute information of the components confirmed by the operation of the components in the current traversing PCB file, determining the position of the components in the current PCB file structure by using the attribute information, drawing position lines among the components based on the position, and executing drawing operation by taking the position coordinates of the components as a reference when drawing the component lines, and further, generating a macro command by taking the position lines as a reference according to the currently drawn position lines. In addition, when generating a macro command based on the current drawing line, it is required to confirm that all components in the current layout drawing are searched, and generate the macro command of the position line drawn by the components in the layout drawing after generating the drawing line. In this way, when the position line is drawn according to the position information of the component, the position coordinate determined by the position information in the component is required to be drawn, that is, the position of the component is confirmed according to the attribute information, and the position line of the component is drawn based on the position of the component, which includes:
searching position coordinates of the components in a drawing, and after sequencing the position coordinates, confirming absolute value coordinates of the position coordinates;
and drawing a position line of the component according to the absolute value coordinates.
According to the attribute information of the components in the currently retrieved layout diagram, the position coordinates of pin feet corresponding to the components are confirmed according to the attribute information of the components, after the position coordinates of all pin feet are enumerated, absolute value coordinates are found, the absolute value coordinates are defined as position coordinate information of maximum/minimum values (X_max, X_min) in the X direction, and position lines of the components are drawn according to the position coordinates, and further, when the position lines of the components are drawn, a straight line can be drawn between the coordinates (X_max, ymax) and the coordinates (X_min, Y_min) as a deletion mark line in a designated layer (a layer capable of randomly setting a display mark) in the current layout diagram.
As described above, when drawing a component line based on the position of the current component, there may be components that need not draw a line, and when confirming whether the component needs to draw a line, the component may be confirmed by attribute information of the component, that is, by a keyword of the component attribute information, where the step of searching for a position coordinate of the component in a drawing, and after sorting the position coordinates, confirming an absolute value coordinate of the position coordinate further includes:
confirming whether the attribute information of the component contains keywords or not;
and when the attribute information is confirmed to contain keywords, executing the step of searching the position coordinates of the components in the drawing.
After optimizing the current layout diagram through optimizing parameters, the currently executed script file traverses all components again, reads the traversed keywords of the component attribute information to confirm whether the components need line drawing or not, namely, judging the attribute Value of each component when one component is found, wherein in practical application, the keywords of the attribute information in the components can be defined as NC, UI, DNI and the like. And if the defined keywords are included, executing coordinate enumeration operation of all pin pins corresponding to the component, and carrying out line drawing operation of the component based on the coordinates.
Further, when generating a macro command according to the attribute information of the current component and editing the attribute information of the component by executing the macro command, the macro command needs to be executed based on the script file currently running, that is, the step of generating the macro command according to the attribute information and executing the macro command to edit the attribute information of the component in the PCB file includes:
executing the macro command through a script file which runs currently;
and editing the attribute information of the component by the executed macro command, wherein the operation of editing the attribute information comprises adding an attribute, deleting the attribute and modifying the attribute.
According to the script file executed by the current calling saxbasic secondary development tool, after the macro command of the current generated component is determined, executing the macro command through the currently running script file, wherein the macro command is from the attribute information of the current component to determine the drawing line of the position coordinate, so that the attribute information of the current component is edited when the macro command is executed, and in addition, the drawing line of the position of the component is different, and when the attribute information of the component is edited when the macro command is executed, the attribute information is edited, and the attribute is added, deleted and modified.
And step S30, after confirming that the editing of the attribute information of the component is completed, generating an output file of the PCB file, wherein the output file comprises a PCB mounting diagram and a 3D file.
According to the attribute information editing operation of the current component, after confirming that the attribute information editing of the current component is completed, namely, the execution of the current generated macro command is completed, confirming that the attribute information editing of the current component is completed, generating an output file of the PCB file based on the edited component attribute information, namely, after confirming that the attribute information editing of the component is completed, generating the output file of the PCB file according to the application operation of the PCB file in practical application, wherein the output file type comprises but not limited to a PCB mounting diagram and a 3D file, the PCB mounting diagram is a planar 2D picture, and when generating a US auris 3D file, the thickness value of the 3D file is required to be edited based on the current application requirement, and considering the function application, the thickness value of the 3D file can be edited based on the PCB thickness value filled by the current user, namely, the step of generating the output file of the PCB file after confirming that the attribute information editing of the component is completed comprises the steps of:
confirming the file type of the output file, and acquiring a preset PCB thickness value if the file type is a 3D file;
and editing the level thickness value of the PCB file according to the PCB thickness value to generate a 3D file for outputting after editing the PCB file with the level thickness value.
Confirming the file type of the output file when the output file of the component is generated according to the attribute information of the PCB component after the current editing, and if the file type is a 3D file, acquiring the thickness value of the 3D file, wherein the thickness value can be filled in based on a currently popped parameter input box; or default thickness values of the current running script file, and the like, editing the layer thickness values of the current PCB file according to the obtained thickness values, and generating a 3D file for output based on the PCB file after editing the layer thickness values.
In this embodiment, the macro command for traversing the components to form the component line drawing is executed through the editing Script (Script), so that complicated configuration options are omitted, corresponding engineering files (mounting diagram, 3D files) of the PCB are output by one key, the internal parameter setting and output format are unified, and the technical problem of interface standardization in the PCB drawing is realized.
In addition, the embodiment of the invention also provides a computer readable storage medium, wherein the computer readable storage medium stores a PADS drawing output program, and the PADS drawing output program realizes the following operations when being executed by a processor:
traversing the currently loaded PCB file to confirm the attribute information of the components in the PCB file;
generating a macro command according to the attribute information, and executing the macro command to edit the attribute information of the components in the PCB file;
and after confirming that the editing of the attribute information of the component is completed, generating an output file of the PCB file, wherein the output file comprises a PCB mounting diagram and a 3D file.
Further, when the output program of the PADS drawing is executed by the processor, the following operations are further realized:
loading a layout diagram of the PCB file and calling a saxbasic secondary development tool;
and executing a preset script file to traverse the components of the layout graph through the called saxbasic secondary development tool.
Further, when the output program of the PADS drawing is executed by the processor, the following operations are further realized:
acquiring optimization information of the layout graph, and optimizing the loaded layout graph according to the optimization information;
traversing the optimized components of the layout graph.
Further, when the output program of the PADS drawing is executed by the processor, the following operations are further realized:
confirming the position of the component according to the attribute information, and drawing a position line of the component based on the position of the component;
and generating and executing a macro command based on the position line.
Further, when the output program of the PADS drawing is executed by the processor, the following operations are further realized:
searching position coordinates of the components in a drawing, and after sequencing the position coordinates, confirming absolute value coordinates of the position coordinates;
and drawing a position line of the component according to the absolute value coordinates.
Further, when the output program of the PADS drawing is executed by the processor, the following operations are further realized:
confirming whether the attribute information of the component contains keywords or not;
and when the attribute information is confirmed to contain keywords, executing the step of searching the position coordinates of the components in the drawing.
Further, when the output program of the PADS drawing is executed by the processor, the following operations are further realized:
executing the macro command through a script file which runs currently;
and editing the attribute information of the component by the executed macro command, wherein the operation of editing the attribute information comprises adding an attribute, deleting the attribute and modifying the attribute.
Further, when the output program of the PADS drawing is executed by the processor, the following operations are further realized:
confirming the file type of the output file, and acquiring a preset PCB thickness value if the file type is a 3D file;
and editing the level thickness value of the PCB file according to the PCB thickness value to generate a 3D file for outputting after editing the PCB file with the level thickness value.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, medicament or system comprising such element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (8)

1. The output method of the PADS drawing is characterized by comprising the following steps of:
traversing a currently loaded PCB file to confirm attribute information of components in the PCB file, wherein the PCB file comprises a functional file for arranging contents of the components;
generating a macro command according to the attribute information, and executing the macro command to edit the attribute information of the components in the PCB file;
after confirming that the editing of the attribute information of the components is completed, generating an output file of the PCB file, wherein the output file comprises a PCB mounting diagram and a 3D file;
the step of traversing the currently loaded PCB file to confirm the attribute information of the components in the PCB file comprises the following steps:
loading a layout diagram of the PCB file and calling a saxbasic secondary development tool;
executing a preset script file to traverse components of the layout graph through the called saxbasic secondary development tool so as to determine attribute information of the components in the PCB file
The step of executing the preset script file to traverse the components of the layout graph through the called saxbasic secondary development tool comprises the following steps:
acquiring optimization information of the layout graph, and optimizing the loaded layout graph according to the optimization information;
traversing the optimized components of the layout graph.
2. The PADS drawing outputting method as set forth in claim 1, wherein the step of generating a macro command based on the attribute information and executing the macro command to edit the attribute information of the components in the PCB file includes:
confirming the position of the component according to the attribute information, and drawing a position line of the component based on the position of the component;
and generating and executing a macro command based on the position line.
3. The PADS drawing output method as set forth in claim 2, wherein the step of confirming the location of the component according to the attribute information and drawing the location line of the component based on the location of the component includes:
searching position coordinates of the components in a drawing, and after sequencing the position coordinates, confirming absolute value coordinates of the position coordinates;
and drawing a position line of the component according to the absolute value coordinates.
4. The PADS drawing output method as set forth in claim 3, wherein before the step of retrieving the position coordinates of the component in the drawing, and sorting the position coordinates to confirm the absolute value coordinates of the position coordinates, the method further includes:
confirming whether the attribute information of the component contains keywords or not;
and when the attribute information is confirmed to contain keywords, executing the step of searching the position coordinates of the components in the drawing.
5. The PADS drawing outputting method as set forth in claim 1, wherein the step of generating a macro command based on the attribute information and executing the macro command to edit the attribute information of the components in the PCB file includes:
executing the macro command through a script file which runs currently;
and editing the attribute information of the component by the executed macro command, wherein the operation of editing the attribute information comprises adding an attribute, deleting the attribute and modifying the attribute.
6. The PADS drawing output method of claim 1, wherein the step of generating the PCB file output file after confirming that the editing of the attribute information of the component is completed includes:
confirming the file type of the output file, and acquiring a preset PCB thickness value if the file type is a 3D file;
and editing the level thickness value of the PCB file according to the PCB thickness value to generate a 3D file for outputting after editing the PCB file with the level thickness value.
7. The utility model provides an output device of PADS drawing, its characterized in that, the output device of PADS drawing includes: memory, processor and the output program of the PADS drawing stored on the memory and executable on the processor, which when executed by the processor, realizes the steps of the output method of the PADS drawing according to any one of claims 1 to 6.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium includes an output program of a PADS drawing stored in the computer-readable storage medium, which when executed implements the steps of the PADS drawing output method according to any one of claims 1 to 6.
CN202010324916.8A 2020-04-22 2020-04-22 PADS drawing output method and device and computer readable storage medium Active CN111507057B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010324916.8A CN111507057B (en) 2020-04-22 2020-04-22 PADS drawing output method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010324916.8A CN111507057B (en) 2020-04-22 2020-04-22 PADS drawing output method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111507057A CN111507057A (en) 2020-08-07
CN111507057B true CN111507057B (en) 2023-10-03

Family

ID=71877960

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010324916.8A Active CN111507057B (en) 2020-04-22 2020-04-22 PADS drawing output method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111507057B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113721824A (en) * 2021-08-10 2021-11-30 深圳市一博科技股份有限公司 Method for one-key setting of library path of CR5000 platform
CN113836843A (en) * 2021-09-27 2021-12-24 深圳创维-Rgb电子有限公司 PCB component information comparison method and device, terminal and storage medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5070534A (en) * 1988-10-17 1991-12-03 International Business Machines Corporation Simplified cad parametric macroinstruction capability including variational geometrics feature
CN102819552A (en) * 2012-06-26 2012-12-12 深圳市百能信息技术有限公司 Method and system for automatically examining and verifying Printed Circuit Board (PCB) project files
CN103823882A (en) * 2014-03-03 2014-05-28 深圳市百能信息技术有限公司 Method and system for automatically auditing PCB project files
CN106815180A (en) * 2016-12-06 2017-06-09 武汉开目信息技术股份有限公司 A kind of method for being automatically obtained Altium software conversion of drawings
GB2549787A (en) * 2016-04-29 2017-11-01 Imagination Tech Ltd Generation of a control stream for a tile
CN107908828A (en) * 2017-10-26 2018-04-13 惠州市金百泽电路科技有限公司 A kind of automatic method for making pcb board testing impedance bar
CN107992694A (en) * 2017-12-08 2018-05-04 魏延福 A kind of PCB circuit board calculation system method and its data presentation system
CN108090453A (en) * 2017-12-21 2018-05-29 北京华大九天软件有限公司 A kind of method that PAD information is automatically extracted in domain
CN109741417A (en) * 2018-11-19 2019-05-10 西安中线软件技术有限公司 A kind of generation method of graphic file, calculates equipment and storage medium at device
CN109858092A (en) * 2018-12-27 2019-06-07 遵义市水世界科技有限公司 Method, apparatus, computer equipment and the storage medium of PCB component placement
CN110502774A (en) * 2019-05-29 2019-11-26 广合科技(广州)有限公司 A kind of PCB engineering drawing automatic marking method, computer readable storage medium and terminal
CN110516333A (en) * 2019-08-16 2019-11-29 苏州浪潮智能科技有限公司 Device layout methods, device, equipment and readable storage medium storing program for executing in a kind of PCB
CN110598263A (en) * 2019-08-16 2019-12-20 四川九洲电器集团有限责任公司 Method for standardized management of component packaging

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5070534A (en) * 1988-10-17 1991-12-03 International Business Machines Corporation Simplified cad parametric macroinstruction capability including variational geometrics feature
CN102819552A (en) * 2012-06-26 2012-12-12 深圳市百能信息技术有限公司 Method and system for automatically examining and verifying Printed Circuit Board (PCB) project files
CN103823882A (en) * 2014-03-03 2014-05-28 深圳市百能信息技术有限公司 Method and system for automatically auditing PCB project files
GB2549787A (en) * 2016-04-29 2017-11-01 Imagination Tech Ltd Generation of a control stream for a tile
CN106815180A (en) * 2016-12-06 2017-06-09 武汉开目信息技术股份有限公司 A kind of method for being automatically obtained Altium software conversion of drawings
CN107908828A (en) * 2017-10-26 2018-04-13 惠州市金百泽电路科技有限公司 A kind of automatic method for making pcb board testing impedance bar
CN107992694A (en) * 2017-12-08 2018-05-04 魏延福 A kind of PCB circuit board calculation system method and its data presentation system
CN108090453A (en) * 2017-12-21 2018-05-29 北京华大九天软件有限公司 A kind of method that PAD information is automatically extracted in domain
CN109741417A (en) * 2018-11-19 2019-05-10 西安中线软件技术有限公司 A kind of generation method of graphic file, calculates equipment and storage medium at device
CN109858092A (en) * 2018-12-27 2019-06-07 遵义市水世界科技有限公司 Method, apparatus, computer equipment and the storage medium of PCB component placement
CN110502774A (en) * 2019-05-29 2019-11-26 广合科技(广州)有限公司 A kind of PCB engineering drawing automatic marking method, computer readable storage medium and terminal
CN110516333A (en) * 2019-08-16 2019-11-29 苏州浪潮智能科技有限公司 Device layout methods, device, equipment and readable storage medium storing program for executing in a kind of PCB
CN110598263A (en) * 2019-08-16 2019-12-20 四川九洲电器集团有限责任公司 Method for standardized management of component packaging

Also Published As

Publication number Publication date
CN111507057A (en) 2020-08-07

Similar Documents

Publication Publication Date Title
CN111507057B (en) PADS drawing output method and device and computer readable storage medium
CN111930381B (en) Personalized page configuration method supporting SaaS multi-tenant system
CN110598263B (en) Method for standardized management of component packaging
CN110705237B (en) Automatic document generation method, data processing device and storage medium
JP5154533B2 (en) Program generating apparatus and program
CN107391474B (en) Business card editing method, server and computer readable storage medium
CN112597737A (en) Method, system and readable storage medium for creating PCB test point identification
CN109902095A (en) Policy information update method, device, terminal and computer readable storage medium
US6725423B1 (en) Laying out markup language paragraphs independently of other paragraphs
CN102024077B (en) Engineering drawing processing method
CN110941937A (en) Electronic device, package rendering generation method, and computer-readable storage medium
CN110399232A (en) Paste processing method, device, equipment and computer readable storage medium
CN111753347A (en) Component screening method based on Revit primitive, Revit platform and storage medium
CN111753349B (en) Method for modifying size of structural member, revit platform and storage medium
CN115993961A (en) Development method for heterogeneous and heterogeneous integrated PDK based on GaAs and FO-WLP technology
CN116382688A (en) Man-machine interaction interface program rapid development and deployment method suitable for Arm-Linux
CN113655972A (en) Drawing file standardized control and batch printing method based on CAD plug-in
CN111523294A (en) PDF file-based comment separation processing method and device
CN114356250A (en) Label printing system and method
CN113835704A (en) Layout file generation method, device, equipment and storage medium
CN111309300A (en) Code generation method, device, computer system and readable storage medium
CN111753346A (en) Method for generating cross-sectional view of linear member, Revit platform, and storage medium
CN111753345A (en) Assembled component data model plan generating method, CAD platform and storage medium
JP3809315B2 (en) CAD system
CN115469909B (en) Instruction updating method, working method, device, equipment and medium of software platform

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
GR01 Patent grant
GR01 Patent grant