CN107908658B - Method for converting computer-aided design (CAD) to Single Wire Multimedia Memory (SWMM) inp file - Google Patents
Method for converting computer-aided design (CAD) to Single Wire Multimedia Memory (SWMM) inp file Download PDFInfo
- Publication number
- CN107908658B CN107908658B CN201710964542.4A CN201710964542A CN107908658B CN 107908658 B CN107908658 B CN 107908658B CN 201710964542 A CN201710964542 A CN 201710964542A CN 107908658 B CN107908658 B CN 107908658B
- Authority
- CN
- China
- Prior art keywords
- file
- cad
- inp
- format
- swmm
- 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.)
- Expired - Fee Related
Links
- 238000011960 computer-aided design Methods 0.000 title claims abstract description 41
- 238000000034 method Methods 0.000 title claims abstract description 13
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 7
- 238000010586 diagram Methods 0.000 description 2
- 238000001556 precipitation Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 230000035939 shock Effects 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/11—File system administration, e.g. details of archiving or snapshots
- G06F16/116—Details of conversion of file system types or formats
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/20—Drawing from basic elements, e.g. lines or circles
- G06T11/203—Drawing of straight lines or curves
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T17/00—Three dimensional [3D] modelling, e.g. data description of 3D objects
- G06T17/05—Geographic models
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Geometry (AREA)
- Remote Sensing (AREA)
- Computer Graphics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention discloses a method for converting CAD (computer-aided design) into SWMM inp (Single-wire-Messaging memory) files, which comprises the following steps: converting the CAD graph into a PDF format, and converting the PDF into a JPG format to be reserved as a background graph; newly building a layer in the CAD, selecting a positioning point in the layer, marking the positioning point by a line segment, closing all other layers, copying all elements in the layer to a newly-built CAD file, and storing the newly-built CAD file into a DXF format; opening EPANET, building a blank file, exporting the blank file in a pipe network form, wherein the output file is in an inp format, and saving the saved DXF format file into the inp file; and opening the inp file after the information is imported by using the SWMM, seeing the positioning points on the desktop after the information is opened, calling a background graph stored in a JPG format, enabling the positions of the positioning points to be consistent with the background graph by adjusting the size of the graph, and drawing the object according to the background graph. The invention can automatically acquire data without manual input, thereby saving time.
Description
Technical Field
The invention relates to a method, in particular to a method for converting CAD (computer-aided design) into SWMM inp file.
Background
SWMM is a dynamic precipitation-runoff model, which is mainly used for simulating a single precipitation event or long-term water yield and water quality simulation in a city. The runoff module part comprehensively treats precipitation, runoff and pollution loads generated by each sub-basin. The model can track and simulate the water quality and the water quantity of runoff generated by each sub-basin at any time with different time step lengths, and the flow, the water depth, the water quality and other conditions of water in each pipeline and river channel. The method is widely applied to planning, analyzing and designing storm flood, combined sewer, blow-down pipeline and other drainage systems in urban areas worldwide, and also widely applied to other non-urban areas. At present, the SWMM software is mainly used for directly storing a CAD graph as a. wmf file as a background, the CAD graph is imported into the SWMM, and related attribute data are manually input according to objects such as a background graph pipeline and a sub-catchment area, so that the operation is complicated.
Disclosure of Invention
The invention aims to overcome the defects in the prior art and provides a method for converting a CAD (computer-aided design) to an SWMM (shock wave memory) inp) file, which can automatically acquire data without manual input and save time.
The purpose of the invention is realized by the following technical scheme.
The invention discloses a method for converting CAD (computer-aided design) into SWMM inp (Single-wire-Measure) files, which comprises the following steps of:
converting a CAD graph into a PDF format, and converting the PDF into a JPG format to be reserved as a background graph;
step two, a layer is newly built in the CAD, positioning points are selected in the layer, line segments are used for marking the positioning points, all other layers are closed, all elements in the layer are copied to a newly built CAD file, and the newly built CAD file is stored into a DXF format;
step three, opening EPANET, building a blank file, exporting the blank file in a pipe network form, saving the file in the DXF format saved in the step two into an inp file, wherein the output file is in the inp format;
and step four, opening the inp file after the information is imported in the step three by using the SWMM, seeing the positioning point on the desktop after the inp file is opened, calling the background image stored in the step one into a JPG format, enabling the position of the positioning point to be consistent with the background image by adjusting the size of the image, and drawing the object according to the background image.
And in the second step, 5-8 positioning points are selected.
The object in the fourth step comprises a pipeline, a sub-catchment area and a node.
And step four, automatically acquiring the vector data adopted when the object is drawn according to the background picture, which is the same as that in the CAD picture.
Compared with the prior art, the technical scheme of the invention has the following beneficial effects:
according to the invention, some data in the CAD graph can be automatically acquired without manual input, and the method is simple, easy to understand and convenient to operate; when the data volume is large, a large amount of time can be saved; according to the background picture pipeline and the sub-catchment area object, vector data in the background picture pipeline and the sub-catchment area object are the same as vector data in the CAD graph, a large amount of checking time can be saved, and vector data are prevented from being lost.
Drawings
FIG. 1 is a JPG format diagram converted from CAD in the present invention;
FIG. 2 is a SWMM diagram after information is imported in the present invention.
Detailed Description
The invention is further described below with reference to the accompanying drawings.
The invention discloses a method for converting CAD (computer-aided design) into SWMM inp (Single-wire-Measure) files, which comprises the following steps of:
step one, converting the CAD graph into a PDF format, converting the PDF into a JPG format by using software, and reserving the JPG format as a background graph, as shown in FIG. 1.
Step two, newly building a layer in the CAD, and selecting a plurality of positioning points in the layer, wherein generally 5-8 positioning points can be selected; marking the positioning points by using a plurality of line segments, closing all other layers, copying all elements in the layers to a newly-built CAD file, and storing the newly-built CAD file into a DXF format.
And step three, opening EPANET, building a blank file, exporting the blank file in a pipe network form, wherein the output file is in an inp format, and storing the DXF format file stored in the step two into the inp file exported in the pipe network form by using software.
And step four, opening the inp file after the information is imported in step three by using the SWMM, as shown in FIG. 2, seeing the positioning points on the desktop after opening, calling the background graph stored in the JPG format in step one, enabling the positions of the positioning points to be consistent with the background graph by adjusting the size of the graph, drawing objects such as pipelines, sub-catchment areas, nodes and the like according to the background graph, wherein the adopted vector data such as length, area and the like is the same as that in the CAD graph, and is automatically acquired without manual input.
Claims (3)
1. A method for converting a CAD (computer-aided design) into an SWMM inp file is characterized by comprising the following steps of:
converting a CAD graph into a PDF format, and converting the PDF into a JPG format to be reserved as a background graph;
step two, a layer is newly built in the CAD, 5-8 positioning points are selected in the layer, the positioning points are marked by line segments, all other layers are closed, all elements in the layer are copied to a newly built CAD file, and the newly built CAD file is stored into a DXF format;
step three, opening EPANET, building a blank file, exporting the blank file in a pipe network form, saving the file in the DXF format saved in the step two into an inp file, wherein the output file is in the inp format;
and step four, opening the inp file after the information is imported in the step three by using the SWMM, seeing the positioning point on the desktop after the inp file is opened, calling the background image stored in the step one into a JPG format, enabling the position of the positioning point to be consistent with the background image by adjusting the size of the image, and drawing the object according to the background image.
2. The method of CAD-to-SWMM inp file of claim 1, wherein the objects in step four comprise pipelines, sub-catchments, nodes.
3. The method for converting CAD into SWMM inp file according to claim 1, wherein said vector data used for drawing the object based on the background map in step four is automatically acquired as in the CAD map.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710964542.4A CN107908658B (en) | 2017-10-17 | 2017-10-17 | Method for converting computer-aided design (CAD) to Single Wire Multimedia Memory (SWMM) inp file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710964542.4A CN107908658B (en) | 2017-10-17 | 2017-10-17 | Method for converting computer-aided design (CAD) to Single Wire Multimedia Memory (SWMM) inp file |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107908658A CN107908658A (en) | 2018-04-13 |
CN107908658B true CN107908658B (en) | 2022-01-04 |
Family
ID=61841369
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710964542.4A Expired - Fee Related CN107908658B (en) | 2017-10-17 | 2017-10-17 | Method for converting computer-aided design (CAD) to Single Wire Multimedia Memory (SWMM) inp file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107908658B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102799714A (en) * | 2012-06-27 | 2012-11-28 | 西安理工大学 | Method for extracting data of integrated pipeline of metro based on Auto computer-aided design (CAD) drawing |
CN104615823A (en) * | 2015-01-30 | 2015-05-13 | 天津大学 | Method for simulating riverway water quantity circulation by using SWMM software |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003178222A (en) * | 2001-12-11 | 2003-06-27 | Hitachi Ltd | Data converting method and device between business protocols and its processing program |
-
2017
- 2017-10-17 CN CN201710964542.4A patent/CN107908658B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102799714A (en) * | 2012-06-27 | 2012-11-28 | 西安理工大学 | Method for extracting data of integrated pipeline of metro based on Auto computer-aided design (CAD) drawing |
CN104615823A (en) * | 2015-01-30 | 2015-05-13 | 天津大学 | Method for simulating riverway water quantity circulation by using SWMM software |
Also Published As
Publication number | Publication date |
---|---|
CN107908658A (en) | 2018-04-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Sehili et al. | High-resolution subgrid models: background, grid generation, and implementation | |
CN106897516B (en) | Urban underground drainage pipe network reconstruction and reconstruction evaluation method | |
CN104361025A (en) | Method for fusing and integrating multi-source spatial data | |
Kahl et al. | Grid edge classification method to enhance levee resolution in dual-grid flood inundation models | |
CN104615823B (en) | A kind of method circulated using SWMM software simulating riverways water | |
Webber et al. | Validating a rapid assessment framework for screening surface water flood risk | |
CN107038287B (en) | Model analysis method and medium for checking topological structure relationship of drainage pipe network | |
CN110362726B (en) | Method and system for supplementing and improving data of urban underground drainage pipe network | |
CN107908658B (en) | Method for converting computer-aided design (CAD) to Single Wire Multimedia Memory (SWMM) inp file | |
CN108595572A (en) | One kind being suitable for urbanized area extracted with high accuracy water system and Watershed Unit method | |
CN116861598A (en) | SWMM rapid model generation method based on graph theory | |
CN108549765B (en) | Method for designing road longitudinal by using element line in Civil3D | |
Saleh et al. | An integrated weather–hydrologic–coastal–stormwater framework to model urban‐coastal interactions: City of Hoboken application | |
CN112861451B (en) | Seepage evolution CFD (computational fluid dynamics) calculation method for surge water dominant channel expansion process | |
Thakur et al. | Exploring CCHE2D and its sediment modelling capabilities | |
CN115391856A (en) | BIM-based outdoor pipe network parametric modeling method and system | |
Yang et al. | Predicting flood inundation and risk using GIS and hydrodynamic model: a case study at Eskilstuna, Sweden | |
Burry et al. | BIM-PIM-CIM: the challenges of modelling urban design behaviours between building and city scales | |
Boria et al. | A protocol to convert infrastructure data from computer-aided design (CAD) to geographic information systems (GIS) | |
CN112580131A (en) | Rapid search connection method for sub-catchment areas based on GIS (geographic information System) and SWMM (Single wire Meter-based Module) | |
CN107423520A (en) | Based on CAD secondary development rapid extraction pipeline information SWMM modeling methods | |
Selvanathan et al. | FloodwayGIS: An ArcGIS visualization environment to remodel a floodway | |
Eslahi et al. | BIM and Contribution to IFC-Bridge Development: Application on Raymond Barre Bridge | |
Yang et al. | Predicting flood inundation and risk using geographic information system and hydrodynamic model | |
Huang et al. | An Efficient Lagrangian-Based Approach for Transient Modelling and Analysis in Urban Water Distribution Networks:(055) |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20220104 |
|
CF01 | Termination of patent right due to non-payment of annual fee |