Electrical Design Method, System and Storage Medium for Architectural Electrical Engineering Drawings

Through automated methods, the closed contour of building electrical engineering drawings is obtained and split, which solves the problem of low manual drawing efficiency in the prior art, realizes the determination and arrangement of automated lamp components, and improves the drawing efficiency and rationality of lamp distribution.

CN114491715BActive Publication Date: 2025-06-24HANGZHOU ARCHITECTURE DESIGN RES YUAN CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210044741.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-14
Publication Date
2025-06-24
Estimated Expiration
2042-01-14

AI Technical Summary

Technical Problem

The drawing of existing building electrical engineering drawings requires manual completion, which is time-consuming and labor-intensive, resulting in low drawing efficiency.

Method used

By obtaining the closed contour of the building electrical engineering drawings, performing contour splitting of preset geometric figures, extracting attribute information of the closed sub-contour, calculating the area and determining the number and type of lamp components, automatically adding the lamp components and generating electrical connection lines.

Benefits of technology

Automating the determination and arrangement of lamp components, reducing the workload of engineers, improving drawing efficiency, and ensuring the rationality and consistency of lamp distribution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114491715B_ABST
    Figure CN114491715B_ABST
Patent Text Reader

Abstract

The present application discloses an electrical design method, system and storage medium for architectural electrical engineering drawings, relating to the field of image drawing, and including the following steps: obtaining the architectural electrical engineering drawing of a target object and extracting the closed contour of the target object; splitting the closed contour according to a preset geometric figure to obtain closed sub-contours; obtaining the attribute information of the closed sub-contours and calculating the areas of the closed sub-contours; determining the types of lamp components and the quantities of lamp components of each type; adding the lamp components to the area of the architectural electrical engineering drawing corresponding to the closed sub-contours and generating the electrical connection lines of the lamp components. After the engineer completes the contour of the electrical engineering drawing, the arrangement of the lamp components is automatically realized by software. The engineer only needs to check and adjust after the lamp arrangement, which can greatly reduce the work burden of the engineer, extend the effective working time of the engineer, and thus improve the drawing efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of image drawing, and in particular to an electrical design method, system and storage medium for building electrical engineering drawings. Background Art

[0002] When conducting building design, CAD drawing software is used to first design the indoor space, so that construction or decoration can be carried out according to the design drawings after the design drawings are reviewed and approved.

[0003] The general drawing sequence of such design drawings is to first build a framework to form the indoor space, and then add lamps according to actual needs in the indoor space, and arrange the lamps to improve the lighting utilization rate and aesthetics.

[0004] Regarding the above related technologies, the inventor believes that the existing design drawing drawings all need to be manually completed, which is time-consuming and laborious, and is prone to work fatigue, resulting in low drawing efficiency. Summary of the Invention

[0005] In order to improve the drawing efficiency, this application provides an electrical design method, system and storage medium for building electrical engineering drawings.

[0006] In a first aspect, this application provides an electrical design method for building electrical engineering drawings, adopting the following technical solutions:

[0007] An electrical design method for building electrical engineering drawings includes the following steps:

[0008] Obtain the building electrical engineering drawing of the target object, and extract the closed contour of the target object;

[0009] Perform contour splitting on the closed contour according to a preset geometric figure to obtain closed sub-contours;

[0010] Obtain the attribute information of the closed sub-contour, where the attribute information includes side length and type;

[0011] Calculate the area of the closed sub-contour according to the side length of the closed sub-contour;

[0012] Determine the type of the lamp assembly according to the type of the closed sub-contour, and determine the quantity of each type of the lamp assembly according to the area of the closed sub-contour;

[0013] Add the lamp assembly to the area of the building electrical engineering drawing corresponding to the closed sub-contour, and generate the electrical connection line of the lamp assembly.

[0014] By adopting the above technical solution, after the engineer completes the outline of the electrical engineering drawing, the arrangement of the lighting fixture components can be automatically realized by the software. The engineer only needs to check and adjust after the lighting fixtures are arranged, which can greatly reduce the engineer's workload, extend the engineer's effective working hours, and thus improve the drawing efficiency.

[0015] Optionally, the closed contour is split into closed sub-contours according to a preset geometric figure, including the following steps:

[0016] Judge whether there is a trapezoidal angle in the closed contour,

[0017] If there is a trapezoidal angle in the closed contour, the following operations are performed on the trapezoidal angle in the closed contour:

[0018] Extend along one side of the trapezoidal angle to divide the closed contour into two first candidate contours, and extend along the other side of the trapezoidal angle to divide the closed contour into two second candidate contours;

[0019] Calculate the area ratio between the two first candidate contours and the area ratio between the two second candidate contours respectively;

[0020] Take the candidate contour corresponding to the area ratio with a value closer to 1 among the two area ratios as the closed sub-contour, and take the extension line of the corresponding trapezoidal angle side as the virtual boundary between the two corresponding closed sub-contours.

[0021] By adopting the above technical solution, the areas of the regions of the building electrical engineering drawings corresponding to the divided closed sub-contours are made as close as possible, so as to reduce the situation that the area of the region of the building electrical engineering drawing divided is too small to arrange lighting fixtures, and make the distribution of lighting fixtures in the entire region of the building electrical engineering drawing corresponding to the closed contour as reasonable as possible.

[0022] Optionally, adding the lighting fixture components to the region of the building electrical engineering drawing corresponding to the sub-closed contour includes the following steps:

[0023] Judge whether there is a virtual boundary in the current closed sub-contour,

[0024] If there is a virtual boundary in the current closed sub-contour, judge whether the single-side boundary containing the virtual boundary in the current closed sub-contour also contains a physical boundary,

[0025] If the single-side boundary containing the virtual boundary in the current closed sub-contour does not contain a physical boundary, then judge whether there are lighting fixture components in the adjacent closed sub-contours sharing the same corresponding virtual boundary;

[0026] If there are lamp components in adjacent closed sub - contours sharing the same corresponding virtual boundary, the theoretical side length of the current closed sub - contour is determined according to the lamp component in the adjacent closed sub - contour that is closest to the shared virtual boundary;

[0027] If there are no lamp components in adjacent closed sub - contours sharing the same corresponding virtual boundary, the theoretical side length of the current closed sub - contour is determined according to the distance from the adjacent closed sub - contour to the shared virtual boundary;

[0028] The arrangement of lamp components is determined according to the theoretical side length of the closed sub - contour.

[0029] By adopting the above technical solution, the areas of the building electrical engineering drawings corresponding to the closed sub - contours with virtual boundaries are actually integrated and cannot be arranged with lamp components independently. Therefore, when calculating the distance between relative boundaries of the closed sub - contours with virtual boundaries, the influence of lamp components in adjacent building electrical engineering drawing areas needs to be considered to avoid large differences in the spacing between lamp components within the building electrical engineering drawing areas corresponding to the same closed contour.

[0030] Optionally, extracting the closed contour of the target object further includes the following steps:

[0031] Identify the door components in the closed contour;

[0032] Adding the lamp components to the building electrical engineering drawing area corresponding to the sub - closed contour and generating the electrical connection lines of the lamp components includes the following steps:

[0033] Dividing the building electrical engineering drawing area corresponding to the closed contour into several control areas based on the number of door components, where each control area contains at least one door component;

[0034] Determine the switch positions according to the door components;

[0035] Determine the switch components according to the distribution of the lamp components, set the switch components at the switch positions corresponding to the respective door components, and generate the control connection lines between the switch components and the lamp components in the corresponding control areas as well as the electrical connection lines between the lamp components.

[0036] By adopting the above technical solution, the determination of the switch components and switch positions is automatically completed according to the door components and lamp components, further reducing the work content that engineers need to complete and further improving the drawing efficiency.

[0037] Optionally, dividing the building electrical engineering drawing area corresponding to the closed contour into several control areas based on the number of door components includes the following steps:

[0038] Judge whether the number of door components in the building electrical engineering drawing area corresponding to the closed contour is unique,

[0039] If the number of door components within the area of the building electrical engineering drawing corresponding to the closed contour is unique, then the entire area of the building electrical engineering drawing is taken as a control area;

[0040] If the number of door components within the area of the building electrical engineering drawing corresponding to the closed contour is not unique, then it is determined whether there are two door components symmetrically arranged on the same boundary of the closed contour or two door components symmetrically arranged on two opposite boundaries of the closed contour;

[0041] If there are two door components symmetrically arranged on the same boundary of the closed contour or two door components symmetrically arranged on two opposite boundaries of the closed contour, then the area of the building electrical engineering drawing corresponding to the closed contour is divided into two control areas by the symmetry line between the two symmetrically arranged door components;

[0042] If there are no two door components symmetrically arranged on the same boundary of the closed contour or two door components symmetrically arranged on two opposite boundaries of the closed contour, then the entire area of the building electrical engineering drawing corresponding to the closed contour is taken as a control area.

[0043] By adopting the above technical solution, when dividing the control area, on the basis of ensuring that there is at least one door component in each control area, the equivalence between the control areas should also be guaranteed, so that the lamp components controlled by the switch components corresponding to the door components can also establish a corresponding relationship with the corresponding door components, avoiding the situation of disordered control between the lamp components and the switch components.

[0044] Optionally, determining the switch position according to the door component includes the following steps:

[0045] Different types of door components correspond to different switch position determination methods.

[0046] When the door component is a single-leaf door component, obtain the opening direction of the corresponding door component, and determine the switch position on the boundary where the door component is located according to the opening direction and the position of the door component;

[0047] When the door component is a double-leaf door component, compare the distances from the two adjacent boundaries where the door component is located to the door component, and determine the switch position on the side of the door component facing the boundary with a farther distance.

[0048] By adopting the above technical solution, setting the switch beside the door is for the convenience of actual use. Since different types of door components have different methods for determining the switch position, the installation position of the switch is determined according to the type of the door, effectively improving the rationality of the design.

[0049] Optionally, determining the switch component according to the distribution of the lamp components includes the following steps:

[0050] Determine whether the number of rows of the lamp assemblies in the control area is lower than a preset value.

[0051] If the number of rows of the lamp assemblies in the control area is lower than the preset value, the lamp assemblies in the same row establish a series connection relationship, and the switch assembly is determined according to the number of rows.

[0052] If the number of rows of the lamp assemblies in the control area exceeds or is equal to the preset value, the lamp assemblies in adjacent rows are regarded as the same row, and it is determined again whether the number of rows of the lamp assemblies in the control area is lower than the preset value.

[0053] Optionally, it further includes the following steps: Determine whether the boundary of the closed contour contains window assemblies.

[0054] If the boundary of the closed contour does not contain window assemblies, control the lamp assemblies to face a predetermined direction.

[0055] If the boundary of the closed contour contains window assemblies, determine whether the boundary containing the window assemblies is unique.

[0056] If the boundary containing the window assemblies is unique, all the lamp assemblies face the window assemblies.

[0057] If the boundary containing the window assemblies is not unique, calculate the length of the window assemblies, and make the lamp assemblies face the window assembly with the longest length.

[0058] By adopting the above technical solution, the orientation of the lamp assemblies is unified according to the window assemblies. On the one hand, it is to improve the aesthetics, and on the other hand, it is to clarify the definition of rows in the lamp assemblies, which is convenient for establishing an association relationship.

[0059] Secondly, the present application provides an electrical design system for a building electrical engineering drawing, including:

[0060] An extraction module, configured to obtain a building electrical engineering drawing of a target object and extract the closed contour of the target object.

[0061] A splitting module, configured to split the closed contour according to a preset geometric figure to obtain closed sub-contours, and obtain the attribute information of the closed sub-contours, where the attribute information includes side lengths and types.

[0062] A calculation module, configured to calculate the area of the closed sub-contour according to the side lengths of the closed sub-contour.

[0063] A selection module, configured to determine the type of the lamp assemblies according to the type of the closed sub-contours, and determine the quantity of each type of the lamp assemblies according to the area of the closed sub-contours.

[0064] The layout module adds the lamp component to the area of the architectural electrical engineering drawing corresponding to the closed sub - contour and generates the electrical connection lines of the lamp component.

[0065] In a third aspect, the present application provides a computer - readable storage medium storing a computer program that can be loaded and executed by a processor, such as the electrical design method of the architectural electrical engineering drawing described above.

[0066] In summary, the present application includes at least one of the following beneficial technical effects:

[0067] 1. Automatically determine and arrange the lamp components according to the closed contour, reducing the workload of engineers and improving the drawing efficiency;

[0068] 2. By splitting the complex closed contour, it is convenient to determine the number of lamp components, and make the closed sub - contours related to each other when arranging the lamp components, ensuring the consistency of the overall layout of the lamp components. Brief Description of the Drawings

[0069] Figure 1 is the step block diagram of an embodiment of the present application.

[0070] Figure 2 is the schematic diagram of the architectural electrical engineering drawing of an embodiment of the present application. Detailed Description of the Embodiment

[0071] The following will further elaborate on the present application with reference to the Figures 1 to 2 drawings.

[0072] The embodiment of the present application discloses an electrical design method for an architectural electrical engineering drawing. Referring to Figure 1 , it includes the following steps:

[0073] S100. Obtain the architectural electrical engineering drawing of the target object and extract the closed contour of the target object.

[0074] The architectural electrical engineering drawing refers to the drawing drawn in 2D drawing software such as AutoCAD and HighDesign.

[0075] The architectural electrical engineering drawing of the target object refers to the architectural electrical engineering drawing selected based on the user's operation.

[0076] The closed contour refers to the boundary of the indoor area in the architectural electrical engineering drawing of the target object that cannot be further split. Among them, the indoor area includes rooms, living rooms, corridors, kitchens, etc.

[0077] The way to extract the closed contour of the target object is that after the user selects the architectural electrical engineering drawing of the target object, the user clicks the virtual button of "automatic recognition", so that the corresponding image recognition software is started to recognize the closed image as the closed contour.

[0078] S200. Split the closed contour according to a preset geometric figure to obtain closed sub-contours.

[0079] The preset geometric figures refer to squares and circles. These two types of shapes are most commonly used in architectural design. And compared with figures such as triangles and trapezoids, it is also easier to arrange lamp components in a square or circular area.

[0080] The closed sub-contour is the contour of a single image whose shape is a square or a circle.

[0081] When the closed contour is a single circle or square, the closed contour is a closed sub-contour.

[0082] When the closed contour is composed of a combination of circles and squares, the difference between the circle and the square is huge, and the splitting method is single. Therefore, the circle and the square can be split by image recognition to form the corresponding closed sub-contours.

[0083] However, when the closed contour is composed of multiple squares, the splitting methods are diverse. Therefore, it is necessary to further judge how to split the closed contour into closed sub-contours.

[0084] Therefore, in one embodiment, splitting the closed contour according to a preset geometric figure to obtain closed sub-contours includes the following steps:

[0085] S210. Judge whether there is a trapezoidal angle in the closed contour.

[0086] If there is a trapezoidal angle in the closed contour, then steps S220 to S240 are sequentially executed for the trapezoidal angles in the closed contour.

[0087] If there is no trapezoidal angle in the closed contour, it is considered that the closed contour is not composed of a combination of square images and square images.

[0088] A trapezoidal angle refers to a right angle that is recessed into the closed contour on the boundary of the closed contour. As long as the closed contour is composed of a combination of multiple square images, there must be trapezoidal angles.

[0089] In addition, since the judgment bases between square images and between square images and circular images are different, whether there is a trapezoidal angle in the closed contour or not, the closed contour needs to be judged by image recognition whether there is a circular image to ensure the extraction of the closed sub-contours of the figure.

[0090] S220. Extend along one side of the trapezoidal angle to divide the closed contour into two first candidate contours, and extend along the other side of the trapezoidal angle to divide the closed contour into two second candidate contours.

[0091] Both the first candidate contours and the second candidate contours are formed based on the complete closed contour, and there is no mutual influence between the first candidate contours and the second candidate contours.

[0092] S230. Calculate the area ratios between the two first candidate contours and the area ratios between the two second candidate contours respectively.

[0093] Calculating the area ratio is to divide the areas of the two corresponding regions, and which area is used as the divisor and which area is used as the dividend does not affect the comparison in step S240.

[0094] S240. Take the candidate contour corresponding to the area ratio with a value closer to 1 among the two area ratios as the closed sub - contour, and take the extension line of the corresponding trapezoidal - angle side as the virtual boundary between the two corresponding closed sub - contours. For example Figure 2 the dashed line X1 in

[0095] The way to determine which area ratio is closer to 1 is to take the absolute value after subtracting 1 from the area ratio, then compare the magnitudes of the two absolute values, and select the candidate contour with the smaller corresponding absolute value as the closed sub - contour.

[0096] Taking the candidate contour corresponding to the area ratio with a value closer to 1 among the two area ratios as the closed sub - contour is to make the areas between the divided closed sub - contours more balanced, avoid the appearance of closed sub - contours with extremely small areas, and enable more reasonable layout of lamps in the subsequent process.

[0097] S300. Obtain the attribute information of the closed sub - contour, where the attribute information includes side length and type.

[0098] The closed contour corresponds to a single indoor space, such as a corridor, a room, a living room, etc., that is, each closed contour corresponds to one type. When the closed contour is split into closed sub - contours, each split - out closed sub - contour inherits the type corresponding to the closed contour.

[0099] The way to obtain the type is to identify the name pre - recorded in the area of the building electrical engineering drawing corresponding to the closed contour, and match the corresponding type from a preset database according to the name.

[0100] In addition, if the name in the closed contour cannot be identified or the corresponding type cannot be matched according to the identified name, the type corresponding to the corresponding closed sub - contour is defaulted to be a room.

[0101] When the closed sub - contour is circular, its side length refers to the radius of the corresponding circular image.

[0102] When the closed sub - contour is square, its side length refers to the length of the long side and the length of the short side of the corresponding square image.

[0103] S400. Calculate the area of the closed sub - contour according to the side length of the closed sub - contour; determine the type of the lighting fixture assembly according to the type of the closed sub - contour, and determine the quantity of each type of the lighting fixture assembly according to the area of the closed sub - contour.

[0104] When the closed sub - contour is circular, the area of the closed sub - contour is the square of the side length multiplied by π.

[0105] When the closed sub - contour is square, the area of the closed sub - contour is the product of the length of the long side and the length of the short side of the square image.

[0106] The lighting fixture assembly refers to the pattern of the lighting fixture in the drawing software. Different types of lighting fixtures correspond to different lighting fixture assemblies. Determining the type of the lighting fixture assembly according to the type of the closed sub - contour is to make the lighting fixture assembly more reasonable after being arranged in the corresponding area. For example, when the type of the closed sub - contour corresponds to a room, the lighting fixture assembly corresponds to a double - tube incandescent lamp. Another example is that when the type of the closed sub - contour corresponds to a corridor, the lighting fixture assembly corresponds to a round ceiling lamp. In order to show the difference, the graphics of the lighting fixture assemblies corresponding to different types of lighting fixtures are also different. For example, the graphic of the lighting fixture assembly corresponding to the double - tube incandescent lamp is a double - tube lamp as shown in Figure 2 which is a double - tube lamp, and the graphic of the lighting fixture assembly corresponding to the round ceiling lamp is a circle.

[0107] The area of the closed sub - contour is in a direct - proportion relationship with the quantity of the lighting fixture assemblies, that is, the larger the area to be illuminated, the more lighting fixtures are used.

[0108] Specifically, obtaining the quantity of the lighting fixture assemblies according to the area of the closed sub - contour is calculated according to a preset calculation formula.

[0109] In this embodiment, the preset calculation formula is S*K1 / K2, where S is the area of the closed sub - contour; K1 is a fixed value, representing the number of watts allocated per square meter, and its value is set manually; K2 is a variable value, representing the number of watts that a single lighting fixture can provide, and its value is determined by the type information. For example, when the type information corresponds to a room, K2 is 80, and when the type information corresponds to a corridor, K2 is 60. The result of the calculation formula is rounded to obtain the number of lighting fixture assemblies. The rounding method can be the round - up or round - down method, or it can be set by the staff.

[0110] S500. Add the lighting fixture assembly to the area of the building electrical engineering drawing corresponding to the closed sub - contour, and generate the electrical connection line of the lighting fixture assembly.

[0111] As it is necessary to determine the number of lighting fixture components according to the area of the closed sub - contour, when arranging the lighting fixture components into the corresponding area of the building electrical engineering drawing, a more reasonable distribution also needs to be considered.

[0112] When the closed sub - contour is circular, adding the lighting fixture components to the area of the building electrical engineering drawing corresponding to the closed sub - contour is to match the corresponding arrangement method from a preset database according to its radius and the number of lighting fixture components. For example, if the radius is 6 and the number of lighting fixture components is 20, then the arrangement method is 12:5:3, that is, the radius is evenly divided into three parts in the corresponding area of the building electrical engineering drawing to form two concentric rings and a circle. Among them, 12 lighting fixture components are arranged along the outer ring, 5 lighting fixture components are arranged along the middle ring, and 3 lighting fixture components are arranged along the middle circle.

[0113] When the closed sub - contour is square, adding the lighting fixture components to the area of the building electrical engineering drawing corresponding to the closed sub - contour includes the following steps:

[0114] S510. Determine whether the current closed sub - contour has a virtual boundary.

[0115] Determining whether the current closed sub - contour has a virtual boundary is to confirm whether the closed sub - contour is directly converted from a closed contour, and then perform different subsequent steps.

[0116] S520. If the current closed sub - contour has a virtual boundary, then determine whether the single - side boundary containing the virtual boundary of the current closed sub - contour also contains a physical boundary.

[0117] If the current closed sub - contour does not have a virtual boundary, directly execute step S550.

[0118] If the current closed sub - contour has a virtual boundary, then determine whether the single - side boundary containing the virtual boundary of the current closed sub - contour also contains a physical boundary to further identify whether the virtual boundary affects the determination of the side length of the closed sub - contour.

[0119] S530. If the single - side boundary containing the virtual boundary of the current closed sub - contour does not contain a physical boundary, then determine whether there are lighting fixture components in the adjacent closed sub - contours sharing the same corresponding virtual boundary.

[0120] S540. If there are lighting fixture components in the adjacent closed sub - contours sharing the same corresponding virtual boundary, then determine the theoretical side length of the current closed sub - contour according to the lighting fixture component closest to the shared virtual boundary in the adjacent closed sub - contours.

[0121] If there is no lighting component in adjacent closed sub - contours sharing the same corresponding virtual boundary, determine the theoretical side length of the current closed sub - contour according to the distance from the adjacent closed sub - contours to the shared virtual boundary.

[0122] S550. Determine the arrangement of the lighting components according to the theoretical side length of the closed sub - contour.

[0123] After the positions of the lights in the closed contour are all determined, it is also necessary to simulate the control of the lights, that is, install switch images in the closed contour and match the control relationship between the switch images and the lighting components.

[0124] In one embodiment, obtaining the closed contour further includes the following steps:

[0125] Identify the door components in the closed contour.

[0126] The door component refers to the door applied in the indoor space. No matter what type of space the closed contour is, there is a corresponding door component. If the door component cannot be identified, a prompt is issued. Therefore, identifying the door component can also be used to assist in identifying the closed contour to reduce the situation of mis - identification.

[0127] Correspondingly, determining the arrangement of the lighting components according to the theoretical side length of the closed sub - contour further includes the following steps:

[0128] S560. Divide the closed contour into several control areas based on the number of door components, and determine the association relationship for the lighting components in each control area.

[0129] Among them, each control area contains at least one door component, and the number of association relationships in each control area does not exceed a preset number. The association relationship refers to the series relationship between the lights corresponding to the lighting components, that is, when a button of the switch is triggered, the lights with the association relationship light up or go out simultaneously. In this embodiment, the preset number is 4.

[0130] Determine the arrangement method of the lighting components according to the length information and width information: There are multiple sets stored in the preset database that correspond one - to - one with the number of lights. Each set stores several value ranges and the arrangement methods corresponding one - to - one with the value ranges.

[0131] After determining the set according to the number of lighting components calculated by the formula, then match the corresponding value range according to the length information and width information to determine the arrangement method.

[0132] For example, in the set corresponding to 4 lamp fixtures, the value range of [the ratio of length to width is greater than 1.5] corresponds to the 4*1 arrangement; the value range [the ratio of length to width is less than 0.7] corresponds to the 1*4 arrangement; the value range [the ratio of length to width is between 0.7 and 1.5] corresponds to the 2*2 arrangement.

[0133] Finally, according to the arrangement, the positions of the lamp fixture components are determined in an equally proportioned arrangement in the length direction and the width direction respectively.

[0134] In one embodiment, based on the number of door components, the closed contour is divided into several control regions, including the following steps:

[0135] Determine whether the number of door components is one.

[0136] If the number of door components is one, then the entire closed contour is taken as one control region.

[0137] If the number of door components is not one, then determine whether there are two door components symmetrically arranged on the same boundary or two door components symmetrically arranged on two opposite boundaries.

[0138] If there are two door components symmetrically arranged on the same boundary or two door components symmetrically arranged on two opposite boundaries, for example Figure 2 the dashed line X2 shown in is the symmetry line, then the closed contour is divided into two control regions by the symmetry line of the two symmetrically arranged door components.

[0139] If there are not two door components symmetrically arranged on the same boundary or two door components symmetrically arranged on two opposite boundaries, then directly take the entire closed contour as one control region.

[0140] S570. Determine the switch position according to the door component.

[0141] In one embodiment, determining the switch position according to the door component includes the following steps:

[0142] Different types of door components correspond to different switch position determination methods.

[0143] When the door component is a single-leaf door component, that is Figure 2 as shown by M1 in, then obtain the opening direction of the corresponding door component, and determine the switch position on the boundary where the door component is located according to the opening direction and the position of the door component.

[0144] The method for determining the switch position is to use the position of the door component as the starting point, the opening direction as the moving direction, and move a preset distance. In this embodiment, the preset distance corresponds to half a meter of the actual distance.

[0145] When the door component is a double-leaf door component, that isFigure 2 As shown in M2, compare the distances from the two adjacent boundaries of the boundary where the comparison gate component is located to the gate component, and determine the switch position on the side of the gate component facing the boundary with a farther distance.

[0146] S580. Determine the switch component according to the distribution of the lamps, and set the switch component at the switch position corresponding to the corresponding gate component.

[0147] In one embodiment, determining the switch component according to the distribution of the lamps includes the following steps:

[0148] Judge whether the number of rows of the lamp components in the control area is lower than a preset value.

[0149] If the number of rows of the lamp components in the control area is lower than the preset value, establish lamp associations for the lamp components in the same row, and determine the switch component according to the number of rows.

[0150] If the number of rows of the lamp components in the control area exceeds or is equal to the preset value, regard the lamp components in adjacent rows as the same row, and re-judge whether the number of rows of the lamp components in the control area is lower than the preset value.

[0151] In this embodiment, the preset value is 5. In fact, satisfying that the number of rows of the lamp components is lower than the preset value means that the number of associated relationships does not exceed the preset number.

[0152] S590. Establish an association between the switch component and the lamp components in the corresponding control area.

[0153] After determining the lamp components according to the type information, if the lamp components correspond to lamps with obvious lengths such as double-tube lamps or long-tube lamps, then the placement directions of the lamp components need to be unified to improve the aesthetics of the drawing. Therefore, the following steps are also included:

[0154] Judge whether the boundary of the closed contour contains a window component.

[0155] If the boundary of the closed contour does not contain a window component, control the lamp components to face the predetermined direction.

[0156] If the boundary of the closed contour contains a window component, judge whether the boundary containing the window component is unique.

[0157] If the boundary containing the window component is unique, all the lamp components face the window component.

[0158] If the boundary containing the window component is not unique, calculate the length of the window component, and make the lamp components face the window component with the longest length.

[0159] If there is a situation where the lengths of the two boundaries containing the window component are the same, issue a prompt and let the operator make a selection.

[0160] The embodiment of the present application also discloses an electrical design system for architectural electrical engineering drawings, including:

[0161] An extraction module for obtaining the architectural electrical engineering drawing of a target object and extracting the closed contour of the target object.

[0162] A splitting module for splitting the closed contour according to a preset geometric figure to obtain closed sub-contours, and obtaining the attribute information of the closed sub-contours, where the attribute information includes side length and type.

[0163] A calculation module for calculating the area of the closed sub-contour according to the side length of the closed sub-contour.

[0164] A component selection module for determining the type of the lighting fixture component according to the type of the closed sub-contour, and determining the quantity of each type of the lighting fixture component according to the area of the closed sub-contour.

[0165] A layout module for adding the lighting fixture component to the area of the architectural electrical engineering drawing corresponding to the closed sub-contour and generating the electrical connection line of the lighting fixture component. According to whether the closed sub-contour is square or circular, the layout module has different layout methods, and the specific methods have been described in detail in the above method and will not be elaborated here.

[0166] The embodiment of the present application also discloses a computer-readable storage medium storing a computer program that can be loaded and executed by a processor to perform the electrical design method for architectural electrical engineering drawings as described above.

[0167] The above are all the preferred embodiments of the present application. The protection scope of the present application is not limited by this. Therefore, all equivalent changes made according to the structure, shape, and principle of the present application shall be covered by the protection scope of the present application.

Claims

1. An electrical design method for an architectural electrical engineering drawing, characterized in that, It includes the following steps: Obtain the building electrical engineering drawing of the target object, and extract the closed contour of the target object; Split the closed contour according to a preset geometric figure to obtain closed sub-contours; Obtain the attribute information of the closed sub-contour, where the attribute information includes side length and type; Calculate the area of the closed sub-contour according to the side length of the closed sub-contour; Determine the type of the lighting fixture assembly according to the type of the closed sub-contour, and determine the quantity of each type of the lighting fixture assembly according to the area of the closed sub-contour; Add the lighting fixture assembly to the area of the building electrical engineering drawing corresponding to the closed sub-contour, and generate the electrical connection line of the lighting fixture assembly. Splitting the closed contour according to a preset geometric figure to obtain closed sub-contours includes the following steps: Judge whether there is a trapezoidal angle in the closed contour; If there is a trapezoidal angle in the closed contour, perform the following operations on the trapezoidal angle in the closed contour: Extend along one side of the trapezoidal angle to divide the closed contour into two first candidate contours, and extend along the other side of the trapezoidal angle to divide the closed contour into two second candidate contours; Calculate the area ratio between the two first candidate contours and the area ratio between the two second candidate contours respectively; Take the candidate contour corresponding to the area ratio with a value closer to 1 among the two area ratios as the closed sub-contour, and take the extension line of the corresponding trapezoidal angle side as the virtual boundary between the two corresponding closed sub-contours.

2. The electrical design method of the building electrical engineering drawing according to claim 1, characterized in that, Adding the lighting fixture assembly to the area of the building electrical engineering drawing corresponding to the sub-closed contour includes the following steps: Judge whether there is a virtual boundary in the current closed sub-contour; If there is a virtual boundary in the current closed sub-contour, judge whether the single-side boundary containing the virtual boundary in the current closed sub-contour also contains a physical boundary; If the single-side boundary containing the virtual boundary in the current closed sub-contour does not contain a physical boundary, then judge whether there is a lighting fixture assembly in the adjacent closed sub-contours sharing the same corresponding virtual boundary; If there is a lighting fixture assembly in the adjacent closed sub-contours sharing the same corresponding virtual boundary, determine the theoretical side length of the current closed sub-contour according to the lighting fixture assembly closest to the shared virtual boundary in the adjacent closed sub-contours; If there is no lighting fixture assembly in the adjacent closed sub-contours sharing the same corresponding virtual boundary, determine the theoretical side length of the current closed sub-contour according to the distance from the adjacent closed sub-contours to the shared virtual boundary; Determine the arrangement of the lighting fixture assembly according to the theoretical side length of the closed sub-contour.

3. The electrical design method of the building electrical engineering drawing according to claim 1, characterized in that Extracting the closed contour of the target object further includes the following steps: Identify the door assembly in the closed contour; Adding the lighting fixture assembly to the area of the building electrical engineering drawing corresponding to the sub-closed contour and generating the electrical connection line of the lighting fixture assembly includes the following steps: Divide the area of the building electrical engineering drawing corresponding to the closed contour into several control areas based on the quantity of the door assemblies, where each control area contains at least one door assembly; Determine the switch position according to the door assembly; Determine the switch component according to the distribution of the lighting fixture components, set the switch component at the switch position corresponding to the corresponding door component, and generate the control connection lines between the switch component and the lighting fixture components in the corresponding control area and the electrical connection lines between the lighting fixture components.

4. The electrical design method of the building electrical engineering drawing according to claim 3, characterized in that, Based on the number of door components, divide the area of the building electrical engineering drawing corresponding to the closed contour into several control areas, including the following steps: Judge whether the number of door components in the area of the building electrical engineering drawing corresponding to the closed contour is unique. If the number of door components in the area of the building electrical engineering drawing corresponding to the closed contour is unique, then regard the entire area of the building electrical engineering drawing as one control area. If the number of door components in the area of the building electrical engineering drawing corresponding to the closed contour is not unique, then judge whether there are two door components symmetrically arranged on the same boundary of the closed contour or two door components symmetrically arranged on two opposite boundaries of the closed contour. If there are two door components symmetrically arranged on the same boundary of the closed contour or two door components symmetrically arranged on two opposite boundaries of the closed contour, then divide the area of the building electrical engineering drawing corresponding to the closed contour into two control areas with the symmetry line between the two symmetrically arranged door components. If there are no two door components symmetrically arranged on the same boundary of the closed contour or two door components symmetrically arranged on two opposite boundaries of the closed contour, then regard the entire area of the building electrical engineering drawing corresponding to the closed contour as one control area.

5. The electrical design method of the building electrical engineering drawing according to claim 3, characterized in that, Determine the switch position according to the door component, including the following steps: Different types of door components correspond to different switch position determination methods. When the door component is a single-leaf door component, obtain the opening direction of the corresponding door component, and determine the switch position on the boundary where the door component is located according to the opening direction and the position of the door component. When the door component is a double-leaf door component, compare the distances from the two adjacent boundaries where the door component is located to the door component, and determine the switch position on the side of the door component facing the boundary with a farther distance.

6. The electrical design method of the building electrical engineering drawing according to claim 3, characterized in that, Determine the switch component according to the distribution of the lighting fixture components, including the following steps: Judge whether the number of rows of the lighting fixture components in the control area is lower than the preset value. If the number of rows of the lighting fixture components in the control area is lower than the preset value, establish a series connection relationship for the lighting fixture components in the same row, and determine the switch component according to the number of rows. If the number of rows of the lighting fixture components in the control area exceeds or is equal to the preset value, regard the adjacent rows of lighting fixture components as the same row, and re-judge whether the number of rows of the lighting fixture components in the control area is lower than the preset value.

7. The electrical design method of the building electrical engineering drawing according to claim 1, characterized in that, It also includes the following steps: Judge whether the boundary of the closed contour contains window components. If the boundary of the closed contour does not contain window components, then control the lighting fixture components to face the predetermined direction. If the boundary of the closed contour contains window components, then judge whether the boundary containing the window components is unique. If the boundary containing the window components is unique, then all the lighting fixture components face the window components. If the boundary containing the window components is not unique, then calculate the length of the window components, and make the lighting fixture components face the window component with the longest length.

8. An electrical design system for an architectural electrical engineering drawing, characterized in that, It includes: An extraction module, used to obtain the building electrical engineering drawing of the target object and extract the closed contour of the target object. A splitting module, configured to split the closed contour according to a preset geometric figure to obtain closed sub-contours, and acquire attribute information of the closed sub-contours, where the attribute information includes side lengths and types; A calculating module, configured to calculate the area of the closed sub-contour according to the side lengths of the closed sub-contour; A module for selecting a model, configured to determine the type of the lighting fixture assembly according to the type of the closed sub-contour, and determine the quantity of each type of the lighting fixture assembly according to the area of the closed sub-contour; A layout module, adding the lighting fixture assembly to the area of the building electrical engineering drawing corresponding to the closed sub-contour, and generating electrical connection lines of the lighting fixture assembly; splitting the closed contour according to a preset geometric figure to obtain closed sub-contours, including the following steps: determining whether there is a trapezoidal angle in the closed contour, if there is a trapezoidal angle in the closed contour, then performing the following operations on the trapezoidal angle in the closed contour: extending along one side edge of the trapezoidal angle to divide the closed contour into two first candidate contours, and extending along the other side edge of the trapezoidal angle to divide the closed contour into two second candidate contours; respectively calculating the area ratio between the two first candidate contours and the area ratio between the two second candidate contours; Regarding the candidate contour corresponding to the area ratio with a value closer to 1 among the two area ratios as the closed sub-contour, and regarding the extension line of the corresponding trapezoidal angle side edge as the virtual boundary between the two corresponding closed sub-contours.

9. A computer-readable storage medium, characterized in that, A computer program is stored and can be loaded and executed by a processor for the electrical design method of any one of the building electrical engineering drawings as recited in claims 1 to 6.

Citation Information

Patent Citations

  • Led automatic wiring method, automatic wiring system, and storage medium

    CN109344418A