CN113886932A - Automatic wire breaking method for wire connection of CAD electrical drawing - Google Patents

Automatic wire breaking method for wire connection of CAD electrical drawing Download PDF

Info

Publication number
CN113886932A
CN113886932A CN202111239001.8A CN202111239001A CN113886932A CN 113886932 A CN113886932 A CN 113886932A CN 202111239001 A CN202111239001 A CN 202111239001A CN 113886932 A CN113886932 A CN 113886932A
Authority
CN
China
Prior art keywords
line segment
connecting lines
system diagram
wire connection
intersection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111239001.8A
Other languages
Chinese (zh)
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.)
Shanghai Pinlan Data Technology Co ltd
Original Assignee
Shanghai Pinlan Data 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 Shanghai Pinlan Data Technology Co ltd filed Critical Shanghai Pinlan Data Technology Co ltd
Priority to CN202111239001.8A priority Critical patent/CN113886932A/en
Publication of CN113886932A publication Critical patent/CN113886932A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/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/20Design optimisation, verification or simulation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Architecture (AREA)
  • Civil Engineering (AREA)
  • Structural Engineering (AREA)
  • Supply And Distribution Of Alternating Current (AREA)

Abstract

The invention belongs to the technical field of electrical design of construction drawings, and discloses an automatic disconnection method for wire connection of a CAD electrical drawing, which comprises the following specific operation steps: s1, scanning and calculating the power distribution trunk system diagram to obtain all connecting lines in the power distribution trunk system diagram; s2, filtering all the connecting lines in the acquired power distribution main line system diagram; and S3, carrying out intersection judgment on the connecting lines, and calculating and recording the intersection points. According to the method and the device, all connecting lines in the distribution main line system diagram are obtained through computer software engineering correlation techniques, the connecting lines are stored in a list mode, the connecting lines are filtered, the intersection points are calculated, automatic line breaking processing is carried out on the intersection points, the workload of designers is reduced, the accuracy can be improved through computer automatic processing, the omission generated by the designers due to carelessness is avoided, and the drawing efficiency can be effectively improved.

Description

Automatic wire breaking method for wire connection of CAD electrical drawing
Technical Field
The invention belongs to the technical field of electrical design of construction drawings, and particularly relates to an automatic wire disconnection method for wire connection of a CAD electrical drawing.
Background
The distribution main line system diagram is also called as a vertical system diagram, and is a drawing for a whole house, the distribution main line system diagram shows the interrelation between a distribution box and other electrical components and relevant information of the distribution of the house main line, and the distribution main line system diagram is designed according to the following seven design principles:
1. the design depth requirement is met;
2. the power distribution main line is clear, can be divided according to different conditions according to a transformer room, a power distribution area and a vertical shaft, and is marked with approximate functions;
3. the occurrence of small loops of a transformer room is reduced, and fire-fighting power supplies on the roof except for a fire-fighting elevator can share a dual-power switching box and then are distributed in a radiation mode;
4. a trunk line is used for connecting a plurality of distribution boxes as few as possible;
5. radiation of a trunk line formed by using double cables is avoided as much as possible;
6, when T-connection is carried out, paying attention to the cable specification of the branch loop;
7. the design file shows the numbering principle of the distribution box and the numbering principle of the trunk circuit.
In the design process of a distribution main line system diagram, a designer often performs disconnection processing at the intersection of a drawing circuit to keep the integral aesthetic property and readability of the drawing, the current process is manually judged and processed by the designer, and the manual operation has the following two disadvantages:
1. designers can omit some intersecting lines due to carelessness, and the readability of drawings is influenced;
2. the number of the crossed parts of the lines is more, and the drawing efficiency is influenced if designers process the crossed parts one by one.
Therefore, aiming at the problems, the method provides a method for solving the problem of automatic disconnection of the intersecting line in the distribution trunk system diagram by using the related technology of computer software engineering and combining with the electrical design specification, and has the advantages of high automatic processing efficiency and high accuracy.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides an automatic wire disconnection method for the wire connection of the CAD electrical drawing, which has the advantages of high automatic processing efficiency and high accuracy.
In order to achieve the purpose, the invention provides the following technical scheme: a CAD electrical drawing wire connection automatic disconnection method comprises the following specific operation steps:
s1, scanning and calculating the power distribution trunk system diagram to obtain all connecting lines in the power distribution trunk system diagram;
s2, filtering all the connecting lines in the acquired power distribution main line system diagram;
s3, carrying out intersection judgment on every two connecting lines, and calculating and recording intersection points;
and S4, performing retraction (wire breakage) processing on the electric wire at the intersection.
Preferably, the wires in the distribution trunk system diagram in S1 are stored in the form of a list, where the stored form is [ [ x1, y1], [ x2, y2] ], and by storing the wires in this form, the wires can be observed more intuitively, and meanwhile, the wires can be recorded more conveniently and easily.
Preferably, the filtering manner of the connection line in S2 is as follows: and filtering all the connecting lines according to the Euclidean distance between the two points, so that the time complexity of traversing once can be reduced, the overall working efficiency is improved, and the processing complexity is reduced.
Preferably, the method for calculating the coordinates of the intersection point at the intersection in S3 is as follows:
for line segment (x)1,y1),(x2,y2) Its parametric equation is:
Figure BDA0003318529460000021
for line segment (x)3,y3),(x4,y4) The parameter equation is as follows:
Figure BDA0003318529460000022
the system of equations can be written as:
Figure BDA0003318529460000023
is equivalent to:
Figure BDA0003318529460000031
parameters equation coefficients were solved using Cramer's law:
Figure BDA0003318529460000032
the parameter equations of two straight lines can be obtained, so that the intersection point coordinates can be obtained, the Cramer rule is used for judging the condition of solving the equation set of n linear equations with n unknowns, the intersection point of the coordinates can be conveniently solved, and the result is more accurate.
Preferably, the retraction processing manner of the electric wire in S4 is divided into two steps, the first step: judging the line segment direction (horizontal/vertical), and the second step: and performing disconnection operation on the horizontal line segment.
Preferably, the specific operation mode of the first step is as follows: judging whether the line segment is in the horizontal direction or the vertical direction according to the x and y values of the coordinates, performing the second step of operation when the line segment is a horizontal line segment, and skipping the line segment when the line segment is a vertical line segment; the specific operation mode of the second step is as follows: and taking the connecting line intersection point as a center, and performing line breaking operation on the line segment judged to be transverse.
Compared with the prior art, the invention has the following beneficial effects:
according to the method and the device, all connecting lines in the distribution main line system diagram are obtained through computer software engineering correlation techniques, the connecting lines are stored in a list mode, the connecting lines are filtered, the intersection points are calculated, automatic line breaking processing is carried out on the intersection points, the workload of designers is reduced, the accuracy can be improved through computer automatic processing, the omission generated by the designers due to carelessness is avoided, and the drawing efficiency can be effectively improved.
Drawings
FIG. 1 is a flow chart of the present invention for automatic disconnection;
fig. 2 is a diagram illustrating the effect of automatic disconnection according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1 to 2, the present invention provides a technical solution: a CAD electrical drawing wire connection automatic disconnection method comprises the following specific operation steps:
s1, scanning and calculating the power distribution trunk system diagram to obtain all connecting lines in the power distribution trunk system diagram;
s2, filtering all the connecting lines in the acquired power distribution main line system diagram;
s3, carrying out intersection judgment on every two connecting lines, and calculating and recording intersection points;
and S4, performing retraction (wire breakage) processing on the electric wire at the intersection.
The connection lines in the distribution trunk system diagram in the S1 are stored in a list form, where the storage form is [ [ x1, y1], [ x2, y2] ], and by storing the connection lines in this form, the connection lines can be observed more intuitively, and meanwhile, the comparison and recording of the connection lines are more convenient and easier.
Wherein, the filtering mode of the connecting line in the S2 is as follows: and filtering all the connecting lines according to the Euclidean distance between the two points, so that the time complexity of traversing once can be reduced, the overall working efficiency is improved, and the processing complexity is reduced.
Wherein, the method for calculating the coordinates of the intersection point at the intersection in the S3 is as follows:
for line segment (x)1,y1),(x2,y2) Its parametric equation is:
Figure BDA0003318529460000041
for line segment (x)3,y3),(x4,y4) The parameter equation is as follows:
Figure BDA0003318529460000042
the system of equations can be written as:
Figure BDA0003318529460000051
is equivalent to:
Figure BDA0003318529460000052
parameters equation coefficients were solved using Cramer's law:
Figure BDA0003318529460000053
the parameter equations of two straight lines can be obtained, so that the intersection point coordinates can be obtained, the Cramer rule is used for judging the condition of solving the equation set of n linear equations with n unknowns, the intersection point of the coordinates can be conveniently solved, and the result is more accurate.
Wherein, the retraction processing mode for the electric wire in the S4 is divided into two steps, the first step: judging the line segment direction (horizontal/vertical), and the second step: and performing disconnection operation on the horizontal line segment.
The specific operation mode of the first step is as follows: judging whether the line segment is in the horizontal direction or the vertical direction according to the x and y values of the coordinates, performing the second step of operation when the line segment is a horizontal line segment, and skipping the line segment when the line segment is a vertical line segment; the specific operation mode of the second step is as follows: and taking the connecting line intersection point as a center, and performing line breaking operation on the line segment judged to be transverse.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (6)

1. A method for automatically breaking wire connection of a CAD electrical drawing is characterized by comprising the following steps: the method for automatically disconnecting the wire connection of the CAD electrical drawing comprises the following specific operation steps:
s1, scanning and calculating the power distribution trunk system diagram to obtain all connecting lines in the power distribution trunk system diagram;
s2, filtering all the connecting lines in the acquired power distribution main line system diagram;
s3, carrying out intersection judgment on every two connecting lines, and calculating and recording intersection points;
and S4, performing retraction (wire breakage) processing on the electric wire at the intersection.
2. The automatic disconnection method for the wire connection of the CAD electrical drawing according to claim 1, characterized in that: the wires in the distribution trunk system diagram in S1 are stored in the form of a list, where the storage form is [ [ x1, y1], [ x2, y2] ].
3. The automatic disconnection method for the wire connection of the CAD electrical drawing according to claim 1, characterized in that: the filtering mode of the connecting line in the S2 is as follows: and filtering all the connecting lines according to the Euclidean distance between the two points.
4. The automatic disconnection method for the wire connection of the CAD electrical drawing according to claim 1, characterized in that: the method for calculating the coordinates of the intersection points at the intersection positions in the S3 is as follows:
for line segment (x)1,y1),(x2,y2) Its parametric equation is:
Figure FDA0003318529450000011
for line segment (x)3,y3),(x4,y4) The parameter equation is as follows:
Figure FDA0003318529450000012
the system of equations can be written as:
Figure FDA0003318529450000013
is equivalent to:
Figure FDA0003318529450000014
parameters equation coefficients were solved using Cramer's law:
Figure FDA0003318529450000021
the parameter equation of the two straight lines can be obtained, and the coordinates of the intersection point can be obtained.
5. The automatic disconnection method for the wire connection of the CAD electrical drawing according to claim 1, characterized in that: the retraction processing mode of the electric wire in the step S4 is divided into two steps, the first step: judging the line segment direction (horizontal/vertical), and the second step: and performing disconnection operation on the horizontal line segment.
6. The automatic disconnection method for the wire connection of the CAD electrical drawing according to claim 5, characterized in that: the specific operation mode of the first step is as follows: judging whether the line segment is in the horizontal direction or the vertical direction according to the x and y values of the coordinates, performing the second step of operation when the line segment is a horizontal line segment, and skipping the line segment when the line segment is a vertical line segment; the specific operation mode of the second step is as follows: and taking the connecting line intersection point as a center, and performing line breaking operation on the line segment judged to be transverse.
CN202111239001.8A 2021-10-25 2021-10-25 Automatic wire breaking method for wire connection of CAD electrical drawing Pending CN113886932A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111239001.8A CN113886932A (en) 2021-10-25 2021-10-25 Automatic wire breaking method for wire connection of CAD electrical drawing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111239001.8A CN113886932A (en) 2021-10-25 2021-10-25 Automatic wire breaking method for wire connection of CAD electrical drawing

Publications (1)

Publication Number Publication Date
CN113886932A true CN113886932A (en) 2022-01-04

Family

ID=79013525

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111239001.8A Pending CN113886932A (en) 2021-10-25 2021-10-25 Automatic wire breaking method for wire connection of CAD electrical drawing

Country Status (1)

Country Link
CN (1) CN113886932A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01175682A (en) * 1987-12-29 1989-07-12 Nec Corp Inter-polygon intersection line calculation system
CN103077496A (en) * 2013-02-18 2013-05-01 天津市电力公司 Automatic bridging graphics processing method for power system circuit
CN107194075A (en) * 2017-05-24 2017-09-22 上海安路信息科技有限公司 The connecting line construction and distributing system and method for PLD
CN109271844A (en) * 2018-07-29 2019-01-25 国网上海市电力公司 Electrical cabinet electrical symbol recognition methods based on OpenCV
JP2020052978A (en) * 2018-09-28 2020-04-02 エーティーラボ株式会社 Three-dimensional shape creation device, three-dimensional shape creation method and three-dimensional shape creation program
WO2021063983A1 (en) * 2019-09-30 2021-04-08 Pre Framing Corp. Computer-aided design methods and systems
CN112861382A (en) * 2021-03-17 2021-05-28 广东电网有限责任公司 Method and device for drawing power line diagram in power system
CN113205147A (en) * 2021-05-20 2021-08-03 中国电建集团福建省电力勘测设计院有限公司 Laser point cloud classification method for overhead transmission line engineering

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01175682A (en) * 1987-12-29 1989-07-12 Nec Corp Inter-polygon intersection line calculation system
CN103077496A (en) * 2013-02-18 2013-05-01 天津市电力公司 Automatic bridging graphics processing method for power system circuit
CN107194075A (en) * 2017-05-24 2017-09-22 上海安路信息科技有限公司 The connecting line construction and distributing system and method for PLD
CN109271844A (en) * 2018-07-29 2019-01-25 国网上海市电力公司 Electrical cabinet electrical symbol recognition methods based on OpenCV
JP2020052978A (en) * 2018-09-28 2020-04-02 エーティーラボ株式会社 Three-dimensional shape creation device, three-dimensional shape creation method and three-dimensional shape creation program
WO2021063983A1 (en) * 2019-09-30 2021-04-08 Pre Framing Corp. Computer-aided design methods and systems
CN112861382A (en) * 2021-03-17 2021-05-28 广东电网有限责任公司 Method and device for drawing power line diagram in power system
CN113205147A (en) * 2021-05-20 2021-08-03 中国电建集团福建省电力勘测设计院有限公司 Laser point cloud classification method for overhead transmission line engineering

Similar Documents

Publication Publication Date Title
CN112288254B (en) Construction quality detection method, terminal and storage medium
CN110826800B (en) Photovoltaic power station layout method and device
CN109299675B (en) Electrical drawing based distribution box identification method and device
CN111405253B (en) Outdoor substation primary equipment monitoring camera point selection arrangement method, system and medium
CN117408069A (en) Automatic sheet metal part parting line generation method, storage medium and electronic equipment
CN114419188B (en) Automatic construction method and device for electronic fence in field operation area and storage medium
EP2956875A1 (en) Method for generating a file for modeling electrical equipment, and related computer program material, modeling file, and electronic displaying device
CN115116083A (en) Method, system and storage medium for automatically identifying and correcting electric power graphics primitives of monitoring picture
CN113886932A (en) Automatic wire breaking method for wire connection of CAD electrical drawing
CN114581331A (en) Point cloud noise reduction method and device suitable for multiple scenes
CN114842494A (en) Method for automatically identifying connection relation of station wiring diagrams of power system
CN116452604B (en) Complex substation scene segmentation method, device and storage medium
JP2013097489A (en) Processor, processing method, processing program and recording medium for point group data
CN115131417B (en) Laser point cloud 2D-3D bimodal interaction enhanced irregular wire detection method
CN108629219A (en) A kind of method and device of identification one-dimension code
CN115146331A (en) Method, device and equipment for determining photovoltaic array shadow and storage medium
CN108021768B (en) Intelligent segmentation method based on bus trend attribute and socket information
CN112507838A (en) Pointer meter identification method and device and power inspection robot
CN205301469U (en) Portable transformer dc magnetic biasing monitor
CN112862961B (en) Horizon dead pixel filtering method, device, equipment and storage medium
CN110706264A (en) Underwater construction control event automatic acquisition method based on sonar point cloud data
CN108280574A (en) A kind of evaluation method and device of distribution net work structure maturity
CN116611602B (en) Photovoltaic panel cleaning path planning method and system
CN112199418B (en) State identification method, device and equipment for industrial object
CN109829019A (en) A kind of data transfer device of vector data, device and electronic equipment

Legal Events

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