CN113505426B - Strong electric pipeline drawing method and device, computer equipment and medium thereof - Google Patents

Strong electric pipeline drawing method and device, computer equipment and medium thereof Download PDF

Info

Publication number
CN113505426B
CN113505426B CN202110812767.4A CN202110812767A CN113505426B CN 113505426 B CN113505426 B CN 113505426B CN 202110812767 A CN202110812767 A CN 202110812767A CN 113505426 B CN113505426 B CN 113505426B
Authority
CN
China
Prior art keywords
model
equipment model
connection
power supply
connection point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110812767.4A
Other languages
Chinese (zh)
Other versions
CN113505426A (en
Inventor
周云龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Qunhe Information Technology Co Ltd
Original Assignee
Hangzhou Qunhe Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Qunhe Information Technology Co Ltd filed Critical Hangzhou Qunhe Information Technology Co Ltd
Priority to CN202110812767.4A priority Critical patent/CN113505426B/en
Publication of CN113505426A publication Critical patent/CN113505426A/en
Application granted granted Critical
Publication of CN113505426B publication Critical patent/CN113505426B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/18Network design, e.g. design based on topological or interconnect aspects of utility systems, piping, heating ventilation air conditioning [HVAC] or cabling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/13Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2113/00Details relating to the application field
    • G06F2113/14Pipes

Abstract

The embodiment of the application belongs to the technical field of circuit drawing, and relates to a strong current pipeline drawing method, a device, computer equipment and a medium thereof, wherein the method comprises the steps of responding to a selection instruction pointing to a power supply equipment model, determining a to-be-connected equipment model associated with the power supply equipment model, generating at least one connecting path of the power supply equipment model and the to-be-connected equipment model when receiving the selection instruction pointing to the to-be-connected equipment model or when detecting that a first connecting point in the power supply equipment model and a second connecting point in the to-be-connected equipment model are sequentially activated, and generating the strong current pipeline of the power supply equipment model and the to-be-connected equipment model according to the connecting information of the connecting path, so that the situation that expected pipelines are difficult to be screened out quickly when facing multi-connecting point equipment is avoided, and the strong current pipeline is automatically generated through the connecting information, thereby improving the circuit wiring efficiency.

Description

Strong electric pipeline drawing method and device, computer equipment and medium thereof
Technical Field
The present disclosure relates to the field of circuit drawing technologies, and in particular, to a method and an apparatus for drawing a heavy current pipeline, a computer device, and a medium thereof.
Background
BIM (Building Information Modeling, building information model) is a common tool for architecture, engineering and civil engineering, where one of the loops essential in building design is the electrical engineering configuration. The method has the advantages that the method is various in variety, staggered and complex, different types of lines have different standards, different types of households have different drawing methods, and even different arrangement modes can be brought by the differences of user habits and regional culture. This makes it often necessary for users to spend a great deal of time learning and designing, greatly increasing industry thresholds and not facilitating the pushing of BIM technology.
The vast majority of decoration design software supports a pipeline drawing mode purely by a user, and therefore high requirements are placed on specialization of the user. While a few semi-automated software, encountering some specific models also tends to be difficult to match to the expected line. For example, an electronic box device, may need to be switched several tens of times to obtain the desired result if the user wishes to make a connection to a given point.
Therefore, the current circuit wiring process is complex, the labor cost is high, and the circuit design efficiency is low.
Disclosure of Invention
The embodiment of the application aims to provide a method and a device for drawing a strong current pipeline, computer equipment and a medium thereof, and solve the problem of low circuit wiring efficiency.
In order to solve the above technical problems, an embodiment of the present application provides a method for drawing a heavy current pipeline, including:
determining a to-be-connected device model associated with the power device model in response to a selected instruction directed to the power device model, wherein the power device model and the to-be-connected device model are deployed in the same target system;
when a selection instruction pointing to the equipment model to be connected is received, or when the fact that a first connection point in the power equipment model and a second connection point in the equipment model to be connected are sequentially activated is detected, at least one connection path of the power equipment model and the equipment model to be connected is generated;
and generating the strong current pipeline of the power supply equipment model and the equipment model to be connected according to the connection information of the connection path.
In order to solve the above technical problem, an embodiment of the present application further provides a device for drawing a heavy current pipeline, including:
an association module for determining a to-be-connected device model associated with the power device model in response to a selected instruction directed to the power device model, wherein the power device model and the to-be-connected device model are deployed in the same target system;
the connection module is used for generating at least one connection path of the power supply equipment model and the equipment model to be connected when receiving a selection instruction pointing to the equipment model to be connected or when detecting that a first connection point in the power supply equipment model and a second connection point in the equipment model to be connected are sequentially activated;
and the generating module is used for generating the strong current pipeline of the power supply equipment model and the equipment model to be connected according to the connection information of the connection path.
In order to solve the technical problem, the embodiment of the application further provides a computer device, which comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the steps of the strong electric pipeline drawing method when executing the computer program.
In order to solve the above technical problem, the embodiments of the present application further provide a computer readable storage medium, where a computer program is stored, where the computer program implements the steps of the method for drawing a heavy current pipeline described above when executed by a processor.
Compared with the prior art, the embodiment of the application has the following main beneficial effects:
by responding to the selection instruction pointing to the power equipment model, determining the equipment model to be connected which is associated with the power equipment model, when receiving the selection instruction pointing to the equipment model to be connected, or when detecting that a first connection point in the power equipment model and a second connection point in the equipment model to be connected are sequentially activated, generating at least one connection path of the power equipment model and the equipment model to be connected, generating a strong current pipeline of the power equipment model and the equipment model to be connected according to the connection information of the connection path, namely, realizing the circuit connection of the equipment model by selecting the equipment model to be connected or activating the connection points, not only ensuring that the circuit wiring is simpler and faster, avoiding the situation that expected pipelines are difficult to be screened out when facing multi-connection point equipment, but also automatically generating the strong current pipeline through the connection information, and improving the efficiency of circuit design and the circuit wiring.
Drawings
For a clearer description of the solution in the present application, a brief description will be given below of the drawings that are needed for the description of the embodiments of the present application, it being obvious that the drawings in the following description are some embodiments of the present application, and that other drawings may be obtained from these drawings without inventive effort for a person skilled in the art.
FIG. 1 is an exemplary system architecture diagram in which the present application may be applied;
FIG. 2 is a flow chart of one embodiment of a heavy current pipeline rendering method of the present application;
FIG. 3 is a schematic structural diagram of a hover model in an embodiment of the application;
FIG. 4 is a schematic three-dimensional illustration of a strong current tube in an embodiment of the present application;
FIG. 5 is a schematic diagram of one embodiment of a high-current pipeline drawing apparatus of the present application;
fig. 6 is a basic structural block diagram of the computer device of the present application.
Detailed Description
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs; the terminology used in the description of the applications herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application; the terms "comprising" and "having" and any variations thereof in the description and claims of the present application and in the description of the figures above are intended to cover non-exclusive inclusions. The terms first, second and the like in the description and in the claims or in the above-described figures, are used for distinguishing between different objects and not for describing a particular sequential order.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
In order to better understand the technical solutions of the present application, the following description will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings.
Based on the above, the present application provides a strong electric pipeline drawing method to solve the above technical problems.
As shown in fig. 1, a system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 via the network 104 using the terminal devices 101, 102, 103 to receive or send messages or the like. Various communication client applications, such as a web browser application, a shopping class application, a search class application, an instant messaging tool, a mailbox client, social platform software, etc., may be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablet computers, electronic book readers, MP3 players (Moving Picture Experts Group Audio Layer III, dynamic video expert compression standard audio layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic video expert compression standard audio layer 4) players, laptop and desktop computers, and the like.
The server 105 may be a server providing various services, such as a background server providing support for pages displayed on the terminal devices 101, 102, 103.
It should be noted that, the method for drawing a heavy current pipeline provided in the embodiments of the present application is executed by a server/terminal device, and accordingly, the heavy current pipeline drawing apparatus is generally disposed in the server/terminal device.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to fig. 2, fig. 2 is a flow chart of one embodiment of a method of heavy current pipeline rendering, comprising:
s201: in response to a selected instruction directed to a power device model, a to-be-connected device model associated with the power device model is determined, wherein the power device model and the to-be-connected device model are deployed in the same target system.
In the embodiment of the present application, the drawing environment of the heavy current pipeline may be a drawing scene based on a three-dimensional space, for example, the drawing scene of the three-dimensional space may be three-dimensional modeling software developed by using a BIM technology, a three-dimensional modeling website, or a three-dimensional modeling mobile terminal application, and when it is detected that the three-dimensional space enters a drawing state, for example, when it is detected that a user clicks a drawing control through a mouse, starts a drawing function through a preset shortcut key, or performs any action such as pressing the drawing control for a long time, the current static three-dimensional space is switched to the drawing state, and at this time, the user may design and draw the corresponding heavy current pipeline in the three-dimensional space.
The selection instruction pointing to the power supply equipment model may be an operation instruction for detecting that a user selects a power supply equipment model in a three-dimensional space, when the selected power supply equipment model is determined, the power supply equipment model is used as a target power supply equipment model, and a to-be-connected equipment model associated with the power supply equipment model is screened out from a target system where the target power supply equipment model is located, wherein the to-be-connected equipment model is an electrical equipment model which can be used for performing strong electric pipeline connection with the target power supply equipment model. The screened equipment models to be connected can be displayed according to a preset mode, so that the situation that a user manually connects the equipment models by mistake is avoided, and the effectiveness of strong electric pipeline connection is improved. The preset form may be, but not limited to, the same type of label, the same color or prompt for each device model to be connected, and the like, and is not limited herein.
In some embodiments of the present application, determining a model of a device to be connected associated with the model of a power supply device includes:
acquiring a preset equipment model and a target system, wherein the equipment model comprises a power supply equipment model and an electrical equipment model;
according to a preset association instruction, deploying the equipment model in a target system;
when receiving a selection instruction pointing to the power supply equipment model, screening out the electrical equipment model associated with the power supply equipment model to serve as an equipment model to be connected.
The equipment model is a hydroelectric equipment model, the power equipment model can comprise, but is not limited to, a lighting power supply, a common power supply, a guest restaurant air-conditioning power supply, a main lying air-conditioning power supply, a kitchen power supply, a refrigerator power supply, a standby power supply, an electric box, a socket, a strong and weak switch and the like, the electrical equipment model can be a lamp, for example, a ceiling lamp installed on the main lying, a ceiling lamp of a kitchen, a ceiling lamp of a bathroom, a ceiling lamp of a study and the like, and the number of the power equipment model and the electrical equipment model is set by a user according to actual needs.
Specifically, the user draws a scene in a three-dimensional space, that is, the user needs to perform scene arrangement in the three-dimensional space, such as house drawing, soft furniture design, hard design, and the like; arranging equipment models, such as the power supply equipment model, the electrical equipment model and the like, on a three-dimensional space; a user creates a self-defined system in a strong electric system configuration panel in a three-dimensional space, one or more target systems can be created according to the actual demands of the user, an associated equipment model is added to each target system, the created systems are named, for example, the strong electric systems named by room function division are used for creating a plurality of loops such as a main horizontal power supply, a guest restaurant power supply and the like and a plurality of self-defined lamp control relations as a power supply equipment model and an electrical equipment model of the strong electric systems; the preset association instruction is an operation instruction of an equipment model association system, for example, a user adds a name corresponding to an equipment model in a created system form, an adding mode may be selected from a drop-down menu in the created system form, or the arranged equipment model is manually input, that is, the added equipment model is automatically associated to the system through identifying the equipment model selected/newly added in the system form, for example, a lamp and a strong current socket are associated to a loop system, the lamp and the strong current switch are associated to a lamp control system, and the association mode may add system identification information such as the same system label or the same system identification code to the same equipment model, which is not limited herein, and the equipment model is deployed in the target system through the above mode. It should be noted that, any instruction related to the three-dimensional space, the added equipment model and other data are all cached in a preset database.
Further, according to national standards and installation rules of water heating electric equipment, the following conditions are required to be satisfied by adding equipment models and systems in a three-dimensional space:
a. in the house type scheme, the distance from the furniture placed on the top surface to the roof is not less than 5 cm, so that resonance with the wall roof is avoided when the machine runs;
b. the number of the strong current loops allowed to be created in each strong current system is at most not more than the number of the connectors owned by the strong current box;
c. only the associated lamp and the strong current socket are allowed in the strong current loop;
d. each luminaire or heavy-duty socket may only exist in one heavy-duty circuit relationship;
e. allowing creation of a plurality of lamp control relationships in each of the high-power systems;
f. only the associated lamp and the strong electric socket are allowed in the lamp control.
g. Each luminaire may only exist in one lamp control relationship;
h. lamps added to the same lamp control relationship must be in the same strong current loop;
i. at most two switches are added in each lamp control relation;
j. the strong and weak current boxes allow wiring.
Further, when the target system is detected to be in a strong circuit drawing state, the equipment model in the target system is switched to be in an editable state, for example, the equipment model is displayed in a high-brightness mode, when the power equipment model is triggered by a click or long-press action instruction of a user, namely, a selected instruction pointing to the power equipment model is received, the system identification information carried by the power equipment model is identified, other electrical equipment models in the same system identification information, namely, the electrical equipment models associated with the power equipment model are screened out to serve as equipment models to be connected and used for being connected with the power equipment model, so that invalid connection of the electrical equipment model is reduced, the problem that a user manually connects the electrical equipment model by mistake is avoided, and the effectiveness of strong electric pipeline connection is improved.
S202: when a selection instruction pointing to the to-be-connected device model is received, or when the first connection point in the power supply device model and the second connection point in the to-be-connected device model are sequentially activated, at least one connection path of the power supply device model and the to-be-connected device model is generated.
The selection instruction pointing to the to-be-connected device model is an operation instruction for detecting that a user selects the to-be-connected device model connected with the power supply device model. For example, after detecting that a user selects a power supply equipment model, the equipment model in the same target system enters a highlight state, namely, the state of the equipment model at the moment is a hovering model, the power supply equipment model in the highlight state is taken as a first hovering model at the moment, the equipment model to be connected in the highlight state is taken as a second hovering model, at the moment, when a position of a mouse in the electrical equipment model, namely, the position of the equipment model to be connected is scanned, a connection path between the power supply equipment model and the electrical equipment model is automatically generated, the connection path is displayed in a pipeline mode, and each connection path is displayed in a preview mode so that the user can select a more personalized pipeline arrangement path. The number of the connecting paths is not less than 1 because of various strong current loop modes between the power supply equipment model and the electrical equipment model.
When the power supply equipment model is selected, the highlight state of the equipment model can be represented by a color A, such as blue, and the connection points on the equipment model can be also displayed in a highlight form, the highlight form can be represented by a color B, such as yellow, the connection points comprise a first connection point of the power supply equipment model and a second connection point of the equipment model to be connected, and the equipment model available for connection is represented by the highlight form, so that professional requirements of a user for drawing pipeline modes are greatly reduced, and drawing efficiency of the high-current pipeline is improved.
In some embodiments of the present application, besides the above-mentioned semiautomatic connection manner, the connection between the device models may be implemented through a manual connection mode, which specifically includes:
respectively controlling a power supply equipment model to generate a first hovering model and controlling the equipment model to be connected to generate a second hovering model, wherein the first hovering model comprises a first connection point;
generating a bounding box from the second hover model when a first activation instruction directed to the first connection point is received, wherein the bounding box includes the second connection point;
when a second activation instruction directed to the second connection point is received, the first connection point and the second connection point are associated, and at least one connection path is generated.
If the first connection point of the power supply equipment model selected by the user is scanned, namely, when the fact that the mouse of the user is placed on the first connection point and is not clicked is detected, prompt information is sent to the first connection point of the power supply equipment model to prompt that the selected first connection point can be used for connecting the second connection point of the equipment model to be connected. When the first activation instruction is received, that is, when the first connection point is activated, for example, after the user clicks the first connection point, the color B of the first connection point is switched to the color C, for example, the color C is red, and at the same time, the device model is switched from the original highlight state to the bounding box, as shown in fig. 3, and fig. 3 is a schematic structural diagram of the hover model in the embodiment of the application. The bounding box can be used for identifying the size of the equipment model, such as the length, the width and the height of the equipment model, and drawing the corresponding bounding box according to a preset proportion, so that the bounding box covers the equipment model, the bounding box is a three-dimensional frame, each surface of the three-dimensional frame is provided with a connecting point, and the connecting points adopt different colors or shapes to prompt a user whether the connecting points can be connected or not, thereby being convenient for the user to reduce the number of times of connecting errors of the equipment model when the user connects the equipment model. Wherein, the preset proportion can be 1:1.2, which can be specifically set according to practical situations. When a second activation instruction is received, that is, when the second connection point is detected to be activated, for example, when a user points the second connection point on the bounding box of the equipment model to be connected, the color B on the second connection point is switched to the color C, and a connection path is generated, so that the connection path can be effectively designed according to prompt information during connection, and the efficiency of strong circuit connection is improved.
In this embodiment, for example, after selecting a distribution box, the program screens devices that can be connected to the distribution box according to the system configured by the user, and prompts the user in a highlighted form in the scene, where connection points appear on the selected model. If the mouse is directly moved to another connectable device, as shown in fig. 4, a preview line appears and the text prompt changes. If the connection point on the device is selected, the device enters a connection state of the connection point, the mouse selects one connectable device, a point which can be connected with the currently selected connection point appears on the device, the mouse moves to the connection point, and a preview line appears
Further, generating at least one connection path specifically includes:
determining first spatial position information of a power supply equipment model and second spatial position information of the equipment model to be connected according to the connection information;
determining the connection trend of the pipeline layout according to the first spatial position information and the second spatial position information;
and if the current connection trend exceeds the preset connection condition, deleting the current connection trend of the pipeline layout.
Specifically, the connection trend is a connection path, and the connection information may include, but is not limited to, reading, from a database, relative position information of the device model in the three-dimensional scene, and a connection manner between the device models, so that the first spatial position information of the power supply device model and the second spatial position information of the device model to be connected are obtained through the relative position information in the connection information, where the connection manner includes serial connection or parallel connection. The connection trend includes, but is not limited to, horizontal, vertical, oblique connection, roof walking, ground walking, fixed distance along a wall, etc., i.e., the pipeline layout connection trend between the equipment models is determined according to the first spatial position information and the second spatial position information. The horizontal and vertical directions refer to that the equipment models at two ends are regarded as two points in a space, a cuboid is constructed by taking the two points as vertexes, the edge passing from one vertex (first space position information) to the other vertex (second space position information) of the cuboid is the connection trend for connecting the two equipment models (namely the power equipment model and the equipment model to be connected), and the fact that a plurality of connection trends among the equipment models are different is required to be explained, and a connected pipeline does not pass through the equipment models; oblique connection refers to directly connecting two equipment models; the top-moving means that a pipeline connecting two end points (first space position information and second space position) where the two equipment models are located is generated along the horizontal plane of the wall surface and the top surface; the walking is to generate a pipeline connecting two end points (first space position information and second space position information) along the horizontal plane of the wall surface and the ground; the fixed distance along the wall is to keep a certain distance along the wall to generate a connecting line, and the closer distance along the wall is preferential.
It should be noted that, when detecting that a plurality of equipment models of the same type exist in the same target system, the preset connection conditions determine that the connection modes between the equipment models are in series connection; if the equipment model is strong current equipment and a strong current tube, the two equipment models cannot be connected; the routing rule of the strong current tube can select modes of direct connection, wall-following, ground-following and the like; when the strong electric tube is routed along the wall, the distance from the strong electric tube to the wall is at least 300mm; the strong current box can be connected with the weak current box, etc. If the generated current connection trend does not meet the connection condition, deleting the current connection trend, and ensuring the accuracy of the pipeline layout of the model equipment.
In some modes of embodiments of the present application, when the device models are in the same room, the connection conditions include: when the two equipment models are on the top or the two equipment models are on the ground, the equipment models can be two-ground inserted lamps, and the connection trend at the moment can be horizontal, vertical or oblique connection; the two equipment models are arranged on the wall, such as a socket and a socket, or a wall lamp and a wall lamp, when the average height of the same wall surface is lower than 1500mm, the connection trend of the ground is preferentially selected, and when the average height of the same wall surface is higher than 1500mm, the top is preferentially moved; when the two equipment models are at the same height and the distance of the same wall surface is less than or equal to 500mm, direct connection can be adopted; when adjacent to the wall surface, the wall surface can adopt a fixed distance along the wall by moving the roof and the ground; when the wall surfaces are not adjacent, the wall surfaces are flat and vertical by default; when the straight line connection is carried out, if the straight line connection collides with the wall body, the connection trend is eliminated; if the device model is on a wall and on a roof, for example, the device model can be a switch and a lamp, and the connection trend of the roof is adopted. The top part can be horizontally, vertically or directly connected, and meanwhile, the wall body is avoided; one on the wall and one on the ground, for example, the ground plug is connected in series with other sockets; the ground part of the ground can be horizontally, vertically or directly connected, but care needs to be taken to avoid the wall body.
It should be noted that, the direction of the equipment model with the connection trend needs to be considered, if the direction of the generated connection trend and the direction of the equipment model exceed 90 degrees or a detour condition occurs, the current connection trend is deleted.
In some optional implementations of this embodiment, the switching display is performed on at least one connection path in response to a preset shortcut key instruction.
The shortcut command is an operation command for switching the connection path, and the shortcut command can be activated by setting a shortcut action, for example, by pressing a TAB shortcut key or directly moving a mouse into the connection path, so that a connectable path between a pipeline and an equipment model can be displayed in a three-dimensional scene in a manner of previewing the connection path, and a user can conveniently select a more personalized pipeline arrangement path.
S203: and generating the strong current pipeline of the power supply equipment model and the equipment model to be connected according to the connection information of the connection path.
In the embodiment of the present application, generating the strong electric pipeline specifically includes:
determining the pipeline layout of the connection path according to the connection information;
generating a strong current pipeline according to the association relation and pipeline layout of the power supply equipment model and the equipment model to be connected;
three-dimensional display is performed on the high-current pipeline.
Specifically, through at least one connection path generated in S202 above, when one connection path is detected to be activated, for example, one connection path is clicked, at this time, the user is considered to confirm that the current connection path is the final connection path, and the connection information of the current connection path is transmitted to the generator to generate a correct pipeline layout, where the generator is used to calculate the association relationship between the connection trend of the pipeline layout in the three-dimensional scene arrangement and the related equipment model in the same system, and if the user moves the connection path of the equipment model, so that the connection information is changed, for example, when the user moves one connection path in the direction of the related equipment model, the connection information after movement is obtained, where the connection information includes the connection trend that needs to be transformed, for example, the pipeline position coordinates of the related equipment model, and the association relationship between the connection trend and the related equipment model to which the pipeline is connected is transmitted to the generator, so as to generate the moved pipeline layout in the three-dimensional scene. For example, the association relation of the serial/parallel connection between the equipment models, the connection trend of the relative position information, and finally, the strong electric pipeline in the three-dimensional scene is generated according to the association relation and the pipeline layout. The generation mode can be, for example, to generate a corresponding professional strong electric pipeline based on house type information, system configuration and position information of equipment model placement. Meanwhile, the generated strong electric pipeline is displayed in a three-dimensional scene by adopting a three-dimensional rendering technology, the generation result is shown in fig. 4, and fig. 4 is a three-dimensional display schematic diagram of the strong electric pipeline in the embodiment of the application.
In some optional implementations of this embodiment, by determining, in response to a selection instruction directed to a power device model, a device model to be connected associated with the power device model, when receiving a selection instruction directed to the device model to be connected, or when detecting that a first connection point in the power device model and a second connection point in the device model to be connected are sequentially activated, at least one connection path of the power device model and the device model to be connected is generated, and a strong electric pipeline of the power device model and the device model to be connected is generated according to connection information of the connection path, that is, circuit connection of the device model is achieved by selecting the device model to be connected or activating the connection points, not only is circuit wiring simpler and faster, a situation that an expected pipeline is difficult to be screened out quickly when facing multiple connection point devices is avoided, but also a strong electric pipeline is automatically generated through connection information, and efficiency of circuit design and circuit wiring is improved.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored in a computer-readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. The storage medium may be a nonvolatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a random access Memory (Random Access Memory, RAM).
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited in order and may be performed in other orders, unless explicitly stated herein. Moreover, at least some of the steps in the flowcharts of the figures may include a plurality of sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, the order of their execution not necessarily being sequential, but may be performed in turn or alternately with other steps or at least a portion of the other steps or stages.
With further reference to fig. 5, as an implementation of the method for drawing a heavy current pipeline shown in fig. 4, the present application provides an embodiment of a heavy current pipeline drawing apparatus, where an embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 4, and the apparatus may be specifically applied to various electronic devices.
As shown in fig. 5, the heavy current pipe drawing apparatus according to the present embodiment includes: an association module 51, a connection module 52 and a generation module 53. Wherein:
an association module 51, configured to determine a to-be-connected device model associated with the power device model in response to a selected instruction directed to the power device model, where the power device model and the to-be-connected device model are deployed in the same target system;
a connection module 52, configured to generate at least one connection path of the power supply device model and the device model to be connected when receiving a selection instruction directed to the device model to be connected, or when detecting that a first connection point in the power supply device model and a second connection point in the device model to be connected are sequentially activated;
and a generating module 53, configured to generate the power supply device model and the strong current pipeline of the device model to be connected according to the connection information of the connection path.
In the present embodiment, the connection module 52 includes:
a hover unit 521 for controlling the power supply device model to generate a first hover model and controlling the device model to be connected to generate a second hover model, respectively, wherein the first hover model includes a first connection point;
a bounding unit 522 for generating a bounding box for the second hover model when receiving a first activation instruction directed to the first connection point, wherein the bounding box comprises the second connection point;
the associating unit 523 is configured to, when receiving a second activation instruction directed to the second connection point, associate the first connection point and the second connection point, and generate at least one connection path.
In the embodiment of the present application, the association module 51 includes:
an acquiring unit 511 configured to acquire a preset device model and a target system, where the device model includes a power supply device model and an electrical device model;
a deployment unit 512, configured to deploy the device model on the target system according to a preset association instruction;
and a screening unit 513 for screening out the electrical equipment model associated with the power equipment model as the equipment model to be connected when receiving the selection instruction directed to the power equipment model.
In the embodiment of the present application, the generating module 53 includes:
a determining unit 531 for determining a pipeline layout of the connection path according to the connection information;
a generating unit 532, configured to generate a strong current pipeline according to the association relationship between the power supply device model and the device model to be connected, and the pipeline layout;
and a display unit 533 for performing three-dimensional display on the strong electric pipeline.
In the present embodiment, the connection module 52 further includes:
a space determining unit 524 for determining first space position information of the power supply device model and second space position information of the device model to be connected according to the connection information;
a layout trend unit 525 for determining a connection trend of the pipeline layout according to the first spatial position information and the second spatial position information;
and a deleting unit 526, configured to delete the current connection trend of the pipeline arrangement if the current connection trend exceeds the preset connection condition.
In this embodiment of the present application, the heavy current pipeline drawing device further includes:
the switching display module 54 is configured to respond to a preset shortcut key instruction, and perform switching display on at least one connection path.
With regard to the heavy-current pipe drawing apparatus in the above-described embodiment, the specific manner in which the respective modules perform the operations has been described in detail in the embodiment concerning the method, and will not be explained in detail here.
In order to solve the technical problems, the embodiment of the application also provides computer equipment. Referring specifically to fig. 6, fig. 6 is a basic structural block diagram of a computer device according to the present embodiment.
The computer device 6 comprises a memory 61, a processor 62, a network interface 63 communicatively connected to each other via a system bus. It is noted that only computer device 6 having components 61-63 is shown in the figures, but it should be understood that not all of the illustrated components are required to be implemented and that more or fewer components may be implemented instead. It will be appreciated by those skilled in the art that the computer device herein is a device capable of automatically performing numerical calculations and/or information processing in accordance with predetermined or stored instructions, the hardware of which includes, but is not limited to, microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASICs), programmable gate arrays (fields-Programmable Gate Array, FPGAs), digital processors (Digital Signal Processor, DSPs), embedded devices, etc.
The computer equipment can be a desktop computer, a notebook computer, a palm computer, a cloud server and other computing equipment. The computer equipment can perform man-machine interaction with a user through a keyboard, a mouse, a remote controller, a touch pad or voice control equipment and the like.
The memory 61 includes at least one type of readable storage medium including flash memory, hard disk, multimedia card, card memory (e.g., SD or D interface display memory, etc.), random Access Memory (RAM), static Random Access Memory (SRAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), programmable Read Only Memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the storage 61 may be an internal storage unit of the computer device 6, such as a hard disk or a memory of the computer device 6. In other embodiments, the memory 61 may also be an external storage device of the computer device 6, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card) or the like, which are provided on the computer device 6. Of course, the memory 61 may also comprise both an internal memory unit of the computer device 6 and an external memory device. In this embodiment, the memory 61 is typically used for storing an operating system and various application software installed on the computer device 6, such as program codes of a heavy-current pipeline drawing method, and the like. Further, the memory 61 may be used to temporarily store various types of data that have been output or are to be output.
The processor 62 may be a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments. The processor 62 is typically used to control the overall operation of the computer device 6. In this embodiment, the processor 62 is configured to execute a program code stored in the memory 61 or process data, for example, a program code for executing the strong electric pipe drawing method.
The network interface 63 may comprise a wireless network interface or a wired network interface, which network interface 63 is typically used for establishing a communication connection between the computer device 6 and other electronic devices.
The present application also provides another embodiment, namely, a computer-readable storage medium storing a strong electric pipeline drawing program executable by at least one processor to cause the at least one processor to perform the steps of the strong electric pipeline drawing method as described above.
From the above description of embodiments, it will be clear to a person skilled in the art that the above embodiment method may be implemented by means of software plus a necessary general hardware platform, but may of course also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method described in the embodiments of the present application.
It is apparent that the embodiments described above are only some embodiments of the present application, but not all embodiments, the preferred embodiments of the present application are given in the drawings, but not limiting the patent scope of the present application. This application may be embodied in many different forms, but rather, embodiments are provided in order to provide a more thorough understanding of the present disclosure. Although the present application has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that modifications may be made to the embodiments described in the foregoing, or equivalents may be substituted for elements thereof. All equivalent structures made by the specification and the drawings of the application are directly or indirectly applied to other related technical fields, and are also within the protection scope of the application.

Claims (8)

1. The method for drawing the strong electric pipeline is characterized by comprising the following steps of:
determining a to-be-connected device model associated with the power supply device model in response to a selected instruction directed to the power supply device model, wherein the power supply device model and the to-be-connected device model are deployed in the same target system;
when a selection instruction pointing to the equipment model to be connected is received, or when a first connection point in the power equipment model and a second connection point in the equipment model to be connected are sequentially activated, at least one connection path of the power equipment model and the equipment model to be connected is generated;
generating a strong current pipeline of the power supply equipment model and the equipment model to be connected according to the connection information of the connection path;
when detecting that the first connection point in the power supply equipment model and the second connection point in the equipment model to be connected are sequentially activated, generating at least one connection path of the power supply equipment model and the equipment model to be connected comprises:
respectively controlling the power supply equipment model to generate a first hovering model and controlling the equipment to be connected to generate a second hovering model, wherein the first hovering model comprises a first connection point;
generating a bounding box from the second hover model when a first activation instruction directed to a first connection point is received, wherein the bounding box comprises a second connection point;
when a second activation instruction pointing to a second connection point is received, the first connection point and the second connection point are associated, and at least one connection path is generated.
2. The method of claim 1, wherein determining a device model to be connected associated with the power device model in response to the selected instruction directed to the power device model comprises:
acquiring a preset equipment model and a target system, wherein the equipment model comprises a power supply equipment model and an electrical equipment model;
according to a preset association instruction, the equipment model is deployed in the target system;
when receiving a selection instruction pointing to the power supply equipment model, screening out the electrical equipment model associated with the power supply equipment model to serve as an equipment model to be connected.
3. The method of drawing a strong electric pipeline according to claim 2, wherein the generating the strong electric pipeline of the power supply equipment model and the equipment model to be connected according to the connection information of the connection path includes:
determining the pipeline layout of a connection path according to the connection information;
generating a strong current pipeline according to the association relation between the power supply equipment model and the equipment model to be connected and the pipeline layout;
and performing three-dimensional display on the strong electric pipeline.
4. A method of heavy-duty pipeline rendering as recited in claim 3, wherein said generating at least one connection path comprises:
determining first spatial position information of the power supply equipment model and second spatial position information of the equipment model to be connected according to the connection information;
determining the connection trend of the pipeline layout according to the first space position information and the second space position information;
and if the current connection trend exceeds the preset connection condition, deleting the current connection trend of the pipeline layout.
5. The heavy-current piping drawing method according to any one of claims 1 to 4, wherein after the generating at least one connection path of the power supply device model and the device model to be connected when receiving a selection instruction directed to the device model to be connected or when detecting that a first connection point in the power supply device model and a second connection point in the device model to be connected are sequentially activated, the method further comprises:
and responding to a preset shortcut key instruction, and switching and displaying at least one connection path.
6. A high-voltage pipeline drawing device, characterized by comprising:
an association module for determining a to-be-connected device model associated with a power device model in response to a selected instruction directed to the power device model, wherein the power device model and the to-be-connected device model are deployed in the same target system;
the connection module is used for generating at least one connection path of the power supply equipment model and the equipment model to be connected when receiving a selection instruction pointing to the equipment model to be connected or when detecting that a first connection point in the power supply equipment model and a second connection point in the equipment model to be connected are sequentially activated;
the generation module is used for generating the power supply equipment model and the strong current pipeline of the equipment model to be connected according to the connection information of the connection path;
the connection module includes:
a hover unit for controlling the power supply device model to generate a first hover model and controlling the device model to be connected to generate a second hover model, respectively, wherein the first hover model comprises a first connection point;
a bounding unit for generating a bounding box from the second hover model when receiving a first activation instruction directed to a first connection point, wherein the bounding box comprises a second connection point;
and the association unit is used for associating the first connection point with the second connection point and generating at least one connection path when receiving a second activation instruction pointing to the second connection point.
7. A computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor, when executing the computer program, implementing the steps of the high current pipeline drawing method of any one of claims 1 to 5.
8. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the heavy current pipeline drawing method according to any one of claims 1 to 5.
CN202110812767.4A 2021-07-19 2021-07-19 Strong electric pipeline drawing method and device, computer equipment and medium thereof Active CN113505426B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110812767.4A CN113505426B (en) 2021-07-19 2021-07-19 Strong electric pipeline drawing method and device, computer equipment and medium thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110812767.4A CN113505426B (en) 2021-07-19 2021-07-19 Strong electric pipeline drawing method and device, computer equipment and medium thereof

Publications (2)

Publication Number Publication Date
CN113505426A CN113505426A (en) 2021-10-15
CN113505426B true CN113505426B (en) 2024-04-12

Family

ID=78013720

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110812767.4A Active CN113505426B (en) 2021-07-19 2021-07-19 Strong electric pipeline drawing method and device, computer equipment and medium thereof

Country Status (1)

Country Link
CN (1) CN113505426B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013149013A (en) * 2012-01-18 2013-08-01 Toshiba Corp Automatic preparation method of circuit diagram
CN109522604A (en) * 2018-10-18 2019-03-26 广东三维家信息科技有限公司 Automatic routing system and method based on house type and water power end in a kind of decorations software
CN111241622A (en) * 2020-01-19 2020-06-05 杭州群核信息技术有限公司 Self-adaptive water heating electric pipeline adjusting system and method
CN111400789A (en) * 2018-12-30 2020-07-10 巧夺天宫(深圳)科技有限公司 Electrical engineering line pipe generation method and system and readable storage medium
CN112380607A (en) * 2020-11-18 2021-02-19 同济大学建筑设计研究院(集团)有限公司 Pipeline connection data generation method and device, computer equipment and storage medium
CN112464611A (en) * 2020-12-11 2021-03-09 电子科技大学 Automatic PCB wiring system based on cloud-end collaborative intelligent processing
CN113094855A (en) * 2021-04-08 2021-07-09 杭州群核信息技术有限公司 Method and system for realizing calibration and adjustment of water heating electric pipeline

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10380273B2 (en) * 2016-03-31 2019-08-13 M.C. Dean Inc. System and method for testing the validity of BIM-designed electrical wiring pathways
WO2018057048A1 (en) * 2016-09-20 2018-03-29 Siemens Product Lifecycle Management Software Inc. Automated design of a piping system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013149013A (en) * 2012-01-18 2013-08-01 Toshiba Corp Automatic preparation method of circuit diagram
CN109522604A (en) * 2018-10-18 2019-03-26 广东三维家信息科技有限公司 Automatic routing system and method based on house type and water power end in a kind of decorations software
CN111400789A (en) * 2018-12-30 2020-07-10 巧夺天宫(深圳)科技有限公司 Electrical engineering line pipe generation method and system and readable storage medium
CN111241622A (en) * 2020-01-19 2020-06-05 杭州群核信息技术有限公司 Self-adaptive water heating electric pipeline adjusting system and method
CN112380607A (en) * 2020-11-18 2021-02-19 同济大学建筑设计研究院(集团)有限公司 Pipeline connection data generation method and device, computer equipment and storage medium
CN112464611A (en) * 2020-12-11 2021-03-09 电子科技大学 Automatic PCB wiring system based on cloud-end collaborative intelligent processing
CN113094855A (en) * 2021-04-08 2021-07-09 杭州群核信息技术有限公司 Method and system for realizing calibration and adjustment of water heating electric pipeline

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
崔欢欢 ; 周方晓 ; 李智杰 ; 崔晓静 ; .基于BIM的机电设备系统建模方法.现代建筑电气.2017,(第02期),44-49. *

Also Published As

Publication number Publication date
CN113505426A (en) 2021-10-15

Similar Documents

Publication Publication Date Title
US10409305B2 (en) HVAC system configuration and zone management
JP6454949B2 (en) Information creation method, recording medium, information creation apparatus, information creation system
EP2557490A1 (en) Icon adding method and device in interface of android system and mobile terminal
CN106325668B (en) Touch event response processing method and system
CN104396282A (en) Configuration interface for a programmable multimedia controller
CN109933322A (en) A kind of page editing method, apparatus and computer readable storage medium
CN116628913B (en) Method, device, equipment and medium for configuring physical space layout of lamp
CN103648043B (en) Search control method and control device to intelligent television
CN109669657A (en) It is a kind of for carrying out the method and apparatus of remote document cooperation
CN101111821A (en) Methods, systems, and data models for describing an electrical device
CN105094841A (en) Page commenting method and device
CN104199917A (en) Method and device for translating webpage content and client
CN112162687B (en) Picture generation method and device, storage medium and electronic equipment
CN104461512A (en) Method and device for starting application program quickly
CN108710710B (en) Method and device for quickly changing cabinets in power distribution room
CN110765507A (en) Three-dimensional CAD (computer-aided design) modeling method, device and system based on cloud service technology
US11507712B2 (en) Generating an image for a building management system
CN113505426B (en) Strong electric pipeline drawing method and device, computer equipment and medium thereof
CN112906108A (en) Automatic generation method and device of building electrical design drawing and storage device
US11409406B2 (en) User interface for mobile device to navigate between components
CN111782382A (en) Task processing method and device, storage medium and electronic equipment
CN113656877B (en) Multi-layer house type model generation method, device, medium and electronic equipment
CN113778270A (en) Method and device for dragging icon
CN112256254A (en) Method and device for generating layout code
CN115981640A (en) Interface layout method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant