A socket arrangement method, device and medium based on three-dimensional design software
By automatically identifying reference objects and spatial relationships using 3D design software, and filtering socket placement spaces, combined with socket types and parameters, the problem of insufficient universality and dynamic adaptation in indoor power socket placement is solved, realizing automated socket placement and reducing manual adjustments.
Patent Information
- Application Number
- CN202510975569.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-15
- Publication Date
- 2026-03-03
- Estimated Expiration
- 2045-07-15
AI Technical Summary
Existing technologies for indoor power outlet placement lack versatility and dynamic adaptability, requiring manual modifications and resulting in a large amount of repetitive work.
Based on 3D design software, the system automatically filters socket placement spaces by identifying reference objects and their spatial relationships within a room, and determines the coordinate points of the sockets by combining socket types and placement parameters, thus achieving automated placement.
It improves the versatility and dynamic adaptability of different apartment types, reduces the number of manual adjustments, and ensures the compliance of socket layout and the accuracy of construction.
Smart Images

Figure CN120822312B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electrical digital data processing technology, specifically to a socket layout method, device, and medium based on 3D design software. Background Technology
[0002] In architectural electrical design drawings, the layout of indoor power outlets aims to clearly and accurately plan their location, type, installation method, and electrical parameters within the space. Its core purpose is to ensure ease of use and functionality, electrical safety and compliance, and construction accuracy. In engineering drawings, the layout of indoor power outlets primarily follows the "Residential Project Code" GB 55038-2025, which specifies outlet types, quantities, and installation heights. When laying out outlets, the layout requirements and parameters are first determined, then a standard symbol is selected for precise positioning on the drawing. The entire layout process requires continuous manual intervention and is relatively repetitive and tedious.
[0003] Currently, some efficiency-enhancing plugins are available on the market. These plugins allow for batch placement of electrical outlets by simply setting rules based on room and requirements. The operation is simple and can alleviate some repetitive manual labor to a certain extent. However, when dealing with a large number of apartment layouts requiring outlet placement, simple preset rules cannot adapt to all usage scenarios. Their versatility and dynamic adaptability are insufficient, generally requiring manual modification, resulting in a large amount of repetitive work. Summary of the Invention
[0004] To address the aforementioned problems, this application proposes a socket layout method based on 3D design software, comprising:
[0005] Based on 3D design software, the presence of reference objects within the room's planar space is identified according to component keywords;
[0006] If so, based on the spatial relationship between the reference object and the room plane, and according to the projection of the legend corresponding to the reference object onto the room plane, the placement space corresponding to the socket is selected from the room plane;
[0007] Determine the socket layout rules corresponding to the socket type based on the required socket type;
[0008] The arrangement parameters of the socket are determined. Based on the socket arrangement rules and the arrangement parameters, the arrangement coordinate points of the socket within the arrangement space are determined, and the sockets are arranged sequentially using the arrangement coordinate points.
[0009] In one implementation of this application, based on the spatial relationship between the reference object and the room plane, and according to the projection of the legend corresponding to the reference object onto the room plane, the arrangement space corresponding to the socket is selected from the room plane, specifically including:
[0010] The planar boundary of the reference object is expanded outward, and it is determined whether the expanded planar boundary intersects with the room plane;
[0011] If so, determine the number of room planes that intersect with the expanded planar boundary, and based on the number of room planes and the projection of the legend corresponding to the reference object onto the room plane, select the arrangement space corresponding to the socket from the room plane;
[0012] If not, determine the projection and projection length of the legend of the reference object on each room plane in the room plan space, and take the room plane with the longest projection length as the arrangement space corresponding to the socket.
[0013] In one implementation of this application, the arrangement space corresponding to the socket is selected from the room plan based on the number of room plan layouts and the projection of the legend corresponding to the reference object onto the room plan. Specifically, this includes:
[0014] When there is only one room floor plan, the area where the projection is located is determined as the space for arranging the socket;
[0015] When there are multiple room plans, determine whether there is an insertion point for the legend on the room plan;
[0016] If so, the area where the projection of the inserted diagram is located on the room floor plan shall be used as the space for arranging the socket;
[0017] If not, the area containing the longest projection length shall be used as the placement space for the socket.
[0018] In one implementation of this application, after determining the projection and projection length of the legend of the reference object onto the planes of each room in the room's planar space, the method further includes:
[0019] Based on the layout of the sockets, determine the deduction rules corresponding to the room plan;
[0020] Based on the deduction rule, the unsuitable space within the room plan is determined, and the projection length is deducted according to the unsuitable space to obtain the deducted projection length.
[0021] In one implementation of this application, after identifying whether a reference object exists within the room's planar space, the method further includes:
[0022] If not, determine the deduction rules corresponding to the room layout based on the arrangement of the sockets;
[0023] Based on the deduction rules, the unsuitable spaces in the room plan are deducted to obtain the room plan after deduction;
[0024] The center of the longest plane in the room after deduction is taken as the space for the socket.
[0025] In one implementation of this application, the deduction rule corresponding to the room plan is determined based on the layout of the sockets, specifically including:
[0026] The layout scenarios include at least one or more of the following: general scenarios, kitchen scenarios, bedroom scenarios, and balcony scenarios;
[0027] When the layout scenario is the general scenario, the deduction rule corresponding to the room plan is determined to be the deduction of building component elements in the room plan; wherein, the building component elements include doors and windows, room dividing lines, and flue outlines;
[0028] When the layout scenario is the kitchen scenario, the deduction rule corresponding to the room plan is to deduct the kitchen fixed equipment in the room plan;
[0029] When the layout scenario is the bedroom scenario, the deduction rule corresponding to the room plan is to deduct the cabinets in the room plan;
[0030] When the layout scenario is the balcony scenario, the deduction rule corresponding to the room plane is determined to be the deduction of the railings in the room plane.
[0031] In one implementation of this application, the socket arrangement rules include a centering arrangement rule, a two-sided arrangement rule, and a one-sided arrangement rule. Based on the socket arrangement rules and the arrangement parameters, the arrangement coordinates of the socket within the arrangement space are determined, specifically including:
[0032] Based on the aforementioned layout parameters, determine the required number and height of the sockets;
[0033] When the socket arrangement rule is the centering arrangement rule, the arrangement coordinate point corresponding to the socket is determined according to the center of the arrangement space and the height of the socket;
[0034] When the socket layout rule is the two-sided layout rule, the layout coordinate point corresponding to the socket is determined according to the socket height, the distance between the projection and the room plane outline, and the projection endpoints located on both sides of the projection.
[0035] When the socket arrangement rule is the single-sided arrangement rule, the arrangement coordinate point corresponding to the socket is determined according to the socket height, the projection length of the projection, and the projection endpoint located on one side of the projection.
[0036] In one implementation of this application, the arrangement coordinates of the socket are determined based on the socket height, the distance between the projection and the room's planar outline, and the projection endpoints located on both sides of the projection. Specifically, this includes:
[0037] Determine the first projection endpoint with a larger distance from the room plane outline and the second projection endpoint with a smaller distance between the two projection endpoints of the projection.
[0038] When there is only one socket, the corresponding layout coordinate point of the socket is determined according to the height of the socket and the position of the socket at a preset horizontal distance from the first projection endpoint;
[0039] When there are two sockets, the corresponding layout coordinates of the sockets are determined based on the height of the sockets and the position of the sockets at a preset horizontal distance from the two projection endpoints.
[0040] When there are multiple sockets, the offset interval between the sockets is determined, and the arrangement coordinate points of multiple sockets are sequentially determined on both sides of the two sockets located on both sides of the projection endpoint according to the offset interval.
[0041] This application provides a socket layout device based on 3D design software, the device comprising:
[0042] At least one processor;
[0043] And, a memory communicatively connected to the at least one processor;
[0044] The memory stores instructions that can be executed by the at least one processor, which, when executed by the at least one processor, enables the at least one processor to perform a socket arrangement method based on three-dimensional design software as described in any of the preceding claims.
[0045] This application provides a non-volatile computer storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured as follows:
[0046] A socket layout method based on 3D design software, as described in any of the preceding items.
[0047] The socket layout method based on 3D design software proposed in this application can bring the following benefits:
[0048] Beneficial effects:
[0049] Based on component keywords, the system automatically identifies reference objects within a room and filters socket placement spaces based on their spatial projection relationship with the plane. This allows for rapid selection of socket placement spaces even when the room layout changes, effectively solving the problem of insufficient scene adaptation caused by the fixed rules of traditional plug-ins. It improves the versatility and dynamic adaptability across different apartment types. By combining socket placement rules and parameters, the system automatically determines the socket placement coordinates without manual adjustment. This ensures socket placement compliance while dynamically adjusting socket positions according to different apartment structures, significantly reducing the number of manual interventions. Attached Figure Description
[0050] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:
[0051] Figure 1 A flowchart illustrating a socket arrangement method based on 3D design software, provided for an embodiment of this application;
[0052] Figure 2 This is a schematic diagram of a centrally located socket provided in an embodiment of this application;
[0053] Figure 3 This application provides a schematic diagram of the arrangement of two sides of a socket according to an embodiment of the present application;
[0054] Figure 4 This application provides a schematic diagram of a single-sided socket arrangement.
[0055] Figure 5 This is a structural schematic diagram of a socket arrangement device based on 3D design software, provided as an embodiment of this application. Detailed Implementation
[0056] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0057] The technical solutions provided by the various embodiments of this application are described in detail below with reference to the accompanying drawings.
[0058] like Figure 1 As shown in the figure, an embodiment of this application provides a socket arrangement method based on 3D design software, including:
[0059] S101: Based on 3D design software, identify whether there are reference objects in the room's planar space according to component keywords.
[0060] 3D design software, such as Revit, can create and manage 3D models of architectural projects and provide detailed information about room floor plans, including the location and attributes of components such as walls, furniture, and equipment. This component information is the basis for automatic socket placement. In building electrical design, sockets are often placed near certain objects, such as sofas, washing machines, and refrigerators. Therefore, it is necessary to use the components in the room as reference points and dynamically adjust the socket placement based on different room layouts and configurations. In 3D design software, various components in a room have their own component names. Based on the component category and component keywords, the corresponding component information is obtained. Then, based on whether the components exist in the room floor plan, the software identifies whether there are reference points for socket placement. The main categories include furniture, detailed items, annotation symbols, special equipment, cabinets, bathroom fixtures, and standard models. The main components include refrigerators, gas stoves, manifolds, water heaters, sinks, wall-mounted air conditioners, indoor units, floor-standing air conditioners, sofas, dining tables, beds, washing machines, televisions, toilets, and washbasins.
[0061] S102: If so, based on the spatial relationship between the reference object and the room plane, according to the projection of the legend corresponding to the reference object onto the room plane, select the placement space corresponding to the socket from the room plane.
[0062] If there are reference objects within the room's floor plan, the placement of electrical outlets needs to be based on the spatial relationship between these reference objects and the room's floor plan. It's important to note that the room's floor plan refers to the side walls within the room's floor plan; one wall corresponds to one room floor plan. Spatial relationship refers to intersection, specifically whether the boundary of the reference object intersects with the room floor plan. Whether the reference object intersects with the wall affects the logic of outlet placement. Therefore, different placement rules are needed for these two different scenarios. After determining the spatial relationship, the placement space for outlets is selected from the room floor plan based on the projection of the reference object's corresponding symbol onto the room floor plan. The placement space refers to the range of locations on the room floor plan where outlets can be placed.
[0063] In one embodiment, considering that there may be gaps or errors between furniture or equipment components and the wall, before determining the spatial relationship between the reference object and the room plane, it is necessary to first expand the bounding box plane boundary of the reference object, and then determine whether the expanded plane boundary intersects with the room plane. The expansion range can be set to 200mm, and the specific value can be set according to the actual room design; this application does not limit this. Expanding the plane boundary of the reference object before determining its relationship with the room plane can avoid misjudgments of spatial relationships caused by measurement errors or model accuracy issues, and at the same time more realistically simulates actual construction conditions, ensuring the rationality of the socket placement.
[0064] If the expanded planar boundary intersects with the room plan, it indicates that the reference object is likely placed against a wall. In this case, when arranging the sockets, it is necessary to consider the projection length of the reference object's symbol on the room plan. First, determine the number of room plans that intersect with the expanded planar boundary. Then, based on the number of room plans and the projection of the reference object's symbol on the room plan, select the corresponding placement spaces for the sockets from the room plans.
[0065] Specifically, if the outer boundary of the reference object intersects only one room plane, then the area projected onto that room plane can be used as the space for the socket. If the outer boundary of the reference object intersects multiple room planes, then the most suitable room plane needs to be selected from among them to place the socket. There are two principles for selecting the room plane: one is based on the insertion position of the reference object's symbol, and the other is based on the size of the projection of the reference object onto the room plane.
[0066] First, determine if there is an insertion point for the legend corresponding to the reference object on the room plan. The insertion point usually represents the main reference position of the reference object, and the room plan containing the insertion point should be given priority when arranging the socket. If there is a legend insertion point on the room plan, select the projection area of the reference object on that room plan as the socket placement space. Otherwise, calculate the projection length of the reference object's legend on each intersecting wall, and select the area containing the longest projection length as the socket placement space. The longer the projection length, the larger the placement range of the reference object on that wall, and the more suitable it is for placing the socket.
[0067] If the expanded planar boundary does not intersect with the room plan, it indicates that the reference object may be located in the center of the room or not against a wall. In this case, projection analysis is needed to select the most suitable room plan for locating the socket. Determine the projection and length of the reference object's legend onto each room plan within the room's spatial dimensions. Among all projections, the room plan with the longest projection length is selected as the space corresponding to the socket's placement.
[0068] It should be noted that since some locations in a room may be unsuitable or unusable for installing electrical outlets, such as doors, windows, or other obstacles, it is necessary to ensure that all selected spaces are usable, provided the reference point does not intersect with the wall, to prevent situations where outlets cannot be installed smoothly. The unsuitable spaces for outlets vary depending on the installation scenario; therefore, it is necessary to first determine the corresponding deduction rules for the room layout based on the outlet installation scenario.
[0069] The scene setup must include at least one or more of the following: general scene, kitchen scene, bedroom scene, and balcony scene. A general scene refers to all rooms. Other scenes, in addition to considering the general deduction rules for general scenes, also require separate consideration of their specific deduction rules. That is, for kitchen, bedroom, and balcony scenes, when deducting the projection length, both the general scene deduction rules and their own specific deduction rules must be applied.
[0070] The scene layout can be determined based on the room name keywords corresponding to the room's floor plan. For example, "Bedroom" corresponds to a bedroom scene, and "Kitchen" corresponds to a kitchen scene. When the scene is a general scene, the deduction rule for the room's floor plan is to deduct architectural components, including doors, windows, room dividing lines, and flue outlines. When the scene is a kitchen scene, the deduction rule is to deduct fixed kitchen equipment, such as gas stoves and sinks. When the scene is a bedroom scene, the deduction rule is to deduct cabinets. When the scene is a balcony scene, the deduction rule is to deduct railings. For other scenes not explicitly specified, no deduction is performed by default. Whether windows need to be deducted depends on the socket installation height.
[0071] The specific deduction rules are shown in Table 1:
[0072] Table 1
[0073]
[0074] After clarifying the deduction rules applicable to the current room's floor plan, it is necessary to determine the unsuitable spaces within the room's floor plan based on these rules. When the reference point does not intersect with the room's floor plan, the room floor plan with the longest projected length should be selected as the space for the socket. To ensure a suitable space is selected, the projected length needs to be deducted based on the determined unsuitable spaces. Then, using the adjusted projected length, the area containing the longest projected length is selected as the socket's placement space.
[0075] The above process describes how to determine the space for socket placement when there are reference objects inside the room. If there are no reference objects such as furniture inside the room, it is necessary to subtract the room outline based on the subtraction rules, and then select the center of the plane with the longest length in the remaining space as the placement position of the socket.
[0076] Specifically, using the correspondence provided in Table 1, the deduction rules for the corresponding room plan can be determined based on the socket placement scenario. Based on these rules, unsuitable spaces in the room plan are deducted to obtain the deducted room plan. The center of the longest plane in the deducted room plan is then used as the placement space for the socket. Since a certain spacing needs to be maintained between sockets, choosing the center of the longest plane for socket placement better meets these spacing requirements, ensuring a uniform and reasonable distribution of sockets that complies with electrical design specifications.
[0077] S103: Determine the socket layout rules corresponding to the socket type based on the required socket type.
[0078] After selecting the space for socket placement, it is necessary to determine the corresponding socket placement rules for different socket types based on space, reference objects, and spacing. Socket placement rules include three types: center placement, two-sided placement, and single-sided placement.
[0079] S104: Determine the layout parameters of the sockets. Based on the socket layout rules and layout parameters, determine the layout coordinate points of the sockets in the layout space, and arrange the sockets sequentially using the layout coordinate points.
[0080] Before installing sockets, the layout parameters need to be determined, namely the number of sockets and their installation height. Based on these parameters and the rules for socket placement, the coordinate points of the sockets in the layout space can be determined, with the positive Y-axis of the sockets pointing inwards into the room. Using these coordinate points, the sockets can then be installed sequentially.
[0081] In one embodiment, the required number and height of sockets are determined based on the layout parameters. The number of sockets determines how many sockets need to be placed in the layout space. Under different socket layout rules, the placement of different sockets will also be different.
[0082] Specifically, when the socket layout follows a centered arrangement rule, the corresponding coordinate point of the socket is determined based on the center of the layout space and the socket height. If there is only one socket, its coordinate point can be determined simply by using the center of the layout space and the socket height. If there are multiple sockets, first place one socket in the center, then determine the offset interval between each socket, and arrange the multiple sockets sequentially on both sides of the center of the layout space according to the offset interval. Generally, the offset interval can be taken as 86mm. Figure 2The diagram shows a centrally located socket, with the socket positioned at the center of the projection.
[0083] When the socket layout follows a two-sided arrangement, the coordinate points for the sockets need to be determined based on the positions of the two sides of the projection. In this case, the corresponding coordinate points for the sockets are determined according to the socket height, the distance between the projection and the room's floor plan outline, and the projection endpoints located on both sides of the projection.
[0084] Specifically, the first projection endpoint with the larger distance from the room's planar outline and the second projection endpoint with the smaller distance are determined from the two projection endpoints. When there is only one socket, the corresponding layout coordinates of the socket are determined based on its height and a preset horizontal distance from the first projection endpoint. When there are two sockets, the corresponding layout coordinates of the sockets are determined based on their height and a preset horizontal distance from both projection endpoints. When there are multiple sockets, the offset interval between the sockets is determined, and the layout coordinates of multiple sockets are sequentially determined on both sides of the two sockets located on either side of the projection endpoints, according to the offset interval.
[0085] It should be noted that in the arrangement rules on both sides, it is also necessary to consider whether the socket is arranged inside or outside the two projection endpoints based on the projection. Here, "inside" and "outside" refer to whether it is arranged towards or away from the projection endpoints; one is farther away from the projection area, and the other is closer to the projection area. Assume a preset length of 200mm and an offset interval of 86mm. For example... Figure 3 The diagram shows a socket arrangement on both sides, with two sockets positioned 200mm outside the projected endpoints.
[0086] When placing a socket on the inner side: For one socket, determine the lengths of the walls on both sides of the projection. On the longer side, place a socket 200mm inward from the projection endpoint. For two sockets, place two sockets on each side of the projection, 200mm inward from the projection point. For multiple sockets, based on the two sockets placed on both sides of the projection, first place one socket adjacent on the longer side, offset by 86mm, then place another adjacent on the shorter side, offset by 86mm, and so on.
[0087] When placing sockets on the outer side: For one socket, determine the lengths of the walls on both sides of the projection. On the longer side, place one socket 200mm outward from the projection endpoint. For two sockets, place sockets 200mm outward from the projection point on each side of the projection. For multiple sockets, based on the two sockets on both sides of the projection, first place one socket adjacent on the longer side, offset by 86mm, then place another adjacent on the shorter side, offset by 86mm, and so on.
[0088] When the socket layout follows a single-sided rule, the corresponding coordinate point for the socket needs to be determined based on the socket height, the projected length of the projection, and the projection endpoint located on one side of the projection. In a single-sided layout, the socket should be placed on the side with the larger distance from the room's floor plan outline. The difference from a two-sided layout is that a single-sided layout only considers the projection endpoint on one side, while a two-sided layout needs to consider both projection endpoints on both sides. For example... Figure 4 The diagram shows a single-sided arrangement of a socket, with the individual socket positioned 200mm outside the projected end point that is further away from the wall.
[0089] The single-sided arrangement rule is similar to the two-sided arrangement rule. It also needs to consider both the outer and inner arrangements. Assume the preset length is 200mm and the offset interval is 86mm.
[0090] When placing one arrangement on the inner side, determine the lengths of the two walls on both sides of the projection. On the longer side, place one arrangement 200mm inward from the projection endpoint. When placing multiple arrangements, based on the coordinates of the first arrangement point, place one arrangement 86mm inward successively.
[0091] When placing one arrangement on the outer side, determine the lengths of the walls on both sides of the projection. On the longer side, place one arrangement 200mm outward from the projection endpoint. When placing multiple arrangements, based on the coordinates of the first arrangement point, place one arrangement 86mm outward successively.
[0092] In this embodiment, the number of sockets needs to be determined based on the actual business scenario. Taking the common indoor power socket layout as an example, the layout rules, quantity, and installation height of various types of sockets are shown in Table 2. This application only provides examples of specific parameter values, which can be customized according to the actual situation. Among them, the family name and family type are recommended settings.
[0093] Table 2
[0094]
[0095]
[0096] The above-mentioned socket generation method is not only applicable to Revit software, but can also be used in multiple design software to meet the needs of integrated 2D and 3D design.
[0097] The above are embodiments of the methods proposed in this application. Based on the same idea, some embodiments of this application also provide devices and non-volatile computer storage media corresponding to the above methods.
[0098] Figure 5 This is a structural schematic diagram of a socket arrangement device based on 3D design software, provided as an embodiment of this application. Figure 5As shown, it includes:
[0099] At least one processor; and,
[0100] At least one processor-communication-connected memory; wherein,
[0101] The memory stores instructions that can be executed by at least one processor, which enables the at least one processor to perform a socket arrangement method based on three-dimensional design software as described in any of the preceding claims.
[0102] This application provides a non-volatile computer storage medium storing computer-executable instructions, which are configured as follows:
[0103] A socket layout method based on 3D design software, as described in any of the preceding items.
[0104] The various embodiments in this application are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the device and medium embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the description of the method embodiments.
[0105] The devices and media provided in this application are one-to-one with the methods. Therefore, the devices and media also have similar beneficial technical effects as their corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be repeated here.
[0106] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0107] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0108] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0109] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0110] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0111] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0112] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0113] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0114] The above description is merely an embodiment of this application and is not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.
Claims
1. A method of arranging sockets based on three-dimensional design software, characterized by, The method comprises: Based on the three-dimensional design software, according to the component keyword, it is identified whether there is a reference in the room plane space; If yes, based on the spatial relationship between the reference and the room plane, according to the projection of the legend corresponding to the reference on the room plane, the arrangement space corresponding to the socket is screened out from the room plane; According to the type of the socket to be arranged, the socket arrangement rule corresponding to the socket type is determined; The arrangement parameters of the socket are determined, based on the socket arrangement rule and the arrangement parameters, the arrangement coordinate point of the socket in the arrangement space is determined, and the sockets are arranged in turn through the arrangement coordinate point; Based on the spatial relationship between the reference and the room plane, according to the projection of the legend corresponding to the reference on the room plane, the arrangement space corresponding to the socket is screened out from the room plane, which comprises: The plane boundary of the reference is expanded outward, and it is determined whether the expanded plane boundary intersects with the room plane; If yes, the number of room planes intersecting with the expanded plane boundary is determined, and the arrangement space corresponding to the socket is screened out from the room plane according to the number of room planes and the projection of the legend corresponding to the reference on the room plane; If no, the projection and the projection length of the legend corresponding to the reference on each room plane in the room plane space are determined, and the room plane with the longest projection length is determined as the arrangement space corresponding to the socket; According to the number of room planes and the projection of the legend corresponding to the reference on the room plane, the arrangement space corresponding to the socket is screened out from the room plane, which comprises: In the case that the number of room planes is one, the area where the projection is located is determined as the arrangement space of the socket; In the case that the number of room planes is more than one, it is determined whether there is an insertion point of the legend on the room plane; If yes, the area where the projection is located on the room plane into which the legend is inserted is determined as the arrangement space of the socket; If no, the area where the projection is located with the longest projection length is determined as the arrangement space of the socket; After identifying whether there is a reference in the room plane space, the method further comprises: If no, according to the arrangement scene of the socket, the deduction rule corresponding to the room plane is determined; Based on the deduction rule, the unarrangeable space in the room plane is deducted to obtain the room plane after deduction; The center of the plane with the largest length in the room plane after deduction is determined as the arrangement space corresponding to the socket.
2. The method of claim 1, wherein, After determining the projection and the projection length of the legend corresponding to the reference on each room plane in the room plane space, the method further comprises: According to the arrangement scene of the socket, the deduction rule corresponding to the room plane is determined; Based on the deduction rule, the unarrangeable space in the room plane is determined, and the projection length is deducted according to the unarrangeable space to obtain the projection length after deduction.
3. The method of claim 2, wherein, According to the arrangement scene of the socket, the deduction rule corresponding to the room plane is determined, which comprises: The arrangement scene at least comprises any one or more of the following: general scene, kitchen scene, bedroom scene and balcony scene; In a case where the arrangement scene is the general scene, a deduction rule corresponding to the room plane is determined as deducting architectural component elements in the room plane; wherein the architectural component elements include doors and windows, room partition lines, and chimney contour lines; In a case where the arrangement scene is the kitchen scene, a deduction rule corresponding to the room plane is determined as deducting kitchen fixed equipment in the room plane; In a case where the arrangement scene is the bedroom scene, a deduction rule corresponding to the room plane is determined as deducting cabinet bodies in the room plane; In a case where the arrangement scene is the balcony scene, a deduction rule corresponding to the room plane is determined as deducting railings in the room plane.
4. The method of claim 1, wherein, The socket arrangement rules include a center arrangement rule, a two-side arrangement rule, and a single-side arrangement rule. Based on the socket arrangement rules and the arrangement parameters, arrangement coordinate points of the sockets in the arrangement space are determined, specifically including: According to the arrangement parameters, a required number of sockets and a socket height are determined; In a case where the socket arrangement rule is the center arrangement rule, arrangement coordinate points corresponding to the sockets are determined according to a center of the arrangement space and the socket height; In a case where the socket arrangement rule is the two-side arrangement rule, arrangement coordinate points corresponding to the sockets are determined according to the socket height, a distance between the projection and a room plane contour line, and projection end points located on two sides of the projection; In a case where the socket arrangement rule is the single-side arrangement rule, arrangement coordinate points corresponding to the sockets are determined according to the socket height, a projection length of the projection, and a projection end point located on one side of the projection.
5. The method of claim 4, wherein, According to the socket height, a distance between the projection and a room plane contour line, and projection end points located on two sides of the projection, arrangement coordinate points corresponding to the sockets are determined, specifically including: A first projection end point with a larger distance to the room plane contour line and a second projection end point with a smaller distance are determined among two projection end points of the projection; In a case where the number of sockets is one, arrangement coordinate points corresponding to the sockets are determined according to the socket height and a position horizontally distant from the first projection end point by a preset length; In a case where the number of sockets is two, arrangement coordinate points corresponding to the sockets are determined according to the socket height and positions horizontally distant from the two projection end points by preset lengths; In a case where the number of sockets is multiple, an offset interval between the sockets is determined, and arrangement coordinate points of multiple sockets are sequentially determined on two sides of the two sockets located on two sides of the projection end points according to the offset interval.
6. A socket arrangement device based on three-dimensional design software, characterized by, The device includes: at least one processor; and a memory in communication connection with the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the socket arrangement method based on the three-dimensional design software according to any one of claims 1-5.
7. A non-transitory computer storage medium storing computer-executable instructions that, when executed, cause a computer to perform: The computer executable instructions are set as: A method for arranging a socket based on three-dimensional design software according to any one of claims 1-5.
Citation Information
Patent Citations
Temperature measuring method and device of switch cabinet, computer equipment and storage medium
CN110794706A
Method for generating indoor illumination system of rural residence
CN115510518A