CN111507057A - Method and device for outputting PADS drawing and computer readable storage medium - Google Patents

Method and device for outputting PADS drawing and computer readable storage medium Download PDF

Info

Publication number
CN111507057A
CN111507057A CN202010324916.8A CN202010324916A CN111507057A CN 111507057 A CN111507057 A CN 111507057A CN 202010324916 A CN202010324916 A CN 202010324916A CN 111507057 A CN111507057 A CN 111507057A
Authority
CN
China
Prior art keywords
file
pcb
attribute information
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.)
Granted
Application number
CN202010324916.8A
Other languages
Chinese (zh)
Other versions
CN111507057B (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

Images

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 an output method of a PADS drawing, 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 attribute information of the components is edited, generating an output file of the PCB file, wherein the output file comprises a PCB (printed Circuit Board) mounting diagram and a 3D (three-dimensional) file. The invention also discloses a device and a computer readable storage medium. According to the invention, the macro command for drawing the lines of the components is formed by traversing the components by executing the editing Script (Script), so that complicated configuration options are saved, engineering files (mounting diagrams and 3D files) corresponding to the PCB are output in a one-click manner, internal parameter setting and output formats are unified, and the technical problem of interface standardization in the PCB drawing is realized.

Description

Method and device for outputting PADS drawing and computer readable storage medium
Technical Field
The invention relates to the technical field of output of PADS drawings, in particular to a method and a device for outputting a PADS drawing and a computer readable storage medium.
Background
PADS (PADS is a piece of software for manufacturing PCB panels, PADS includes PADS L ogic, PADS L ayout and padsouter) mounting diagrams, and is used for SMT (surface Mounted technology) engineers to check the mounting positions of components, or PCBA (printed Circuit Board assembly) material inspection after receiving goods.
PADs can form a corresponding 3D file for the current PCB design file, but require manual setting of relevant parameters, such as PCB thickness, PCB stack information, and the corresponding configuration of the 3D file. The process is tedious, and the 3D file configurations finally output by different designers may differ, which is not conducive to unified management.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a method and a device for outputting a PADS drawing and a computer readable storage medium, aiming at solving the technical problems that the existing PCB design file forms a corresponding 3D file, but related parameters need to be set manually, the process is complicated, and the configuration of the 3D file finally output by different designers possibly has difference, which is not beneficial to unified management.
In order to achieve the above object, the present invention provides a method for outputting a PADS drawing, where the method for outputting a PADS drawing includes:
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 attribute information of the components is edited, generating an output file of the PCB file, wherein the output file comprises a PCB (printed Circuit Board) mounting diagram and a 3D (three-dimensional) file.
Optionally, the step of traversing the currently loaded PCB file to confirm the attribute information of the component in the PCB file includes:
loading a layout drawing of a PCB file, and calling a saxbasic secondary development tool;
and executing a preset script file to traverse the components of the layout by the called saxbasic secondary development tool.
Optionally, the step of executing a preset script file to traverse the components of the layout graph by 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;
and traversing the optimized components of the layout.
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 component in the PCB file includes:
confirming the position of a 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 determining 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:
retrieving the position coordinates of the components in the drawing, sequencing the position coordinates and then confirming the absolute value coordinates of the position coordinates;
and drawing position lines of the components according to the absolute value coordinates.
Optionally, before the step of retrieving the position coordinates of the component in the drawing, sorting the position coordinates, and then determining 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 the keywords, executing the step of retrieving the position coordinates of the component 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 component in the PCB file includes:
executing the macro command through a currently running script file;
and editing the attribute information of the component according to the executed macro command, wherein the operation of editing the attribute information comprises attribute addition, attribute deletion and attribute modification.
Optionally, the step of generating an output file of the PCB file after confirming that the attribute information of the component is edited includes:
confirming the file type of the output file, and if the file type is a 3D file, acquiring a preset PCB thickness value;
and editing the hierarchical thickness value of the PCB file according to the PCB thickness value, and generating a 3D file by the PCB file with the edited hierarchical thickness value for outputting.
In addition, in order to achieve the above object, the present invention further provides an output device of a PADS drawing, including: the system comprises a memory and a processor, wherein the memory stores a computer program capable of being 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 an output program of the PADS drawing, and the output program of the PADS drawing realizes the steps of the output method of the PADS drawing when being executed by a processor.
The embodiment of the invention provides an output method of a PADS drawing. Determining attribute information of components in the PCB file by traversing the currently loaded 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 attribute information of the components is edited, generating an output file of the PCB file, wherein the output file comprises a PCB (printed Circuit Board) mounting diagram and a 3D (three-dimensional) file. According to the invention, the macro command for drawing the lines of the elements is formed by traversing the elements through the execution of the editing Script (Script), so that complicated configuration options are saved, engineering files (mounting diagrams and 3D files) corresponding to the PCB are output in a one-click manner, 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 schematic flow chart of a first embodiment of the PADS drawing sheet output method according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows: 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 attribute information of the components is edited, generating an output file of the PCB file, wherein the output file comprises a PCB (printed Circuit Board) mounting diagram and a 3D (three-dimensional) file.
The existing PCB design files form corresponding 3D files, but related parameters need to be set manually, the process is complicated, and the 3D file configuration finally output by different designers possibly has differences, which is not beneficial to the technical problem of unified management.
The invention provides a solution, which executes a macro command for traversing components to form component line drawing by editing scripts (Script), omits complicated configuration options, outputs engineering files (surface mount diagrams and 3D files) corresponding to a PCB in a one-click manner, unifies internal parameter setting and output formats, and realizes the technical problem of interface standardization in PCB drawings.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention can be a mobile or non-mobile terminal device such as a PC, a smart phone, a tablet computer, an electronic book reader and a portable computer.
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 a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also 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 non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and an output program of the PADS drawing.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend 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 attribute information of the components is edited, generating an output file of the PCB file, wherein the output file comprises a PCB (printed Circuit Board) mounting diagram and a 3D (three-dimensional) 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 drawing of a PCB file, and calling a saxbasic secondary development tool;
and executing a preset script file to traverse the components of the layout by 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;
and traversing the optimized components of the layout.
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 a 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:
retrieving the position coordinates of the components in the drawing, sequencing the position coordinates and then confirming the absolute value coordinates of the position coordinates;
and drawing position lines of the components 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 the keywords, executing the step of retrieving the position coordinates of the component 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 currently running script file;
and editing the attribute information of the component according to the executed macro command, wherein the operation of editing the attribute information comprises attribute addition, attribute deletion and attribute modification.
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 if the file type is a 3D file, acquiring a preset PCB thickness value;
and editing the hierarchical thickness value of the PCB file according to the PCB thickness value, and generating a 3D file by the PCB file with the edited hierarchical thickness value for outputting.
Referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of the method for outputting the PADS drawing according to the present invention, the method for outputting the PADS drawing is applied to a dioptric topographer, and the method for outputting the PADS drawing includes:
step S10, traversing the currently loaded PCB file to confirm the attribute information of the components in the PCB file;
according to the PCB file needing to be processed currently, starting a current PADS program to load the PCB file, and traversing the loaded PCB file to confirm the attribute information of the components in the PCB file, wherein the PCB file comprises a functional file for containing the contents of the components in the loaded PCB file, so that when the PCB file is loaded, the functional file of the PCB file is traversed to confirm the attribute information of the components in the PCB file, and thus, 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 drawing of a PCB file, and calling a saxbasic secondary development tool;
and executing a preset script file to traverse the components of the layout by the called saxbasic secondary development tool.
Loading a layout drawing (a design drawing of a split mirror table) of a PCB file according to the PCB file needing to be processed currently, calling an saxbasic secondary development tool based on the loaded layout drawing, wherein the saxbasic secondary development tool is a secondary development tool carried by a current PADS program, and executing a preset script file by the saxbasic secondary development tool after calling the saxbasic secondary development tool so as to traverse components in the loaded layout drawing through an operation function in the script file. In addition, before traversing the component, attribute information of the layout needs to be edited based on an editing function in the script file to optimize the layout graph, so that a graph format of the layout graph is adapted to current traversing and editing operations, that is, the step of executing a preset script file to traverse the component of the layout graph through the invoked saxbasic secondary development tool includes:
acquiring optimization information of the layout graph, and optimizing the loaded layout graph according to the optimization information;
and traversing the optimized components of the layout.
Acquiring optimization information based on the layout drawing according to the layout drawing loaded currently, wherein the optimization information can be from an optimization parameter input box popped up by the current PADS program after the layout drawing is loaded so that a user can manually input the optimization parameter input box; or acquiring a defined default optimization parameter in the currently executed script file; or acquiring a corresponding optimization parameter file from a preset database after identifying the component information in the layout. Thus, the loaded layout is optimized according to the layout optimization parameters currently acquired, and further, the operation of optimizing the layout can be as follows:
based on the currently executed script file, firstly, all components in the layout of the current PCB design file layout are traversed, and the corresponding display labels are deleted, so that the problems that the previously placed display labels are overlapped and improper in size and the like are solved. And after the deletion is finished, traversing all the components, adding the display labels again to the PADs, after the addition is finished, selecting all the display labels, setting the display labels to be aligned to the corresponding position centers of the components to which the display labels belong in the mounting diagram, and adjusting the fonts.
Running the parameter options of the initial optimization parameter input box according to the script file, and if the user selects automatic character height setting, setting all the character heights to be matched with the component with the minimum size in the current PCB file; if the user selects the custom character height setting, the character height of the display label is set as the input value of the user.
In order to ensure the legibility of the mounting diagram, the script needs to adjust the display labels (e.g., C1, C2, R1, R2 …) of all the components to be placed at the center of the positions of the components in the mounting diagram, and to ensure the appropriate size of the display label fonts.
According to the logic requirement judged by the script file, if a certain component does not need to exist in the final PCBA (namely, a mounting position which needs to be reserved in a PCB mounting diagram is not subjected to mounting operation), in the Value attribute, the script file is used for newly adding a keyword whether to display or not: NC (Not connect), ui (unite), DNI (do Not insert), such as Value ═ NC, "10K/DNI," Value ═ 0.1uf (ui) ". If Value 10K is adjusted to 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 component attribute information in a current PCB file is read, a macro command for editing a component at present is generated according to the characteristic of the component confirmed by the attribute information, and the attribute information of the component in the PCB file is edited by executing the macro command based on a currently running saxbasic secondary development tool, wherein when the attribute information of the component is edited, the characteristic of the component needs to be generated based on the characteristic of the component confirmed by the attribute information of the component, the characteristic of the component is mainly confirmed by the attribute information, and generally, the component characteristics which can be realized by the attribute information of the component include the type, the position and other relevant characteristics which require the realization of functions 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 macro command needs to be determined according to features of the component, 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 a position where the component is located in a 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 a 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.
According to the attribute information of the components confirmed by the operation of traversing the components in the PCB file, the positions of the components in the current PCB file structure are determined according to the attribute information, the position lines among the components are drawn based on the positions, when the lines of the components are drawn, the drawing operation can be executed by taking the position coordinates of the components as a reference, and further, according to the current drawn position lines, macro commands are generated by taking the position lines as a reference. In addition, when the macro command is generated based on the current drawing line, it is necessary to confirm that all components in the current layout are completely retrieved and generate the drawing line, and then uniformly generate the macro command of the position line drawn by the components in the layout. Thus, when drawing a position line through the position information of the component, drawing the position line through the position coordinates determined by the position information in the component, namely, 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, the method comprises the following steps:
retrieving the position coordinates of the components in the drawing, sequencing the position coordinates and then confirming the absolute value coordinates of the position coordinates;
and drawing position lines of the components according to the absolute value coordinates.
According to the property information of the component in the currently retrieved layout, the position coordinates of the pin corresponding to the component are confirmed according to the property information of the component, after the position coordinates of all the pin are enumerated, the absolute value coordinates are found, the absolute value coordinates are defined as the position coordinate information of the maximum/minimum value (X _ max, X _ min) in the X direction and the maximum/minimum value (Y _ max, Y _ min) in the Y direction, the position line of the component is drawn according to the position coordinates, further, when the position line of the component is 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 specified layer (a layer capable of being arbitrarily provided with a display mark) in the current layout.
As shown above, when drawing a component line based on the position of the current component, there may be a component that does not need to draw the line, and when determining whether the component needs to draw the line, the component may be determined by attribute information of the component, that is, by a keyword of the component attribute information, and before the step of retrieving the position coordinates of the component in the drawing, sorting the position coordinates, and then determining 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 the keywords, executing the step of retrieving the position coordinates of the component in the drawing.
After the current layout graph is optimized through the optimization parameters, the current executed script file traverses all components again, and reads the traversed keywords of the attribute information of the components to determine whether the components need line drawing, that is, each time one component is found, the attribute Value of the component is judged, and 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 key words comprise the defined key words, executing the coordinate enumeration operation of all pin feet corresponding to the component, and drawing lines of the component based on the coordinates.
Further, when a macro command is generated according to the attribute information of the current component and the attribute information of the component is edited by executing the macro command, the macro command needs to be executed based on the currently running script 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:
executing the macro command through a currently running script file;
and editing the attribute information of the component according to the executed macro command, wherein the operation of editing the attribute information comprises attribute addition, attribute deletion and attribute modification.
According to a script file which is called currently to be executed by the saxbasic secondary development tool, after a macro command of a currently generated component is determined, the macro command is executed through the currently running script file, because the macro command is from a drawing line of a position coordinate determined by the attribute information of the current component, the attribute information of the current component is edited when the macro command is executed, and in addition, because the drawing lines of the position of the component are different, the operation of editing the attribute information comprises attribute adding, attribute deleting and attribute modifying when the macro command is executed to edit the attribute information of the component.
Step S30, after confirming that the attribute information of the component is edited, generating an output file of the PCB file, where the output file includes 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 macro command which is generated currently is executed, confirming that the attribute information editing of the current component is completed, generating an output file of the PCB file according to the edited component attribute information based on the edited component attribute information, and in practical application, outputting the file type of the PCB file including but not limited to a PCB (printed circuit board) mounting diagram and a 3D file according to the application operation of the PCB file, wherein in the output file type, the PCB mounting diagram is a planar 2D (two-dimensional) picture, and when generating an US Olympic 3D file, the thickness value of the 3D file needs to be edited based on the current application requirement, and considering functional application, the thickness value of the 3D file can be edited based on the PCB thickness value which is filled by the current user, namely, 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 if the file type is a 3D file, acquiring a preset PCB thickness value;
and editing the hierarchical thickness value of the PCB file according to the PCB thickness value, and generating a 3D file by the PCB file with the edited hierarchical thickness value for outputting.
According to the attribute information of the PCB component after current editing, when an output file of the component is generated, the file type of the output file is confirmed, if the file type is a 3D file, the thickness value of the 3D file is obtained, and the thickness value can be filled based on a currently popped parameter input box; or default thickness values of the current running script files and the like, editing the hierarchy thickness values of the current PCB files according to the obtained thickness values, and generating and outputting a 3D file based on the PCB files with the hierarchy thickness values edited.
In the embodiment, a macro command for traversing the components to form component line drawing is executed through an editing Script (Script), so that complicated configuration options are omitted, engineering files (mounting diagrams and 3D files) corresponding to the PCB are output in a one-click mode, internal parameter setting and output formats of the engineering files are unified, and the technical problem of interface standardization in the PCB drawing is solved.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where an output program of a PADS drawing is stored on the computer-readable storage medium, and when executed by a processor, the output program of the PADS drawing implements 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 attribute information of the components is edited, generating an output file of the PCB file, wherein the output file comprises a PCB (printed Circuit Board) mounting diagram and a 3D (three-dimensional) file.
Further, when executed by a processor, the output program of the PADS drawing further implements the following operations:
loading a layout drawing of a PCB file, and calling a saxbasic secondary development tool;
and executing a preset script file to traverse the components of the layout by the called saxbasic secondary development tool.
Further, when executed by a processor, the output program of the PADS drawing further implements the following operations:
acquiring optimization information of the layout graph, and optimizing the loaded layout graph according to the optimization information;
and traversing the optimized components of the layout.
Further, when executed by a processor, the output program of the PADS drawing further implements the following operations:
confirming the position of a 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 executed by a processor, the output program of the PADS drawing further implements the following operations:
retrieving the position coordinates of the components in the drawing, sequencing the position coordinates and then confirming the absolute value coordinates of the position coordinates;
and drawing position lines of the components according to the absolute value coordinates.
Further, when executed by a processor, the output program of the PADS drawing further implements the following operations:
confirming whether the attribute information of the component contains keywords or not;
and when the attribute information is confirmed to contain the keywords, executing the step of retrieving the position coordinates of the component in the drawing.
Further, when executed by a processor, the output program of the PADS drawing further implements the following operations:
executing the macro command through a currently running script file;
and editing the attribute information of the component according to the executed macro command, wherein the operation of editing the attribute information comprises attribute addition, attribute deletion and attribute modification.
Further, when executed by a processor, the output program of the PADS drawing further implements the following operations:
confirming the file type of the output file, and if the file type is a 3D file, acquiring a preset PCB thickness value;
and editing the hierarchical thickness value of the PCB file according to the PCB thickness value, and generating a 3D file by the PCB file with the edited hierarchical thickness value for outputting.
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 an … …" does not exclude the presence of other identical elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. An output method of a PADS drawing is characterized by comprising 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 attribute information of the components is edited, generating an output file of the PCB file, wherein the output file comprises a PCB (printed Circuit Board) mounting diagram and a 3D (three-dimensional) file.
2. The method for outputting the PADS drawing of claim 1, wherein the step of traversing the currently loaded PCB file to confirm the attribute information of the components in the PCB file comprises:
loading a layout drawing of a 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 so as to determine the attribute information of the components in the PCB file.
3. The output method of the PADS drawing as set forth in claim 2, wherein the step of executing a preset script file to traverse components of the layout drawing through the invoked saxbasic secondary development tool comprises:
acquiring optimization information of the layout graph, and optimizing the loaded layout graph according to the optimization information;
and traversing the optimized components of the layout.
4. The output method of the PADS drawing as claimed in claim 1, wherein 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 a 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.
5. The output method of the PADS drawing as set forth in claim 4, wherein the step of determining the location of the component according to the attribute information and drawing a line of the location of the component based on the location of the component includes:
retrieving the position coordinates of the components in the drawing, sequencing the position coordinates and then confirming the absolute value coordinates of the position coordinates;
and drawing position lines of the components according to the absolute value coordinates.
6. The output method of the PADS drawing as set forth in claim 5, wherein, before the step of retrieving the position coordinates of the component in the drawing, sorting the position coordinates, and then determining 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 the keywords, executing the step of retrieving the position coordinates of the component in the drawing.
7. The output method of the PADS drawing as claimed in claim 1, wherein 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 currently running script file;
and editing the attribute information of the component according to the executed macro command, wherein the operation of editing the attribute information comprises attribute addition, attribute deletion and attribute modification.
8. The output method of the PADS drawing as set forth in claim 1, wherein the step of generating the output file of the PCB file after confirming that the property information of the component is edited includes:
confirming the file type of the output file, and if the file type is a 3D file, acquiring a preset PCB thickness value;
and editing the hierarchical thickness value of the PCB file according to the PCB thickness value, and generating a 3D file by the PCB file with the edited hierarchical thickness value for outputting.
9. An output device of a PADS drawing, comprising: a memory, a processor, and an output program of the PADS drawing stored on the memory and executable on the processor, wherein the output program of the PADS drawing when executed by the processor implements the steps of the method for outputting PADS drawing according to any one of claims 1 to 8.
10. 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, and when executed, the output program of the PADS drawing implements the steps of the output method of the PADS drawing according to any one of claims 1 to 8.
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 true CN111507057A (en) 2020-08-07
CN111507057B 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)

Cited By (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

Cited By (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

Also Published As

Publication number Publication date
CN111507057B (en) 2023-10-03

Similar Documents

Publication Publication Date Title
CN111930381B (en) Personalized page configuration method supporting SaaS multi-tenant system
CN111507057A (en) Method and device for outputting PADS drawing and computer readable storage medium
CN107391474B (en) Business card editing method, server and computer readable storage medium
CN112214218A (en) High-performance and high-efficiency Sketch component library generation and management scheme and system
CN104267981A (en) Method and device for loading application layout on desktop
CN112597737B (en) Method, system and readable storage medium for creating PCB test point identification
CN111324390A (en) Device and method for realizing APP content configuration and real-time update
CN113885935A (en) Resource packaging method and device, electronic equipment and computer readable storage medium
CN102024077B (en) Engineering drawing processing method
CN110399232A (en) Paste processing method, device, equipment and computer readable storage medium
CN107506180B (en) Page adjusting method, terminal and computer readable storage medium
CN113553635A (en) Method and device for configuring graph base primitive, electronic equipment and storage medium
CN111753347A (en) Component screening method based on Revit primitive, Revit platform and storage medium
CN109948133B (en) Data form realization method based on Layu
CN111753349B (en) Method for modifying size of structural member, revit platform and storage medium
CN116382688A (en) Man-machine interaction interface program rapid development and deployment method suitable for Arm-Linux
CN115237387A (en) Rapid development method and system for digital twin application
CN111523294A (en) PDF file-based comment separation processing method and device
CN113627010A (en) Self-adaptive instantiation method and self-adaptive instantiation system
CN111753346A (en) Method for generating cross-sectional view of linear member, Revit platform, and storage medium
CN111435313A (en) Method and device for changing skin of software
CN111562907A (en) Conversion method and system of user-defined interface data
CN110263310A (en) Data drawing generating method, device and computer readable storage medium
US20210216679A1 (en) Collaboration interface for facilitating the exchange of data between an mcad tool and an ecad tool
CN111753345A (en) Assembled component data model plan generating method, CAD platform and storage medium

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