CN109165409B - River engineering plan framing method, electronic device and storage medium - Google Patents
River engineering plan framing method, electronic device and storage medium Download PDFInfo
- Publication number
- CN109165409B CN109165409B CN201810826483.9A CN201810826483A CN109165409B CN 109165409 B CN109165409 B CN 109165409B CN 201810826483 A CN201810826483 A CN 201810826483A CN 109165409 B CN109165409 B CN 109165409B
- Authority
- CN
- China
- Prior art keywords
- framing
- frame
- river
- view port
- engineering plan
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/10—Geometric CAD
- G06F30/13—Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Geometry (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Theoretical Computer Science (AREA)
- Civil Engineering (AREA)
- Structural Engineering (AREA)
- Computational Mathematics (AREA)
- Architecture (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Pure & Applied Mathematics (AREA)
- Evolutionary Computation (AREA)
- General Engineering & Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention provides a river channel engineering plan framing method, an electronic device and a storage medium. According to the invention, the riverway is not required to be cut, the integrity of the original riverway is not damaged, the framing efficiency and accuracy can be improved, the framing drawings are orderly arranged, the later batch printing of the drawings is facilitated, and meanwhile, the human intervention and the labor intensity are reduced.
Description
Technical Field
The present invention relates to the field of computer aided design, and in particular, to a river engineering plan framing method, an electronic device and a storage medium.
Background
Because of the development of information technology, computer aided design has been widely used in the engineering design field, and drawing software represented by AutoCAD has become a virtually standard universal drawing platform in the aspects of water conservancy and road engineering design. The application of parameterization, intelligence, modularization and other informationizing technologies remains at a low level.
The linear engineering such as river channels is generally distributed in a strip shape and is different from a few kilometers to tens kilometers, when the plane layout is drawn, the number of the framing pictures is often tens or even hundreds, the manual framing workload is large, the operation is tedious and boring, the mistakes are easy to occur, the efficiency is low, and in addition, the framing process needs to cut the river channels at the picture frames, so that the integrity of the river channels is destroyed. How to release hydraulic design workers from complicated low-level labor and continuously improve framing efficiency and technical level of river channel floor plan is a problem to be solved urgently.
Disclosure of Invention
In view of the above-mentioned drawbacks of the prior art, an object of the present invention is to provide a method, an electronic device and a storage medium for framing a river engineering plan, which are used for improving framing efficiency without damaging the integrity of the river engineering plan, and reducing workload of designers.
To achieve the above and other related objects, the present invention provides a method for framing a river engineering plan, the method comprising: receiving setting parameters of a framing frame; sequentially arranging framing frames set according to the setting parameters along the central line of the river in the river engineering plan at the first operation layer so as to divide the river into river parts; switching each of the framing frames of the river engineering plan and the layout thereof to a second operation layer; in the second operation layer, the frames are respectively arranged corresponding to the framing frames; the picture frame comprises a view port, and the view port presents a river channel part in the corresponding framing frame; and obtaining each picture frame and operating each river channel part through the view port to obtain each framing plan.
In an embodiment of the present invention, the river channel is one or more of a straight line, a curved line, a straight line-to-curved line connection, a straight line-to-straight line connection, and a curved line-to-curved line connection.
In an embodiment of the present invention, the dividing frames set according to the setting parameters are sequentially arranged along a center line of a river in a river engineering plan at the first operation layer to divide the river into river sections, including: placing the framing frame on the central line; moving the framing frame so that midpoints of two short sides in opposite side relation in the framing frame are respectively positioned on the central line; two intersection points are formed between the central points of two short sides in opposite side relation in the framing frame and the central line; taking any intersection point as a base point for placing the next framing frame so that adjacent framing frames are sequentially connected along the central line; if only one intersection point is formed between the middle points of the two short sides of the framing frame in opposite side relation and the central line, the middle point of the side line of the framing frame, which does not form the intersection point, is placed on the corresponding extension line of the central line, and the placement of the next framing frame is finished.
In an embodiment of the present invention, the frame is a standard frame with label information; or a frame provided in CAD software.
In an embodiment of the invention, the frame is set according to a setting parameter; the setting parameters include: any one or more of frame size, view port size, and view port and frame relative position.
In one embodiment of the present invention, the viewport operation comprises: any one or more of view port establishment, view port rotation, view port scaling, and view port locking.
In an embodiment of the present invention, the creation of the viewport includes setting two control points in the frame as corner points of the creation of the viewport, so that a relative position between the viewport and the frame is kept unchanged.
In an embodiment of the present invention, the framing frames set according to the setting parameters may be saved and added to the framing frame library for reuse.
To achieve the above and other related objects, the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the river engineering plan framing method.
To achieve the above and other related objects, the present invention provides an electronic device comprising: a processor for executing the computer program stored in the memory; and the memory is stored with a computer program which realizes the river engineering plan framing method when being executed by the processor.
As described above, according to the method, the electronic device and the storage medium for framing the river engineering plan, the framing frames set according to the setting parameters are sequentially arranged along the center line of the river in the river engineering plan at the first operation layer to divide the river into river parts, then the river engineering plan and the framing frames arranged in the river engineering plan are switched to the second operation layer, the frames are respectively arranged corresponding to the framing frames, and finally the frames are acquired and the river parts are operated through the view ports to obtain the framing plan. Has the following beneficial effects:
the method has the advantages that the river channel is not required to be cut, the integrity of the original river channel is not damaged, the framing efficiency and accuracy can be improved, the framing drawings are orderly and orderly arranged, the later batch printing of the drawings is facilitated, meanwhile, the human intervention is reduced, and the labor intensity is reduced.
Drawings
Fig. 1 is a schematic flow chart of a method for framing a river engineering plan according to an embodiment of the invention.
Fig. 2 is a schematic flow chart of a method for framing a river engineering plan according to another embodiment of the invention.
FIG. 3 is a schematic view showing the arrangement of the framing frames along the river to center line according to the present invention.
FIG. 4 is a schematic diagram of the final sectional plan view of the present invention in an embodiment.
Fig. 5 is a schematic diagram of an electronic device according to an embodiment of the invention.
Description of element reference numerals
S101-S105 method steps
S201 to S204 method steps
500. Electronic equipment
501. Memory device
502. Processor and method for controlling the same
Detailed Description
Other advantages and effects of the present invention will become apparent to those skilled in the art from the following disclosure, which describes the embodiments of the present invention with reference to specific examples. The invention may be practiced or carried out in other embodiments that depart from the specific details, and the details of the present description may be modified or varied from the spirit and scope of the present invention. It should be noted that the following embodiments and features in the embodiments may be combined with each other without conflict.
It should be noted that the drawings provided in the following embodiments merely illustrate the basic concept of the present invention by way of illustration, and only the components related to the present invention are shown in the drawings and are not drawn according to the number, shape and size of the components in actual implementation, the shape, number and proportion of each component in actual implementation may be arbitrarily changed, and the layout of the components may be more complicated.
As shown in fig. 1, a flow chart of a method for framing a river engineering plan in an embodiment of the invention is shown,
it should be noted that, the method for framing the river engineering plan in an embodiment of the present invention is applicable to two-dimensional plan.
In an embodiment of the present invention, the river channel is one or more of a straight line, a curved line, a straight line-to-curved line connection, a straight line-to-straight line connection, and a curved line-to-curved line connection.
Wherein, the actual river often presents irregular lines such as bending or turning, or is manually trimmed to form straight lines, or the two are combined.
It should be noted that, the river channel may refer to a river or a water flow channel, such as a river channel and a pipeline; or roads carrying traffic, such as highways, railways. The river engineering mainly refers to strip-shaped linear engineering such as river, pipeline, highway, railway and the like, and the engineering is characterized in that the length is often varied from several kilometers to tens of kilometers, and the sectional treatment is needed when a plan is drawn.
The framing method comprises the following steps:
step S101: receiving setting parameters of the framing frame.
It should be noted that, the setting parameters include: frame size, the size of frame is set up through setting up the parameter. The setting parameters are entered through a design use interface or a use interface in CAD software. The framing frame is rectangular.
Step S102: and sequentially arranging framing frames set according to the setting parameters along the central line of the river in the river engineering plan at the first operation layer so as to divide the river into river parts.
It should be noted that, the size of the framing frame set according to the setting parameters should be smaller than the size displayed by the river engineering plan at the first operation layer, so that the content of the river engineering plan displayed in the framing frame after framing is clear.
The center line may be a center line of the river marked by the original river engineering plan before the first operation layer is introduced, or may be a center line of the river marked by the river engineering plan manually after the first operation layer is introduced.
As shown in fig. 2, a flow chart of a method for framing a river engineering plan according to another embodiment of the present invention is shown, wherein a framing frame set according to the setting parameters is sequentially arranged along a center line of a river in the river engineering plan at a first operation layer to divide the river into river sections, and the method includes:
step S201: placing the framing frame on the central line;
the purpose of arranging the frame frames in sequence along the center line of the river in the river engineering plan is to maximize the coverage of the whole river
Step S202: moving the framing frame so that midpoints of two short sides in opposite side relation in the framing frame are respectively positioned on the central line; two intersection points are formed between the central points of two short sides in opposite side relation in the framing frame and the central line;
step S203: taking any intersection point as a base point for placing the next framing frame so that adjacent framing frames are sequentially connected along the central line;
step S204: if only one intersection point is formed between the middle points of the two short sides of the framing frame in opposite side relation and the central line, the middle point of the side line of the framing frame, which does not form the intersection point, is placed on the corresponding extension line of the central line, and the placement of the next framing frame is finished.
As shown in fig. 3, a schematic view of the present invention and the arrangement of the framing frames along the river-to-center line in an embodiment is shown.
For example, assuming that a midpoint of one short side of the frame is a, and a midpoint of another short side of the frame in opposite side relationship is B, in an embodiment of the present invention, a is placed on the central line, an intersection point C is formed, another intersection point D of the frame and the central line is searched, and the frame is rotated around the point a to the AD position with AB as a baseline. The point D is taken as a placement base point of the next framing frame, and the process is repeated.
If the frame and the center line form only one intersection point, it may be determined that the frame is presented as one end of the river channel. At this time, the midpoint of the side line of the frame, where the intersection point is not formed, is placed on the corresponding extension line of the central line, and since the intersection point is not formed on the corresponding extension line of the central line, the next frame cannot be placed as the base point, so that the placement of the next frame is ended.
In an embodiment of the present invention, the framing frames set according to the setting parameters may be saved and added to the framing frame library for reuse.
It should be noted that, in an embodiment of the present invention, the framing frame may be used as an intermediate auxiliary tool, and may be deleted or hidden after framing is completed, or may be stored in a framing frame library for later reuse.
Step S103: and switching each of the framing frames of the river engineering plan and the layout thereof to a second operation layer.
Preferably, the second operation layer is on top of the first operation layer. The first operation layer may refer to a model space or an underlying layer in the CAD software, and the second operation layer may refer to a drawing space or a layout layer in the CAD software.
Step S104: and in the second operation layer, the frames are respectively arranged corresponding to the framing frames, the frames comprise view ports, and the view ports represent river channel parts in the corresponding framing frames.
In an embodiment of the present invention, the frame is a standard frame with label information; or a frame provided in CAD software.
It should be noted that, the frame is a standard frame, which includes a viewport and a tab information field. The frames provided in the CAD software are also frames comprising a viewport and a tab information field.
In an embodiment of the invention, the frame is set according to a setting parameter; the setting parameters include: any one or more of frame size, view port size, and view port and frame relative position.
The setting parameters include setting the size of the frame, setting the size of the view port, and setting the relative position of the view port and the frame, and the setting parameters are input through a design use interface or a use interface in CAD software.
As shown in fig. 4, a schematic diagram of each of the resulting sectional plan views of an embodiment of the present invention is shown. Step S105: and obtaining each picture frame and operating each river channel part through the view port to obtain each framing plan.
It should be noted that, the manner of acquiring each frame may be one of a combination of copying, cutting, and dragging.
In one embodiment of the present invention, the viewport operation comprises: any one or more of view port establishment, view port rotation, view port scaling, and view port locking.
In an embodiment of the present invention, the creation of the viewport includes setting two control points in the frame as corner points of the creation of the viewport, so that a relative position between the viewport and the frame is kept unchanged.
It should be noted that, in the frame, by setting two control points in the frame as corner points established by the view port, the view port is established, and the relative position of the view port and the frame is kept unchanged. And (3) correcting the viewing ports in the viewing ports by calculating the inclination angles of the river channel parts in the corresponding framing frames, scaling the viewing ports to the range of the framing frames corresponding to the viewing ports according to the set proportion, and finally locking the viewing ports to prevent the viewing ports from deviating from the aligned framing frames due to later misoperation.
After the operation, the framing drawings can be generated so as to print the drawings in batches at a later stage.
To achieve the above and other related objects, the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the river engineering plan framing method.
The computer-readable storage medium, as will be appreciated by one of ordinary skill in the art: all or part of the steps for implementing the method embodiments described above may be performed by computer program related hardware. The aforementioned computer program may be stored in a computer readable storage medium. The program, when executed, performs steps including the method embodiments described above; and the aforementioned storage medium includes: various media that can store program code, such as ROM, RAM, magnetic or optical disks.
As shown in fig. 5, a schematic diagram of an electronic device according to an embodiment of the invention is shown, the electronic device 500 includes: a processor 502 for executing the computer program stored in the memory 501; a memory 501, on which a computer program is stored, which program, when being executed by the processor 502, implements the channel class engineering plan framing method.
The memory 501 may include Random Access Memory (RAM) and may further include non-volatile memory (non-volatile memory), such as at least one magnetic disk memory.
The processor 502 may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; but also Digital Signal Processors (DSP), application Specific Integrated Circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In summary, according to the method, the electronic device and the storage medium for framing the river engineering plan, the framing frames set according to the setting parameters are sequentially arranged along the center line of the river in the river engineering plan at the first operation layer to divide the river into river sections, then the river engineering plan and the framing frames arranged in the river engineering plan are switched to the second operation layer, the frames are respectively arranged corresponding to the framing frames, and finally the frames are acquired and the river sections are operated through the view ports to obtain the framing plan.
According to the invention, the riverway is not required to be cut, the integrity of the original riverway is not damaged, the framing efficiency and accuracy can be improved, the framing drawings are orderly arranged, the later batch printing of the drawings is facilitated, and meanwhile, the human intervention and the labor intensity are reduced.
The above embodiments are merely illustrative of the principles of the present invention and its effectiveness, and are not intended to limit the invention. Modifications and variations may be made to the above-described embodiments by those skilled in the art without departing from the spirit and scope of the invention. Accordingly, it is intended that all equivalent modifications and variations of the invention be covered by the claims, which are within the ordinary skill of the art, be within the spirit and scope of the present disclosure.
Claims (9)
1. The river engineering plan framing method is characterized by comprising the following steps of:
receiving setting parameters of a framing frame;
sequentially arranging framing frames set according to the setting parameters along the central line of the river in the river engineering plan at the first operation layer so as to divide the river into river parts; wherein, include: placing the framing frame on the central line; moving the framing frame so that midpoints of two short sides in opposite side relation in the framing frame are respectively positioned on the central line; two intersection points are formed between the central points of two short sides in opposite side relation in the framing frame and the central line; taking any intersection point as a base point for placing the next framing frame so that adjacent framing frames are sequentially connected along the central line; if only one intersection point is formed between the middle points of the two short sides in opposite side relation in the framing frame and the central line, the middle point of the side line, which does not form the intersection point, in the framing frame is placed on the corresponding extension line of the central line, and the placement of the next framing frame is finished;
switching each of the framing frames of the river engineering plan and the layout thereof to a second operation layer;
in the second operation layer, the picture frames are respectively arranged corresponding to the framing frames; the picture frame comprises a view port, and the view port presents a river channel part in the corresponding framing frame;
and obtaining each picture frame and operating each river channel part through the view port to obtain each framing plan.
2. The method for framing engineering plan of river course of claim 1, wherein the river course is one or more of straight line, curve, straight line-curve connection, straight line-straight line connection and curve-curve connection.
3. The method for framing a river engineering plan according to claim 1, wherein the frame is a standard frame with label information; or a frame provided in CAD software.
4. The method for framing a river engineering plan according to any one of claims 1 and 3, wherein the frame is set according to a set parameter; the setting parameters include: any one or more of frame size, view port size and view port and frame relative position.
5. The method for framing a river engineering plan according to claim 1, wherein the view port operation comprises: any one or more of view port establishment, view port rotation, view port scaling and view port locking.
6. The method for framing a river engineering plan according to claim 5, wherein the view port establishment includes setting two control points in the frame as corner points established by the view port, so that the relative position of the view port and the frame is kept unchanged.
7. The method for framing a river engineering plan according to claim 1, wherein framing frames set according to the setting parameters are stored and added to a framing frame library for reuse.
8. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when executed by a processor, implements the river engineering plan framing method according to any one of claims 1 to 7.
9. An electronic device, comprising: a processor for executing the computer program stored in the memory; a memory having stored thereon a computer program which when executed by a processor implements the river class engineering plan framing method of any one of claims 1 to 7.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810826483.9A CN109165409B (en) | 2018-07-25 | 2018-07-25 | River engineering plan framing method, electronic device and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810826483.9A CN109165409B (en) | 2018-07-25 | 2018-07-25 | River engineering plan framing method, electronic device and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN109165409A CN109165409A (en) | 2019-01-08 |
| CN109165409B true CN109165409B (en) | 2023-05-16 |
Family
ID=64898114
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810826483.9A Active CN109165409B (en) | 2018-07-25 | 2018-07-25 | River engineering plan framing method, electronic device and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109165409B (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110083875A (en) * | 2019-04-01 | 2019-08-02 | 浙江省水利水电勘测设计院 | A kind of survey design integration figure automatic map framing method based on AutoCAD layout |
| CN119830114B (en) * | 2025-03-17 | 2025-07-08 | 四川电力设计咨询有限责任公司 | A method and system for batch modifying CAD drawing frames and labels |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103927407A (en) * | 2014-01-24 | 2014-07-16 | 南宁市界围工程咨询有限公司 | Civil engineering geography design platform based on SOA architecture |
| CN106326538A (en) * | 2016-08-17 | 2017-01-11 | 北京道亨时代科技有限公司 | CAD drawing framing method and device |
| CN107729511A (en) * | 2017-10-24 | 2018-02-23 | 南京市测绘勘察研究院股份有限公司 | A kind of customizable geographic information data rectangular mapsubdivision method |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7349831B2 (en) * | 2003-01-31 | 2008-03-25 | Fmsm Engineers, Inc. | River assessment, monitoring and design system |
-
2018
- 2018-07-25 CN CN201810826483.9A patent/CN109165409B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103927407A (en) * | 2014-01-24 | 2014-07-16 | 南宁市界围工程咨询有限公司 | Civil engineering geography design platform based on SOA architecture |
| CN106326538A (en) * | 2016-08-17 | 2017-01-11 | 北京道亨时代科技有限公司 | CAD drawing framing method and device |
| CN107729511A (en) * | 2017-10-24 | 2018-02-23 | 南京市测绘勘察研究院股份有限公司 | A kind of customizable geographic information data rectangular mapsubdivision method |
Non-Patent Citations (1)
| Title |
|---|
| 大比例尺数字地形图虚拟分幅技术研究;黎杰等;《水力发电》;20180712;第44卷(第07期);第35-37页 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109165409A (en) | 2019-01-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111986326B (en) | Construction method and device of pavement three-dimensional model, computer equipment and storage medium | |
| US10255383B2 (en) | Rule based three-dimensional (3D) intersection model | |
| CN109165409B (en) | River engineering plan framing method, electronic device and storage medium | |
| CN111047682B (en) | A method and system for generating a three-dimensional lane model | |
| KR101552827B1 (en) | Method Of Dividing Three-dimensional Object Model | |
| CN112560150A (en) | Road surface elevation calculation method and device, computer equipment and storage medium | |
| US20160253449A1 (en) | Three dimensional (3d) virtual image modeling method for object produced through semiconductor manufacturing process | |
| CN112231801A (en) | BIM-based hole protection generation method, device and computer storage medium | |
| EP0893773A3 (en) | Simulation mesh generation method, apparatus, and program product | |
| CN113790730B (en) | Mobile robot navigation map conversion method and system based on DXF format | |
| US20070120849A1 (en) | Mesh generation method for numerical simulation | |
| US6523164B2 (en) | Method and apparatus for modifying flattened data of designed circuit pattern | |
| CN114035873B (en) | Picture cutting method and device, electronic equipment and storage medium | |
| CN120011466B (en) | Automatic road model construction method based on vector road network, storage medium and electronic device | |
| JP2001351984A (en) | Method for determining layout of dummy pattern, semiconductor device using the same, and method for manufacturing the same | |
| JPH0640344B2 (en) | How to edit shapes | |
| CN117771669A (en) | Urban road model generation method and device, electronic equipment and storage medium | |
| JP7702927B2 (en) | Method and program for automatically placing parts | |
| JP7291265B1 (en) | Concrete placement management device, concrete placement management method, and concrete placement management program | |
| CN115797365B (en) | Method and system for processing the edges of high-precision map area splicing units | |
| CN117408000B (en) | Automatic marking and avoiding method for pipeline point coordinate extraction annotation, electronic equipment and storage medium | |
| JP2753001B2 (en) | Method of changing design of semiconductor integrated circuit device | |
| CN119205202A (en) | Method and device for determining adjacent service locations of a target location | |
| JPH05108694A (en) | Finite element automatic generation method | |
| CN117011452A (en) | Track model generation method, device, computer 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 | ||
| TG01 | Patent term adjustment | ||
| TG01 | Patent term adjustment |