CN116228988A - Method, device, equipment and storage medium for punching electric mounting plate - Google Patents
Method, device, equipment and storage medium for punching electric mounting plate Download PDFInfo
- Publication number
- CN116228988A CN116228988A CN202310306353.3A CN202310306353A CN116228988A CN 116228988 A CN116228988 A CN 116228988A CN 202310306353 A CN202310306353 A CN 202310306353A CN 116228988 A CN116228988 A CN 116228988A
- Authority
- CN
- China
- Prior art keywords
- model
- drilling
- electrical component
- mounting plate
- component model
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05K—PRINTED CIRCUITS; CASINGS OR CONSTRUCTIONAL DETAILS OF ELECTRIC APPARATUS; MANUFACTURE OF ASSEMBLAGES OF ELECTRICAL COMPONENTS
- H05K3/00—Apparatus or processes for manufacturing printed circuits
- H05K3/0011—Working of insulating substrates or insulating layers
- H05K3/0044—Mechanical working of the substrate, e.g. drilling or punching
- H05K3/0047—Drilling of holes
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T17/00—Three dimensional [3D] modelling, e.g. data description of 3D objects
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T19/00—Manipulating 3D models or images for computer graphics
- G06T19/20—Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computer Graphics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Microelectronics & Electronic Packaging (AREA)
- Geometry (AREA)
- Manufacturing & Machinery (AREA)
- Architecture (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Perforating, Stamping-Out Or Severing By Means Other Than Cutting (AREA)
Abstract
本申请提供一种电气安装板的打孔方法、装置、设备及存储介质,属于电气元件技术领域。电气安装板的打孔方法,包括:确定各电气部件模型的钻孔信息,电气部件模型的钻孔信息包括:各钻孔在电气部件模型上的坐标、尺寸、类型以及各钻孔之间的排布关系;确定安装板模型的布局信息,布局信息包括:安装板模型的安装区域范围以及各电气部件模型在安装板模型上的排布方式;根据各电气部件模型的钻孔信息以及安装板模型的布局信息,确定安装板模型上对应的各个钻孔位置,并基于安装板模型上对应的各个钻孔位置生成目标打孔文件;基于目标打孔文件对待打孔的安装板模型打孔。本申请可以提高打孔位置确定的全面性以及提高打孔的效率。
The application provides a method, device, equipment and storage medium for punching holes in an electrical installation board, belonging to the technical field of electrical components. The drilling method of the electrical installation board includes: determining the drilling information of each electrical component model, and the drilling information of the electrical component model includes: the coordinates, size, type and distance between each drilling hole on the electrical component model Arrangement relationship; determine the layout information of the mounting plate model, the layout information includes: the range of the mounting area of the mounting plate model and the arrangement of each electrical component model on the mounting plate model; according to the drilling information of each electrical component model and the mounting plate The layout information of the model determines the corresponding drilling positions on the mounting plate model, and generates the target punching file based on the corresponding drilling positions on the mounting plate model; punches the mounting plate model to be punched based on the target punching file. The application can improve the comprehensiveness of determining the punching position and the efficiency of punching.
Description
技术领域technical field
本申请涉及电气元件技术领域,具体而言,涉及一种电气安装板的打孔方法、装置、设备及存储介质。The present application relates to the technical field of electrical components, in particular, to a method, device, equipment and storage medium for punching holes in an electrical installation board.
背景技术Background technique
为了让电气元件之间可以更好的实现连接,通常需要对电气元件进行打孔,例如:可以对电气安装板进行打孔,从而让其他的电气部件可以更好的安装在该电气安装板上。In order to achieve better connections between electrical components, it is usually necessary to drill holes in the electrical components, for example: the electrical installation board can be drilled, so that other electrical components can be better installed on the electrical installation board .
现有技术中,在实现电气安装板的打孔时,通常是设计人员基于电气安装板的打孔面二维图像进行打孔位置的确定,在确定之后可以基于打孔设备在对应的位置进行打孔处理。In the prior art, when realizing the punching of the electrical installation board, the designer usually determines the punching position based on the two-dimensional image of the punching surface of the electrical installation board. After the determination, it can be based on the punching equipment at the corresponding position. Hole punching.
然而,由于实际使用的电气安装板是三维模型,仅仅基于二维图像进行打孔位置的确定会具有一定的视角局限性,可能导致打孔结果出现误差;并且,基于人工确定打孔位置也会导致打孔的效率低。However, since the electrical installation board actually used is a three-dimensional model, the determination of the punching position only based on two-dimensional images will have certain viewing angle limitations, which may lead to errors in the punching results; moreover, determining the punching position based on manual The efficiency of punching is low.
发明内容Contents of the invention
本申请的目的在于提供一种电气安装板的打孔方法,可以提高打孔位置确定的全面性以及提高打孔的效率。The purpose of the present application is to provide a method for punching holes in an electrical installation board, which can improve the comprehensiveness of determining the punching positions and improve the punching efficiency.
本申请的实施例是这样实现的:The embodiment of the application is realized like this:
本申请实施例的一方面,提供一种电气安装板的打孔方法,包括:In an aspect of the embodiment of the present application, a method for punching holes in an electrical installation board is provided, including:
确定各电气部件模型的钻孔信息,各电气部件模型为待安装至安装板模型的部件,各电气部件模型以及安装板模型均为在计算机软件中显示的三维模型,电气部件模型的钻孔信息包括:各钻孔在电气部件模型上的坐标、尺寸、类型以及各钻孔之间的排布关系;Determine the drilling information of each electrical component model, each electrical component model is a component to be installed on the mounting plate model, each electrical component model and the mounting plate model are three-dimensional models displayed in the computer software, the drilling information of the electrical component model Including: the coordinates, size, type of each drill hole on the electrical component model and the arrangement relationship between each drill hole;
确定安装板模型的布局信息,布局信息包括:安装板模型的安装区域范围以及各电气部件模型在安装板模型上的排布方式;Determine the layout information of the mounting plate model, the layout information includes: the range of the mounting area of the mounting plate model and the arrangement of each electrical component model on the mounting plate model;
根据各电气部件模型的钻孔信息以及安装板模型的布局信息,确定安装板模型上对应的各个钻孔位置,并基于安装板模型上对应的各个钻孔位置生成目标打孔文件;According to the drilling information of each electrical component model and the layout information of the mounting plate model, determine the corresponding drilling positions on the mounting plate model, and generate a target punching file based on the corresponding drilling positions on the mounting plate model;
基于目标打孔文件对待打孔的安装板模型打孔。Drill holes in the model of the mounting plate to be punched based on the target punch file.
可选地,确定各电气部件模型的钻孔信息,包括:Optionally, determine the drilling information of each electrical component model, including:
针对每个电气部件模型,分别执行以下步骤:For each electrical component model, perform the following steps:
获取初始孔数据,初始孔数据包括:在初始设计样式中各个孔的坐标、尺寸、类型以及多个孔之间的排布关系;Obtain the initial hole data, the initial hole data includes: the coordinates, size, type of each hole in the initial design style, and the arrangement relationship between multiple holes;
基于电气部件模型的形状,将初始孔数据映射至电气部件模型的安装面上,得到电气部件模型的钻孔信息。Based on the shape of the electrical component model, the initial hole data is mapped to the mounting surface of the electrical component model to obtain the drilling information of the electrical component model.
可选地,基于电气部件模型的形状,将初始孔数据映射至电气部件模型的安装面上,得到电气部件模型的钻孔信息之后,该方法还包括:Optionally, based on the shape of the electrical component model, the initial hole data is mapped to the mounting surface of the electrical component model, and after obtaining the drilling information of the electrical component model, the method further includes:
确定各电气部件模型的钻孔信息是否发生偏移;Determine whether the drilling information of each electrical component model is offset;
若是,对初始孔数据进行调整,得到调整后的孔数据;If yes, adjust the initial hole data to obtain the adjusted hole data;
将调整后的孔数据映射至电气部件模型的安装面上,得到电气部件模型的钻孔信息。Map the adjusted hole data to the mounting surface of the electrical component model to obtain the drilling information of the electrical component model.
可选地,对初始孔数据进行调整,得到调整后的孔数据,包括:Optionally, the initial hole data is adjusted to obtain the adjusted hole data, including:
修改初始孔数据中各个孔的坐标,并将修改后各个孔的坐标作为调整后的孔数据中各个孔的坐标。The coordinates of each hole in the initial hole data are modified, and the modified coordinates of each hole are used as the coordinates of each hole in the adjusted hole data.
可选地,确定各电气部件模型的钻孔信息是否发生偏移,包括:Optionally, determine whether the drilling information of each electrical component model is offset, including:
确定电气部件模型的打孔位置是否与检测安装板的打孔位置匹配;Determine whether the punching position of the electrical component model matches the punching position of the detection mounting plate;
若匹配,确定电气部件模型的钻孔信息没有发生偏移;If it matches, it is determined that the drilling information of the electrical component model has not shifted;
若不匹配,确定电气部件模型的钻孔信息发生了偏移。If it does not match, it is determined that the drilling information of the electrical component model has shifted.
可选地,确定安装板模型的布局信息,包括:Optionally, determine the layout information of the mounting plate model, including:
获取安装板模型的最大垂直边线的位置以及最大水平边线的位置;Obtain the position of the largest vertical edge and the largest horizontal edge of the mounting plate model;
基于最大垂直边线的位置以及最大水平边线的位置确定安装板模型的安装区域范围;Determine the installation area range of the mounting plate model based on the position of the largest vertical edge and the position of the largest horizontal edge;
基于各个待安装至安装板模型的电气部件模型的尺寸确定各电气部件模型在安装板模型上的排布方式。The arrangement of the electrical component models on the mounting plate model is determined based on the size of each electrical component model to be mounted on the mounting plate model.
可选地,根据各电气部件模型的钻孔信息以及安装板模型的布局信息,确定安装板模型上对应的各个钻孔位置,包括:Optionally, according to the drilling information of each electrical component model and the layout information of the mounting plate model, determine the corresponding drilling positions on the mounting plate model, including:
将安装板模型的安装区域范围作为电气部件模型的可安装范围,并在可安装范围内,基于各电气部件模型在安装板模型上的排布方式确定各个电气部件模型的待安装位置区域;Taking the installation area range of the mounting plate model as the installable range of the electrical component model, and within the installable range, determine the to-be-installed location area of each electrical component model based on the arrangement of each electrical component model on the mounting plate model;
在各个电气部件模型的安装位置区域内,基于各个电气部件模型的钻孔信息确定在安装板模型上对应的各个钻孔位置。In the installation position area of each electrical component model, each corresponding drilling position on the mounting plate model is determined based on the drilling information of each electrical component model.
本申请实施例的另一方面,提供一种电气安装板的打孔装置,包括:钻孔确定模块、布局确定模块、文件生成模块、打孔模块;Another aspect of the embodiment of the present application provides a punching device for an electrical installation board, including: a drilling determination module, a layout determination module, a file generation module, and a punching module;
钻孔确定模块,用于确定各电气部件模型的钻孔信息,各电气部件模型为待安装至安装板模型的部件,各电气部件模型以及安装板模型均为在计算机软件中显示的三维模型,电气部件模型的钻孔信息包括:各钻孔在电气部件模型上的坐标、尺寸、类型以及各钻孔之间的排布关系;The drilling determination module is used to determine the drilling information of each electrical component model, each electrical component model is a component to be installed on the mounting plate model, each electrical component model and the mounting plate model are three-dimensional models displayed in computer software, The drilling information of the electrical component model includes: the coordinates, size, type and arrangement relationship of each drilling hole on the electrical component model;
布局确定模块,用于确定安装板模型的布局信息,布局信息包括:安装板模型的安装区域范围以及各电气部件模型在安装板模型上的排布方式;The layout determination module is used to determine the layout information of the mounting plate model, and the layout information includes: the range of the mounting area of the mounting plate model and the arrangement of each electrical component model on the mounting plate model;
文件生成模块,用于根据各电气部件模型的钻孔信息以及安装板模型的布局信息,确定安装板模型上对应的各个钻孔位置,并基于安装板模型上对应的各个钻孔位置生成目标打孔文件;The file generation module is used to determine the corresponding drilling positions on the mounting plate model according to the drilling information of each electrical component model and the layout information of the mounting plate model, and generate the target drilling position based on the corresponding drilling positions on the mounting plate model. hole file;
打孔模块,用于基于目标打孔文件对待打孔的安装板模型打孔。The punching module is used for punching the mounting plate model to be punched based on the target punching file.
可选地,钻孔确定模块,具体用于针对每个电气部件模型,分别执行以下步骤:获取初始孔数据,初始孔数据包括:在初始设计样式中各个孔的坐标、尺寸、类型以及多个孔之间的排布关系;基于电气部件模型的形状,将初始孔数据映射至电气部件模型的安装面上,得到电气部件模型的钻孔信息。Optionally, the drilling determination module is specifically configured to perform the following steps for each electrical component model: obtain initial hole data, the initial hole data includes: the coordinates, size, type and multiple holes of each hole in the initial design style The arrangement relationship between holes; based on the shape of the electrical component model, the initial hole data is mapped to the mounting surface of the electrical component model to obtain the drilling information of the electrical component model.
可选地,钻孔确定模块,还用于确定各电气部件模型的钻孔信息是否发生偏移;若是,对初始孔数据进行调整,得到调整后的孔数据;将调整后的孔数据映射至电气部件模型的安装面上,得到电气部件模型的钻孔信息。Optionally, the drilling determination module is also used to determine whether the drilling information of each electrical component model is offset; if so, adjust the initial hole data to obtain adjusted hole data; map the adjusted hole data to On the mounting surface of the electrical component model, the drilling information of the electrical component model is obtained.
可选地,钻孔确定模块,具体用于修改初始孔数据中各个孔的坐标,并将修改后各个孔的坐标作为调整后的孔数据中各个孔的坐标。Optionally, the drilling determination module is specifically configured to modify the coordinates of each hole in the initial hole data, and use the modified coordinates of each hole as the coordinates of each hole in the adjusted hole data.
可选地,钻孔确定模块,具体用于确定电气部件模型的打孔位置是否与检测安装板的打孔位置匹配;若匹配,确定电气部件模型的钻孔信息没有发生偏移;若不匹配,确定电气部件模型的钻孔信息发生了偏移。Optionally, the drilling determination module is specifically used to determine whether the punching position of the electrical component model matches the drilling position of the detection mounting plate; if it matches, it is determined that the drilling information of the electrical component model has not shifted; if it does not match , determining that the drilling information for the electrical component model has shifted.
可选地,布局确定模块,具体用于获取安装板模型的最大垂直边线的位置以及最大水平边线的位置;基于最大垂直边线的位置以及最大水平边线的位置确定安装板模型的安装区域范围;基于各个待安装至安装板模型的电气部件模型的尺寸确定各电气部件模型在安装板模型上的排布方式。Optionally, the layout determination module is specifically used to obtain the position of the maximum vertical edge and the position of the maximum horizontal edge of the mounting plate model; determine the range of the installation area of the mounting plate model based on the position of the maximum vertical edge and the position of the maximum horizontal edge; The size of each electrical component model to be mounted on the mounting plate model determines the arrangement of each electrical component model on the mounting plate model.
可选地,文件生成模块,具体用于将安装板模型的安装区域范围作为电气部件模型的可安装范围,并在可安装范围内,基于各电气部件模型在安装板模型上的排布方式确定各个电气部件模型的待安装位置区域;在各个电气部件模型的安装位置区域内,基于各个电气部件模型的钻孔信息确定在安装板模型上对应的各个钻孔位置。Optionally, the file generation module is specifically configured to use the installation area range of the mounting plate model as the installable range of the electrical component model, and within the installable range, determine based on the arrangement of each electrical component model on the mounting plate model The to-be-installed location area of each electrical component model; within the installation location area of each electrical component model, the corresponding drilling positions on the mounting plate model are determined based on the drilling information of each electrical component model.
本申请实施例的另一方面,提供一种计算机设备,包括:存储器、处理器,存储器中存储有可在处理器上运行的计算机程序,处理器执行计算机程序时,实现电气安装板的打孔方法的步骤。Another aspect of the embodiment of the present application provides a computer device, including: a memory, a processor, a computer program that can be run on the processor is stored in the memory, and when the processor executes the computer program, the electrical installation board is punched method steps.
本申请实施例的另一方面,提供一种计算机可读存储介质,存储介质上存储有计算机程序,该计算机程序被处理器执行时,实现电气安装板的打孔方法的步骤。Another aspect of the embodiments of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of a method for punching an electrical installation board are implemented.
本申请实施例的有益效果包括:The beneficial effects of the embodiments of the present application include:
本申请实施例提供的一种电气安装板的打孔方法、装置、设备及存储介质,可以确定各电气部件模型的钻孔信息,并且可以确定安装板模型的布局信息,进而可以根据各电气部件模型的钻孔信息以及安装板模型的布局信息,确定安装板模型上对应的各个钻孔位置,并基于安装板模型上对应的各个钻孔位置生成目标打孔文件;基于目标打孔文件对待打孔的安装板模型打孔。其中,各电气部件模型以及安装板模型均为在计算机软件中显示的三维模型,通过三维模型中各个电气部件模型的钻孔信息以及安装板模型的布局信息,可以更加全面、准确、直观地确定出安装板模型上对应的各个钻孔位置,进而在基于目标打孔文件对待打孔的安装板模型打孔时,可以使得打孔的位置更加准确、打孔的效率更高。The embodiment of the present application provides a drilling method, device, equipment, and storage medium for an electrical installation board, which can determine the drilling information of each electrical component model, and can determine the layout information of the installation board model, and then can be based on each electrical component. The drilling information of the model and the layout information of the mounting plate model determine the corresponding drilling positions on the mounting plate model, and generate the target punching file based on the corresponding drilling positions on the mounting plate model; Holes are punched for the mounting plate model. Among them, each electrical component model and mounting plate model are three-dimensional models displayed in computer software, through the drilling information of each electrical component model in the three-dimensional model and the layout information of the mounting plate model, it can be determined more comprehensively, accurately and intuitively Find out the corresponding drilling positions on the mounting plate model, and then punch the mounting plate model to be punched based on the target punching file, which can make the drilling position more accurate and the drilling efficiency higher.
附图说明Description of drawings
为了更清楚地说明本申请实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本申请的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the accompanying drawings that are required in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present application, and thus It should be regarded as a limitation on the scope, and those skilled in the art can also obtain other related drawings based on these drawings without creative work.
图1为本申请实施例提供的电气安装板的打孔方法的流程示意图;Fig. 1 is the schematic flow chart of the punching method of the electrical installation board that the embodiment of the present application provides;
图2为本申请实施例提供的电气安装板的打孔方法的另一流程示意图;Fig. 2 is another schematic flow chart of the punching method of the electrical installation board provided by the embodiment of the present application;
图3为本申请实施例提供的电气安装板的打孔方法的另一流程示意图;Fig. 3 is another schematic flow chart of the punching method of the electrical installation board provided by the embodiment of the present application;
图4为本申请实施例提供的电气安装板的打孔方法的另一流程示意图;Fig. 4 is another schematic flow chart of the punching method of the electrical installation board provided by the embodiment of the present application;
图5为本申请实施例提供的电气安装板的打孔方法的另一流程示意图;Fig. 5 is another schematic flow chart of the punching method of the electrical installation board provided by the embodiment of the present application;
图6为本申请实施例中提供的安装板模型的结构示意图;FIG. 6 is a schematic structural view of the mounting plate model provided in the embodiment of the present application;
图7为本申请实施例中提供的电气安装板的打孔装置的结构示意图;FIG. 7 is a schematic structural diagram of a punching device for an electrical installation board provided in an embodiment of the present application;
图8为本申请实施例中提供的计算机设备的结构示意图。FIG. 8 is a schematic structural diagram of a computer device provided in an embodiment of the present application.
具体实施方式Detailed ways
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本申请实施例的组件可以以各种不同的配置来布置和设计。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of this application, not all of them. The components of the embodiments of the application generally described and illustrated in the figures herein may be arranged and designed in a variety of different configurations.
因此,以下对在附图中提供的本申请的实施例的详细描述并非旨在限制要求保护的本申请的范围,而是仅仅表示本申请的选定实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。Accordingly, the following detailed description of the embodiments of the application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of the application. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。It should be noted that like numerals and letters denote similar items in the following figures, therefore, once an item is defined in one figure, it does not require further definition and explanation in subsequent figures.
在本申请的描述中,需要说明的是,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。In the description of the present application, it should be noted that the terms "first", "second", "third" and so on are only used to distinguish descriptions, and should not be understood as indicating or implying relative importance.
需要说明的是,电气元件之间通常需要进行安装组合,例如:电气部件可以安装在电气安装板上,而同一个电气安装板上通常可以包括多个电气部件。It should be noted that electrical components usually need to be installed and combined, for example, electrical components can be installed on an electrical installation board, and the same electrical installation board can usually include multiple electrical components.
为了让电气部件在生产后能够正常安装在电气安装板上,通常需要对电气安装板进行打孔处理。In order to allow electrical components to be normally installed on the electrical installation board after production, it is usually necessary to punch holes in the electrical installation board.
现有技术中,在进行电气安装板的打孔过程中,通常是由涉及人员基于电气安装板的打孔面的二维图像进行打孔位置的确定,进而可以根据确定的位置进行打孔。In the prior art, during the drilling process of the electrical installation board, usually the personnel involved determine the drilling position based on the two-dimensional image of the drilling surface of the electrical installation board, and then the drilling can be performed according to the determined position.
然而,由于实际使用的电气安装板是三维模型,仅仅基于二维图像进行打孔位置的确定会具有一定的视角局限性,可能导致打孔结果出现误差;并且,基于人工确定打孔位置也会导致打孔的效率较低,为了解决现有技术中存在的上述问题,本申请提出了一种电气安装板的打孔方法,下面来具体解释本申请提供的电气安装板的打孔方法的具体实施过程。However, since the electrical installation board actually used is a three-dimensional model, the determination of the punching position only based on two-dimensional images will have certain viewing angle limitations, which may lead to errors in the punching results; moreover, determining the punching position based on manual As a result, the efficiency of punching is low. In order to solve the above-mentioned problems in the prior art, the application proposes a method for punching holes in an electrical installation board. The specific details of the method for punching holes in an electrical installation board provided by the application are explained in detail below. Implementation process.
图1为本申请实施例提供的电气安装板的打孔方法的流程示意图,请参照图1,电气安装板的打孔方法,包括:Fig. 1 is a schematic flow chart of the punching method of the electrical installation board provided by the embodiment of the present application, please refer to Fig. 1, the punching method of the electrical installation board includes:
S110:确定各电气部件模型的钻孔信息。S110: Determine the drilling information of each electrical component model.
其中,各电气部件模型为待安装至安装板模型的部件,各电气部件模型以及安装板模型均为在计算机软件中显示的三维模型,电气部件模型的钻孔信息包括:各钻孔在电气部件模型上的坐标、尺寸、类型以及各钻孔之间的排布关系。Wherein, each electrical component model is a component to be installed on the mounting plate model, each electrical component model and the mounting plate model are three-dimensional models displayed in computer software, and the drilling information of the electrical component model includes: Coordinates, dimensions, types and the arrangement relationship between each drilling hole on the model.
可选地,该方法的执行主体具体可以是一个计算机设备,例如:可以基于计算机设备中的相关软件,来实现对各个电气部件模型的钻孔信息的确定。Optionally, the subject of execution of the method may specifically be a computer device. For example, the determination of the drilling information of each electrical component model may be realized based on relevant software in the computer device.
需要说明的是,电气部件模型可以包括多个,多个电气部件模型均可以安装在安装板模型上,电气部件模型以及安装板模型均为在计算机软件中显示的三维模型,具体可以是以一个三维图像的形式展示。It should be noted that the electrical component model can include multiple models, and multiple electrical component models can be installed on the mounting plate model. Both the electrical component model and the mounting plate model are three-dimensional models displayed in computer software. Specifically, a displayed in the form of three-dimensional images.
可选地,对于每一个电气部件模型,若想要让该电气部件模型安装在安装板模型上,则该电气部件模型需要存在钻孔,基于钻孔实现二者的连接,每个电气部件模型可以包括多个钻孔,各个钻孔在电气部件模型上可以在不同的坐标、各个钻孔也可以具有不同的尺寸,不同钻孔的钻孔类型也可能存在区别,基于上述各类信息可以组成各个电气部件模型的钻孔信息,可以确定出每个电气部件模型的钻孔信息。Optionally, for each electrical component model, if you want to install the electrical component model on the mounting plate model, then the electrical component model needs to have a drill hole, and the connection between the two is realized based on the drill hole. Each electrical component model It can include multiple drill holes, each drill hole can have different coordinates on the electrical component model, and each drill hole can also have different sizes, and the drilling types of different drill holes may also be different. Based on the above various types of information, it can be composed The drilling information of each electrical component model can determine the drilling information of each electrical component model.
S120:确定安装板模型的布局信息。S120: Determine the layout information of the mounting plate model.
布局信息包括:安装板模型的安装区域范围以及各电气部件模型在安装板模型上的排布方式。The layout information includes: the range of the installation area of the mounting plate model and the arrangement of the electrical component models on the mounting plate model.
需要说明的是,上述步骤S120与S110在实际执行的过程中没有必然的时序上的先后关系,可以按照顺序依次执行,也可以同时执行,在此不作具体限制,图1中所示为按照先执行S110再执行S120为例,但并不以此作为限制。It should be noted that the above-mentioned steps S120 and S110 do not have a necessary sequential relationship in the actual execution process, and can be executed sequentially or at the same time, and no specific limitation is made here. Executing S110 and then executing S120 is an example, but this is not a limitation.
可选地,对于一个安装板模型,会有多个电气部件模型安装在该安装板模型上,这些电气部件模型具体如何排布,例如:第一个电气部件模型安装在第一个位置区域,第二个电气部件模型安装在第二个位置区域,安装板模型上的第一个位置区域和第二个位置区域具体的设置方式即为上述各电气部件模型在安装板模型上的排布方式。Optionally, for a mounting plate model, there will be multiple electrical component models installed on the mounting plate model, how these electrical component models are arranged specifically, for example: the first electrical component model is installed in the first location area, The second electrical component model is installed in the second position area. The specific setting method of the first position area and the second position area on the mounting plate model is the arrangement of the above-mentioned electrical component models on the mounting plate model .
可选地,安装板模型也并非是所有的位置都可以安装电气部件模型,可以从整个安装板模型中确定出可以安装电气部件模型的区域,作为上述安装板模型的安装区域范围。Optionally, not all positions of the mounting plate model can be installed with electrical component models, and the area where the electrical component models can be installed can be determined from the entire mounting plate model as the installation area range of the mounting plate model.
需要说明的是,由于安装板模型是一个三维模型,也就意味着,在实际安装过程中,多个电气部件模型可能并不会安装在同一个安装面,因此,可以分别确定出安装板模型每个安装面上的布局信息。It should be noted that since the mounting plate model is a three-dimensional model, it means that in the actual installation process, multiple electrical component models may not be installed on the same mounting surface. Therefore, the mounting plate model can be determined separately Layout information on each mounting surface.
S130:根据各电气部件模型的钻孔信息以及安装板模型的布局信息,确定安装板模型上对应的各个钻孔位置,并基于安装板模型上对应的各个钻孔位置生成目标打孔文件。S130: According to the drilling information of each electrical component model and the layout information of the mounting plate model, determine the corresponding drilling positions on the mounting plate model, and generate a target punching file based on the corresponding drilling positions on the mounting plate model.
可选地,基于上述步骤分别得到各电气部件模型的钻孔信息以及安装板模型的布局信息之后,可以确定安装板模型上对应的各个钻孔位置,具体可以是所有需要安装在安装板模型上的电气部件模型对应的钻孔位置。Optionally, after obtaining the drilling information of each electrical component model and the layout information of the mounting plate model based on the above steps, the corresponding drilling positions on the mounting plate model can be determined, specifically, all the holes that need to be installed on the mounting plate model The location of the drill holes corresponding to the model of the electrical component.
得到上述各个钻孔位置之后,可以基于钻孔位置生成目标打孔文件,目标打孔文件中可以记录各个钻孔位置的钻孔信息,也即是各钻孔在安装板模型上的坐标、尺寸、类型以及各钻孔之间的排布关系。目标打孔文件例如可以是DXF格式的文件。After the above-mentioned drilling positions are obtained, the target drilling file can be generated based on the drilling position, and the drilling information of each drilling position can be recorded in the target drilling file, that is, the coordinates and dimensions of each drilling hole on the mounting plate model , types, and the arrangement relationship between each borehole. The target punch file may be, for example, a file in DXF format.
S140:基于目标打孔文件对待打孔的安装板模型打孔。S140: Punch holes in the mounting plate model to be punched based on the target punch file.
可选地,得到目标打孔文件之后可以基于该打孔文件以及相关打孔执行的软件来执行安装板模型的打孔。Optionally, after the target punching file is obtained, the punching of the mounting plate model can be executed based on the punching file and related punching execution software.
需要说明的是,这里的打孔具体指的是对计算机软件程序中显示的三维模型的安装板模型进行打孔,可以记录整个打孔过程的相关信息数据,并基于这些信息数据应用于对实体电气安装板的打孔。It should be noted that the punching here specifically refers to punching the mounting plate model of the 3D model displayed in the computer software program, which can record the relevant information data of the entire punching process, and apply it to the entity based on these information data. Drilling holes for electrical mounting plates.
本申请实施例提供的一种电气安装板的打孔方法中,可以确定各电气部件模型的钻孔信息,并且可以确定安装板模型的布局信息,进而可以根据各电气部件模型的钻孔信息以及安装板模型的布局信息,确定安装板模型上对应的各个钻孔位置,并基于安装板模型上对应的各个钻孔位置生成目标打孔文件;基于目标打孔文件对待打孔的安装板模型打孔。其中,各电气部件模型以及安装板模型均为在计算机软件中显示的三维模型,通过三维模型中各个电气部件模型的钻孔信息以及安装板模型的布局信息,可以更加全面、准确、直观地确定出安装板模型上对应的各个钻孔位置,进而在基于目标打孔文件对待打孔的安装板模型打孔时,可以使得打孔的位置更加准确、打孔的效率更高。In the method for punching holes of an electrical installation board provided in an embodiment of the present application, the drilling information of each electrical component model can be determined, and the layout information of the installation board model can be determined, and then the drilling information of each electrical component model and the layout information of the installation board model can be determined. The layout information of the mounting plate model determines the corresponding drilling positions on the mounting plate model, and generates the target punching file based on the corresponding drilling positions on the mounting plate model; punches the mounting plate model to be punched based on the target punching file hole. Among them, each electrical component model and mounting plate model are three-dimensional models displayed in computer software, through the drilling information of each electrical component model in the three-dimensional model and the layout information of the mounting plate model, it can be determined more comprehensively, accurately and intuitively Find out the corresponding drilling positions on the mounting plate model, and then punch the mounting plate model to be punched based on the target punching file, which can make the drilling position more accurate and the drilling efficiency higher.
下面来具体解释本申请实施例中提供的确定各电气部件模型的钻孔信息的具体实施过程。The specific implementation process of determining the drilling information of each electrical component model provided in the embodiment of the present application will be explained in detail below.
图2为本申请实施例提供的电气安装板的打孔方法的另一流程示意图,请参照图2,确定各电气部件模型的钻孔信息,包括:Fig. 2 is another schematic flow chart of the drilling method of the electrical installation board provided by the embodiment of the present application. Please refer to Fig. 2 to determine the drilling information of each electrical component model, including:
针对每个电气部件模型,分别执行以下步骤:For each electrical component model, perform the following steps:
S210:获取初始孔数据。S210: Obtain initial hole data.
其中,初始孔数据包括:在初始设计样式中各个孔的坐标、尺寸、类型以及多个孔之间的排布关系。Wherein, the initial hole data includes: the coordinates, size, type of each hole in the initial design style, and the arrangement relationship among multiple holes.
可选地,初始设计样式具体可以是计算机软件的程序中的一个可选布局样式,该可选布局样式并不属于任何一个电气部件模型上,仅仅包括有多个孔的坐标、尺寸、类型以及多个孔之间的排布关系。Optionally, the initial design style may specifically be an optional layout style in a computer software program. This optional layout style does not belong to any electrical component model, and only includes coordinates, sizes, types and The arrangement relationship between multiple holes.
需要说明的是,初始孔数据具体可以是随机自动生成的,或者,也可以是基于用户的编辑确定的,在此不作具体限制。It should be noted that the initial hole data may specifically be randomly and automatically generated, or may also be determined based on user editing, which is not specifically limited here.
S220:基于电气部件模型的形状,将初始孔数据映射至电气部件模型的安装面上,得到电气部件模型的钻孔信息。S220: Based on the shape of the electrical component model, map the initial hole data to the mounting surface of the electrical component model to obtain drilling information of the electrical component model.
可选地,得到上述初始孔数据之后,可以根据电气部件模型的形状,将该孔数据进行映射处理,例如:可以映射至电气部件模型的安装面上,从而可以确定该电气部件模型上的钻孔信息。Optionally, after obtaining the above-mentioned initial hole data, the hole data can be mapped according to the shape of the electrical component model, for example: it can be mapped to the installation surface of the electrical component model, so that the hole data on the electrical component model can be determined. hole information.
具体的,可以将一个并不属于任何一个电气部件模型上的可选布局样式通过映射的方式适配于该电气部件模型,进而可以基于对应的初始孔数据得到电气部件模型的钻孔信息。Specifically, an optional layout style that does not belong to any electrical component model can be adapted to the electrical component model through mapping, and then the drilling information of the electrical component model can be obtained based on the corresponding initial hole data.
本申请实施例提供的一种电气安装板的打孔方法中,可以针对每个电气部件模型执行获取初始孔数据,基于电气部件模型的形状,将初始孔数据映射至电气部件模型的安装面上,得到电气部件模型的钻孔信息。其中,通过初始孔数据对电气部件模型的映射匹配,可以更加快速、高效的实现多个电气部件模型的钻孔信息的批量确定,提高确定电气部件模型的钻孔信息的效率。In a method for punching holes in an electrical installation board provided in an embodiment of the present application, the acquisition of initial hole data can be performed for each electrical component model, and the initial hole data can be mapped to the mounting surface of the electrical component model based on the shape of the electrical component model , to get the drilling information of the electrical component model. Among them, through the mapping and matching of the initial hole data to the electrical component model, the batch determination of drilling information of multiple electrical component models can be realized more quickly and efficiently, and the efficiency of determining the drilling information of the electrical component model can be improved.
下面来具体解释本申请实施例中提供的电气安装板的打孔方法中进行偏移检测的具体实施过程。The specific implementation process of offset detection in the method for punching electrical installation boards provided in the embodiments of the present application will be explained in detail below.
图3为本申请实施例提供的电气安装板的打孔方法的另一流程示意图,请参照图3,基于电气部件模型的形状,将初始孔数据映射至电气部件模型的安装面上,得到电气部件模型的钻孔信息之后,该方法还包括:Fig. 3 is another schematic flow chart of the punching method of the electrical installation board provided by the embodiment of the present application, please refer to Fig. 3, based on the shape of the electrical component model, the initial hole data is mapped to the mounting surface of the electrical component model, and the electrical component is obtained. After the drilling information of the part model, the method also includes:
S310:确定各电气部件模型的钻孔信息是否发生偏移。S310: Determine whether the drilling information of each electrical component model is offset.
可选地,得到钻孔信息之后,可以确定这些钻孔信息是否发生偏移,也即是对各个钻孔信息对应的钻孔位置进行位置验证。Optionally, after the borehole information is obtained, it may be determined whether the borehole information is offset, that is, the position of the borehole position corresponding to each borehole information is verified.
可选地,在实现对各个钻孔信息对应的钻孔位置进行位置验证时,具体可以通过以下方式进行验证:Optionally, when verifying the position of the drilling position corresponding to each drilling information, the verification can be performed in the following manner:
确定电气部件模型的打孔位置是否与检测安装板的打孔位置匹配;Determine whether the punching position of the electrical component model matches the punching position of the detection mounting plate;
若匹配,确定电气部件模型的钻孔信息没有发生偏移;If it matches, it is determined that the drilling information of the electrical component model has not shifted;
若不匹配,确定电气部件模型的钻孔信息发生了偏移。If it does not match, it is determined that the drilling information of the electrical component model has shifted.
其中,检测安装板具体可以是用于进行位置验证的三维模型,其可以与上述安装板模型相类似,区别在于检测安装板可以是预先打好孔的,可以将电气部件模型插入该安装板模型。Wherein, the detection mounting plate can specifically be a three-dimensional model for position verification, which can be similar to the above-mentioned mounting plate model, the difference is that the detection mounting plate can be pre-punched, and the electrical component model can be inserted into the mounting plate model .
每个检测安装板上可以配置有对应的各个钻孔的位置,可以通过比较将电气部件模型上的钻孔位置与检测安装板上的钻孔位置关系是否匹配来确定电气部件模型的钻孔信息是否发生了偏移。Each detection mounting plate can be configured with corresponding drilling positions, and the drilling information of the electrical component model can be determined by comparing whether the drilling position on the electrical component model matches the drilling position relationship on the detection mounting plate Whether an offset has occurred.
可选地,除了上述判断方式之外,还可以采用其他相类似的方式进行判断,例如:可以将电气部件模型插入检测安装板中;若正常插入,确定电气部件模型的钻孔信息没有发生偏移;若不能正常插入,确定电气部件模型的钻孔信息发生了偏移。Optionally, in addition to the above judgment methods, other similar methods can also be used for judgment, for example: the electrical component model can be inserted into the detection installation board; if it is inserted normally, it is determined that the drilling information of the electrical component model is not biased. If it cannot be inserted normally, it is determined that the drilling information of the electrical component model has shifted.
其中,正常插入指的是当电气部件模型处于最佳位置或者预设的标准位置时,电气部件模型可以插入到检测安装板上设置好的钻孔位置内;相应地,不能正常插入指的是当电气部件模型处于最佳位置或者预设的标准位置时,电气部件模型不能插入到检测安装板上设置好的钻孔位置内。Among them, normal insertion means that when the electrical component model is in the best position or the preset standard position, the electrical component model can be inserted into the drill hole position set on the detection installation board; correspondingly, normal insertion means that When the electrical component model is at the optimal position or the preset standard position, the electrical component model cannot be inserted into the drill hole position set on the detection mounting plate.
可以基于上述在对应位置条件下能否正常插入的方式来确定电气部件模型的钻孔信息是否发生了偏移。Whether the drilling information of the electrical component model is offset can be determined based on the above-mentioned manner of whether the hole can be inserted normally under the corresponding position condition.
S320:若是,对初始孔数据进行调整,得到调整后的孔数据。S320: If yes, adjust the initial hole data to obtain adjusted hole data.
可选地,若确定钻孔信息未发生偏移,则可以确定S220得到的钻孔信息即为最终需要的钻孔信息;相对地,若钻孔信息发生了偏移,则可以进行调整,具体可以是对初始孔数据进行调整。Optionally, if it is determined that the borehole information has not shifted, it can be determined that the borehole information obtained in S220 is the final required borehole information; relatively, if the borehole information has shifted, it can be adjusted, specifically This can be an adjustment to the original hole data.
可选地,可以修改初始孔数据中各个孔的坐标,并将修改后各个孔的坐标作为调整后的孔数据中各个孔的坐标。Optionally, the coordinates of each hole in the initial hole data may be modified, and the modified coordinates of each hole may be used as the coordinates of each hole in the adjusted hole data.
需要说明的是,在实际安装的过程中,由于安装面为一个二维平面,则可以确定出该平面上各个孔的坐标,具体可以用(x,y)来表示,在进行孔的坐标的修改时,具体可以调整上述x和y的具体大小,从而实现孔的坐标的修改,从而得到调整后的孔数据。It should be noted that in the actual installation process, since the installation surface is a two-dimensional plane, the coordinates of each hole on the plane can be determined, specifically expressed by (x, y), and the coordinates of the holes When modifying, the specific size of the above-mentioned x and y can be adjusted, so as to realize the modification of the coordinates of the hole, and thus obtain the adjusted hole data.
S330:将调整后的孔数据映射至电气部件模型的安装面上,得到电气部件模型的钻孔信息。S330: Map the adjusted hole data to the mounting surface of the electrical component model to obtain drilling information of the electrical component model.
需要说明的是,进行上述调整后,可以得到调整后的孔数据,可以将调整后的孔数据采用与上述S220相类似的方式,将调整后的孔数据映射至电气部件模型的安装面上,得到电气部件模型的钻孔信息。It should be noted that after the above adjustments, the adjusted hole data can be obtained, and the adjusted hole data can be mapped to the installation surface of the electrical component model in a manner similar to the above S220, Get drilling information for electrical component models.
可以采用循环的方式,进行多次调整以及验证直至电气部件模型的钻孔信息没有发生偏移为止。A cyclic method can be used to perform multiple adjustments and verifications until the drilling information of the electrical component model does not deviate.
基于上述步骤得到的电气部件模型的钻孔信息即为最终需要的钻孔信息。The drilling information of the electrical component model obtained based on the above steps is the final required drilling information.
本申请实施例中提供的一种电气安装板的打孔方法中,具体可以确定各电气部件模型的钻孔信息是否发生偏移;若是,对初始孔数据进行调整,得到调整后的孔数据;将调整后的孔数据映射至电气部件模型的安装面上,得到电气部件模型的钻孔信息。其中,基于上述方式确定是否发生偏移,并且在发生偏移时进行对应的调整,可以提高获取的电气部件模型的位置信息的准确性。In the drilling method for an electrical installation board provided in the embodiment of the present application, it can be specifically determined whether the drilling information of each electrical component model is offset; if so, the initial hole data is adjusted to obtain the adjusted hole data; Map the adjusted hole data to the mounting surface of the electrical component model to obtain the drilling information of the electrical component model. Wherein, determining whether an offset occurs based on the above method, and performing corresponding adjustments when an offset occurs, can improve the accuracy of the acquired position information of the electrical component model.
下面来具体解释本申请实施例中提供的电气安装板的打孔方法中确定安装板模型的布局信息的具体实施过程。The specific implementation process of determining the layout information of the mounting board model in the method for punching holes of the electrical mounting board provided in the embodiment of the present application will be explained in detail below.
图4为本申请实施例提供的电气安装板的打孔方法的另一流程示意图,请参照图4,确定安装板模型的布局信息,包括:Fig. 4 is another schematic flowchart of the punching method of the electrical installation board provided by the embodiment of the present application. Please refer to Fig. 4 to determine the layout information of the installation board model, including:
S410:获取安装板模型的最大垂直边线的位置以及最大水平边线的位置。S410: Obtain the position of the largest vertical edge and the largest horizontal edge of the mounting plate model.
可选地,若安装板模型只有一个安装面需要安装电气部件模型,则可以获取该安装面上的最大垂直边线的位置以及最大水平边线的位置,相应地,若存在多个安装面需要安装电气部件模型,则可以获取每个安装面上的最大垂直边线的位置以及最大水平边线的位置。Optionally, if the mounting plate model has only one mounting surface where the electrical component model needs to be installed, the position of the maximum vertical edge and the maximum horizontal edge on the mounting surface can be obtained. Correspondingly, if there are multiple mounting surfaces that need to install electrical components component model, the location of the largest vertical edge and the location of the largest horizontal edge on each mounting surface can be obtained.
需要说明的是,最大垂直边线的位置具体可以是该平面垂直方向上可以安装电气部件模型的边线位置,以一个矩形为例可以是左右边界;最大水平边线的位置具体可以是该平面水平方向上可以安装电气部件模型的边线位置,以一个矩形为例可以是上下边界。It should be noted that the position of the largest vertical edge can be specifically the position of the edge where the electrical component model can be installed in the vertical direction of the plane. Taking a rectangle as an example, it can be the left and right boundaries; the position of the largest horizontal edge can be specifically the position of the horizontal edge of the plane. The edge position of the electrical component model can be installed. Taking a rectangle as an example, it can be the upper and lower boundaries.
S420:基于最大垂直边线的位置以及最大水平边线的位置确定安装板模型的安装区域范围。S420: Determine the range of the installation area of the installation plate model based on the position of the largest vertical edge and the position of the largest horizontal edge.
可选地,得到最大垂直边线的位置以及最大水平边线的位置之后,可以确定这些边线所围成的范围,该范围即为安装板模型的安装区域范围。Optionally, after the position of the largest vertical edge and the position of the largest horizontal edge are obtained, the range surrounded by these edges can be determined, and the range is the range of the installation area of the mounting plate model.
需要说明的是,基于上述步骤S410-S420确定的即为安装板模型的布局信息中的安装板模型的安装区域范围。It should be noted that what is determined based on the above steps S410-S420 is the installation area range of the installation panel model in the layout information of the installation panel model.
S430:基于各个待安装至安装板模型的电气部件模型的尺寸确定各电气部件模型在安装板模型上的排布方式。S430: Based on the size of each electrical component model to be installed on the mounting plate model, determine an arrangement manner of each electrical component model on the mounting plate model.
可选地,具体可以基于各个待安装至安装板模型的电气部件模型的尺寸进行平面位置排布的计算,从而确定出每个电气部件在安装板模型上的可布局位置。Optionally, the calculation of the plane position arrangement may be performed based on the size of each electrical component model to be installed on the mounting plate model, so as to determine the layoutable position of each electrical component on the mounting plate model.
例如:第一个电气部件模型可以纵向摆放,间隔一定距离之后,第二个电气部件可以横向摆放,可以基于所有待安装至安装板模型的电气部件模型的数量以及每个电气部件模型的尺寸,计算出每个电气部件的可布局位置。For example: the first electrical part model can be placed vertically, and after a certain distance, the second electrical part can be placed horizontally, which can be based on the number of all electrical part models to be installed on the mounting plate model and the number of each electrical part model Dimensions, calculate the layout position of each electrical component.
进而可以基于用户的选择,或者从中选择最优的一种可选方案作为各电气部件模型在安装板模型上的排布方式。Furthermore, it may be based on the user's choice, or an optimal option may be selected as the arrangement of the electrical component models on the mounting board model.
除了上述自动计算的排布方式之外,也可以基于用户的输入自行定义排布方式,在此不作具体限制。In addition to the above-mentioned automatically calculated arrangement manner, the arrangement manner may also be defined based on the user's input, which is not specifically limited here.
需要说明的是,上述步骤S410-S420确定的是安装板模型的安装区域范围,步骤S430确定的是各电气部件模型在安装板模型上的排布方式,图4中以依次执行的方式作为展示,但是在实际实施过程中,S430与其他两个步骤并无必然的时序关系,在此不作具体时序上的限制,凡是可以得到上述布局信息即可。It should be noted that the above steps S410-S420 determine the range of the installation area of the mounting plate model, and step S430 determines the arrangement of the electrical component models on the mounting plate model, as shown in Figure 4 in a sequential manner , but in the actual implementation process, there is no necessary sequence relationship between S430 and the other two steps, and there is no specific sequence restriction here, as long as the above layout information can be obtained.
本申请实施例中提供的一种电气安装板的打孔方法中,可以获取安装板模型的最大垂直边线的位置以及最大水平边线的位置;基于最大垂直边线的位置以及最大水平边线的位置确定安装板模型的安装区域范围;基于各个待安装至安装板模型的电气部件模型的尺寸确定各电气部件模型在安装板模型上的排布方式。其中,通过上述方式可以更加准确地确定出安装板模型的布局信息。In a method for punching holes in an electrical mounting board provided in an embodiment of the present application, the position of the largest vertical edge and the position of the largest horizontal edge of the mounting plate model can be obtained; based on the position of the largest vertical edge and the position of the largest horizontal edge, the installation The range of the installation area of the board model; the arrangement of the electrical part models on the installation board model is determined based on the size of each electrical part model to be installed on the installation board model. Wherein, the layout information of the mounting plate model can be determined more accurately through the above method.
下面来具体解释本申请实施例中提供的电气安装板的打孔方法中确定安装板模型上对应的各个钻孔位置的具体实施过程。The specific implementation process of determining the corresponding drilling positions on the installation board model in the method for drilling electrical installation boards provided in the embodiments of the present application will be explained in detail below.
图5为本申请实施例提供的电气安装板的打孔方法的另一流程示意图,请参照图5,根据各电气部件模型的钻孔信息以及安装板模型的布局信息,确定安装板模型上对应的各个钻孔位置,包括:Fig. 5 is another schematic flow chart of the drilling method of the electrical installation board provided by the embodiment of the present application. Please refer to Fig. 5, according to the drilling information of each electrical component model and the layout information of the installation board model, the corresponding hole on the installation board model is determined. various drilling locations, including:
S510:将安装板模型的安装区域范围作为电气部件模型的可安装范围,并在可安装范围内,基于各电气部件模型在安装板模型上的排布方式确定各个电气部件模型的待安装位置区域。S510: Use the installation area range of the mounting plate model as the installable range of the electrical component model, and within the installable range, determine the to-be-installed location area of each electrical component model based on the arrangement of each electrical component model on the mounting plate model .
可选地,可安装范围具体可以是在实际安装过程中,可以安装对应的电气部件模型的范围,具体可以是基于安装板模型的安装区域范围确定的。Optionally, the installable range may specifically be a range within which a corresponding electrical component model can be installed during an actual installation process, and specifically may be determined based on an installation area range of the mounting plate model.
得到可安装范围之后,可以在该范围内,基于各电气部件模型在安装板模型上的排布方式确定各个电气部件模型的待安装位置区域,每个待安装位置区域都可以安装一个电气部件模型,该安装位置区域的大小可以与电气部件模型的安装面的大小相匹配。After the installable range is obtained, within this range, the to-be-installed location area of each electrical component model can be determined based on the arrangement of each electrical component model on the mounting plate model, and one electrical component model can be installed in each to-be-installed location area , the size of the mounting location area can match the size of the mounting surface of the electrical component model.
基于上述方式可以确定出每个待安装至安装板模型上的电气部件模型的待安装位置区域。The to-be-installed location area of each electrical component model to be installed on the mounting plate model can be determined based on the above method.
S520:在各个电气部件模型的安装位置区域内,基于各个电气部件模型的钻孔信息确定在安装板模型上对应的各个钻孔位置。S520: In the installation position area of each electrical component model, determine each corresponding drilling position on the mounting plate model based on the drilling information of each electrical component model.
可选地,可以基于每个电气部件模型的钻孔信息,确定该电气部件模型对应的每个钻孔的位置,进而可以在与电气部件模型相匹配的安装位置区域内,确定每个钻孔的在安装板模型上对应的钻孔位置。Optionally, based on the drilling information of each electrical component model, the position of each drilling hole corresponding to the electrical component model can be determined, and then each drilling hole can be determined within the installation location area that matches the electrical component model The corresponding drilling positions on the mounting plate model.
例如:电气部件模型的包括四个钻孔,则当该电气部件模型安装在安装位置区域内时,这些钻孔对应在安装板模型的位置即为在安装板模型上对应的各个钻孔位置。For example, if the electrical component model includes four drilled holes, when the electrical component model is installed in the installation location area, the positions of these drilled holes corresponding to the mounting plate model are the corresponding drilling positions on the mounting plate model.
需要说明的是,得到在安装板模型上对应的每个钻孔位置之后,可以将这些信息记录为目标打孔文件。其中记录的信息可以包括每个钻孔在安装板模型上的位置,可以按照具体的坐标来表示;每个钻孔的尺寸,具体可以包括钻孔的内径、深度等;每个钻孔的形状,例如:可以是圆形钻孔、方形钻孔或者三角形钻孔等多种类型的钻孔,在此不作具体限制。It should be noted that, after obtaining each corresponding drilling position on the mounting plate model, the information can be recorded as a target drilling file. The information recorded therein may include the position of each borehole on the mounting plate model, which may be expressed according to specific coordinates; the size of each borehole, which may specifically include the inner diameter and depth of the borehole, etc.; the shape of each borehole , for example: may be various types of drilling such as circular drilling, square drilling or triangular drilling, and is not specifically limited here.
本申请实施例中提供的一种电气安装板的打孔方法中,可以将安装板模型的安装区域范围作为电气部件模型的可安装范围,并在可安装范围内,基于各电气部件模型在安装板模型上的排布方式确定各个电气部件模型的待安装位置区域;在各个电气部件模型的安装位置区域内,基于各个电气部件模型的钻孔信息确定在安装板模型上对应的各个钻孔位置。其中,基于各个电气部件模型的钻孔信息以及安装板模型的布局信息,可以更加准确、快速地实现安装板模型上对应的各个钻孔位置的确定,提高了确定的精度和效率。In the method for punching holes of an electrical installation board provided in the embodiment of the present application, the installation area range of the installation board model can be used as the installable range of the electrical component model, and within the installable range, based on each electrical component model in the installation The arrangement on the board model determines the location area to be installed for each electrical component model; within the installation location area of each electrical component model, determine the corresponding drilling positions on the mounting plate model based on the drilling information of each electrical component model . Among them, based on the drilling information of each electrical component model and the layout information of the mounting plate model, the determination of the corresponding drilling positions on the mounting plate model can be realized more accurately and quickly, and the determination accuracy and efficiency are improved.
下面来具体解释本申请实施例中提供的安装板模型上具体安装多个电气部件模型的示例结构关系。The example structural relationship of specifically installing multiple electrical component models on the mounting plate model provided in the embodiment of the present application will be explained in detail below.
图6为本申请实施例中提供的安装板模型的结构示意图,请参照图6,图6中所示包括一个安装板模型610,在该安装板模型上可以包括多个安装位置区域620,图6中以四个安装位置区域为例。Fig. 6 is a schematic structural view of the mounting plate model provided in the embodiment of the present application, please refer to Fig. 6, a mounting
每个安装位置区域可以安装一个电气部件模型,具体可以基于该电气部件模型的钻孔信息确定出该安装板模型610上的各个钻孔的位置,进而可以执行后续的目标打孔文件的生成等工作。An electrical component model can be installed in each installation position area, specifically, the position of each drilling hole on the mounting
下述对用以执行的本申请所提供的电气安装板的打孔方法对应的装置、设备及存储介质等进行说明,其具体的实现过程以及技术效果参见上述,下述不再赘述。The following describes the devices, equipment, and storage media corresponding to the method for punching electrical installation boards provided by the present application. For the specific implementation process and technical effects, refer to the above, and will not be repeated below.
图7为本申请实施例中提供的电气安装板的打孔装置的结构示意图,请参照图7,电气安装板的打孔装置,包括:钻孔确定模块710、布局确定模块720、文件生成模块730、打孔模块740;Fig. 7 is a schematic structural diagram of the punching device of the electrical installation board provided in the embodiment of the present application, please refer to Fig. 7, the punching device of the electrical installation board includes: a
钻孔确定模块710,用于确定各电气部件模型的钻孔信息,各电气部件模型为待安装至安装板模型的部件,各电气部件模型以及安装板模型均为在计算机软件中显示的三维模型,电气部件模型的钻孔信息包括:各钻孔在电气部件模型上的坐标、尺寸、类型以及各钻孔之间的排布关系;The
布局确定模块720,用于确定安装板模型的布局信息,布局信息包括:安装板模型的安装区域范围以及各电气部件模型在安装板模型上的排布方式;The
文件生成模块730,用于根据各电气部件模型的钻孔信息以及安装板模型的布局信息,确定安装板模型上对应的各个钻孔位置,并基于安装板模型上对应的各个钻孔位置生成目标打孔文件;The
打孔模块740,用于基于目标打孔文件对待打孔的安装板模型打孔。The
可选地,钻孔确定模块710,具体用于针对每个电气部件模型,分别执行以下步骤:获取初始孔数据,初始孔数据包括:在初始设计样式中各个孔的坐标、尺寸、类型以及多个孔之间的排布关系;基于电气部件模型的形状,将初始孔数据映射至电气部件模型的安装面上,得到电气部件模型的钻孔信息。Optionally, the
可选地,钻孔确定模块710,还用于确定各电气部件模型的钻孔信息是否发生偏移;若是,对初始孔数据进行调整,得到调整后的孔数据;将调整后的孔数据映射至电气部件模型的安装面上,得到电气部件模型的钻孔信息。Optionally, the
可选地,钻孔确定模块710,具体用于修改初始孔数据中各个孔的坐标,并将修改后各个孔的坐标作为调整后的孔数据中各个孔的坐标。Optionally, the
可选地,钻孔确定模块710,具体用于确定电气部件模型的打孔位置是否与检测安装板的打孔位置匹配;若匹配,确定电气部件模型的钻孔信息没有发生偏移;若不匹配,确定电气部件模型的钻孔信息发生了偏移。Optionally, the
可选地,布局确定模块720,具体用于获取安装板模型的最大垂直边线的位置以及最大水平边线的位置;基于最大垂直边线的位置以及最大水平边线的位置确定安装板模型的安装区域范围;基于各个待安装至安装板模型的电气部件模型的尺寸确定各电气部件模型在安装板模型上的排布方式。Optionally, the
可选地,文件生成模块730,具体用于将安装板模型的安装区域范围作为电气部件模型的可安装范围,并在可安装范围内,基于各电气部件模型在安装板模型上的排布方式确定各个电气部件模型的待安装位置区域;在各个电气部件模型的安装位置区域内,基于各个电气部件模型的钻孔信息确定在安装板模型上对应的各个钻孔位置。Optionally, the
本申请实施例提供的一种电气安装板的打孔装置中,可以确定各电气部件模型的钻孔信息,并且可以确定安装板模型的布局信息,进而可以根据各电气部件模型的钻孔信息以及安装板模型的布局信息,确定安装板模型上对应的各个钻孔位置,并基于安装板模型上对应的各个钻孔位置生成目标打孔文件;基于目标打孔文件对待打孔的安装板模型打孔。其中,各电气部件模型以及安装板模型均为在计算机软件中显示的三维模型,通过三维模型中各个电气部件模型的钻孔信息以及安装板模型的布局信息,可以更加全面、准确、直观地确定出安装板模型上对应的各个钻孔位置,进而在基于目标打孔文件对待打孔的安装板模型打孔时,可以使得打孔的位置更加准确、打孔的效率更高。In a drilling device for an electrical installation board provided in an embodiment of the present application, the drilling information of each electrical component model can be determined, and the layout information of the installation board model can be determined, and then the drilling information of each electrical component model and the layout information of the installation board model can be determined. The layout information of the mounting plate model determines the corresponding drilling positions on the mounting plate model, and generates the target punching file based on the corresponding drilling positions on the mounting plate model; punches the mounting plate model to be punched based on the target punching file hole. Among them, each electrical component model and mounting plate model are three-dimensional models displayed in computer software, through the drilling information of each electrical component model in the three-dimensional model and the layout information of the mounting plate model, it can be determined more comprehensively, accurately and intuitively Find out the corresponding drilling positions on the mounting plate model, and then punch the mounting plate model to be punched based on the target punching file, which can make the drilling position more accurate and the drilling efficiency higher.
上述装置用于执行前述实施例提供的方法,其实现原理和技术效果类似,在此不再赘述。The above-mentioned device is used to execute the methods provided in the foregoing embodiments, and its implementation principles and technical effects are similar, and details are not repeated here.
以上这些模块可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个特定集成电路(Application Specific Integrated Circuit,简称ASIC),或,一个或多个微处理器,或,一个或者多个现场可编程门阵列(Field Programmable Gate Array,简称FPGA)等。再如,当以上某个模块通过处理元件调度程序代码的形式实现时,该处理元件可以是通用处理器,例如中央处理器(Central Processing Unit,简称CPU)或其它可以调用程序代码的处理器。再如,这些模块可以集成在一起,以片上系统(system-on-a-chip,简称SOC)的形式实现。The above modules may be one or more integrated circuits configured to implement the above method, for example: one or more specific integrated circuits (Application Specific Integrated Circuit, referred to as ASIC), or, one or more microprocessors, or, One or more Field Programmable Gate Arrays (Field Programmable Gate Array, FPGA for short), etc. For another example, when one of the above modules is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (Central Processing Unit, CPU for short) or other processors that can call program codes. For another example, these modules can be integrated together and implemented in the form of a system-on-a-chip (SOC for short).
图8为本申请实施例中提供的计算机设备的结构示意图,请参照图8,计算机设备,包括:存储器810、处理器820,存储器810中存储有可在处理器820上运行的计算机程序,处理器820执行计算机程序时,实现电气安装板的打孔方法的步骤。FIG. 8 is a schematic structural diagram of a computer device provided in the embodiment of the present application. Please refer to FIG. When the computer program is executed by the
本申请实施例的另一方面,还提供一种计算机可读存储介质,存储介质上存储有计算机程序,该计算机程序被处理器执行时,实现电气安装板的打孔方法的步骤。Another aspect of the embodiments of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for punching an electrical installation board are implemented.
在本发明所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated. to another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。A unit described as a separate component may or may not be physically separated, and a component displayed as a unit may or may not be a physical unit, that is, it may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware, or in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(英文:processor)执行本发明各个实施例方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取存储器(英文:Random Access Memory,简称:RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-mentioned integrated units implemented in the form of software functional units may be stored in a computer-readable storage medium. The above-mentioned software functional units are stored in a storage medium, and include several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) or a processor (English: processor) to execute the methods of various embodiments of the present invention. partial steps. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), magnetic disk or optical disc, etc. Various media that can store program code.
上仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the application, but the scope of protection of the application is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the application, and should be covered in Within the protection scope of this application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
以上所述仅为本申请的优选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above descriptions are only preferred embodiments of the present application, and are not intended to limit the present application. For those skilled in the art, there may be various modifications and changes in the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this application shall be included within the protection scope of this application.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310306353.3A CN116228988A (en) | 2023-03-24 | 2023-03-24 | Method, device, equipment and storage medium for punching electric mounting plate |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310306353.3A CN116228988A (en) | 2023-03-24 | 2023-03-24 | Method, device, equipment and storage medium for punching electric mounting plate |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN116228988A true CN116228988A (en) | 2023-06-06 |
Family
ID=86569540
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310306353.3A Pending CN116228988A (en) | 2023-03-24 | 2023-03-24 | Method, device, equipment and storage medium for punching electric mounting plate |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116228988A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116713378A (en) * | 2023-08-04 | 2023-09-08 | 季华实验室 | Punching direction determining method, device, equipment and computer readable storage medium |
| CN118364661A (en) * | 2024-06-20 | 2024-07-19 | 广州王石软件技术有限公司 | Method, device, equipment and storage medium for generating layout of drilling and packing tool |
-
2023
- 2023-03-24 CN CN202310306353.3A patent/CN116228988A/en active Pending
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116713378A (en) * | 2023-08-04 | 2023-09-08 | 季华实验室 | Punching direction determining method, device, equipment and computer readable storage medium |
| CN116713378B (en) * | 2023-08-04 | 2023-09-29 | 季华实验室 | Punching direction determining method, device, equipment and computer readable storage medium |
| CN118364661A (en) * | 2024-06-20 | 2024-07-19 | 广州王石软件技术有限公司 | Method, device, equipment and storage medium for generating layout of drilling and packing tool |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN116228988A (en) | Method, device, equipment and storage medium for punching electric mounting plate | |
| US10885707B1 (en) | Network, system and method for multi-view 3D mesh generation via deformation | |
| US12067102B2 (en) | Security verification method and relevant device | |
| CN101154245B (en) | Shape detailing device, shape detailing method, mechanical cad machine, and method of manufacturing three-dimensional structure | |
| CN101154244B (en) | Method and device for creating height-limited-area information | |
| TW200919247A (en) | Layout versus schematic error system and method | |
| CN109683858B (en) | Data processing method and device | |
| CN112324095B (en) | Method and system for intelligently assembling building space | |
| US20150199801A1 (en) | Apparatus and methods for replicating a key from an image depicting the key | |
| CN115457202B (en) | Method, device and storage medium for updating three-dimensional model | |
| CN114444185B (en) | In-situ marking recognition method, device and electronic equipment | |
| CN109461198B (en) | Grid model processing method and device | |
| JP5790873B2 (en) | Computer-implemented method for identifying a group of punched holes | |
| CN103838909A (en) | Information processing apparatus, information processing method, and program | |
| CN103678746A (en) | Circuit design simulation system of printed circuit board and circuit design method thereof | |
| JP5842523B2 (en) | Design support apparatus, design support program, and design support method | |
| JPWO2008126317A1 (en) | Gap detection method, CAD program, and CAD system | |
| CN115062388B (en) | Method, apparatus and computer readable storage medium for determining component orientation | |
| CN103369834B (en) | The target parameters processing method made for PCB and device | |
| CN116168174A (en) | Method and device for repairing building missing structure point cloud | |
| CN112767472B (en) | Method for positioning lamp beads in display screen image, computing equipment and storage medium | |
| CN106354516A (en) | Method and device for tracking equipment | |
| US20240127456A1 (en) | Method for learning a target object by extracting an edge from a digital model of the target object, and a method for augmenting a virtual model on a real object corresponding to the digital model of the target object using the same | |
| CN113987997B (en) | Method and device for checking metal bumps in chip design and electronic equipment | |
| CN116046017B (en) | Calibration method and device for measuring path, storage medium and computer equipment |
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 |