{"id":1958,"date":"2015-01-21T11:29:52","date_gmt":"2015-01-21T15:59:52","guid":{"rendered":"https:\/\/www.hidrasoftware.com\/?p=1958"},"modified":"2021-01-12T05:40:44","modified_gmt":"2021-01-12T10:10:44","slug":"creating-a-desagues-drains-project-from-drawing-files","status":"publish","type":"post","link":"https:\/\/www.hidrasoftware.com\/en\/creating-a-desagues-drains-project-from-drawing-files\/","title":{"rendered":"Creating a DESAG\u00dcES (DRAINS) Project from Drawing Files"},"content":{"rendered":"<p>As well as in our software PLUMBER, in <strong>DESAG\u00dcES, the software for building drainage system design (sanitary and storm),<\/strong> we have incorporated the option of <strong>importing objects such as lines, circles, and texts from drawing files, in such a way to turn them into \u201chydraulic\u201d objects such as pipes and nodes in the software<\/strong>. This minimizes user\u00b4s data entry errors and saves, in addition, a large amount of time in the project\u2019s creation.<\/p>\n<p>The idea behind this feature is that <strong><em>you can make the drainage network\u2019s geometric design \u2013 plan layout &#8211; from your chosen drawing program <\/em><\/strong>(of course, following some conditions we will be giving in this tutorial), save it as a DXF format file, and then import it to DESAG\u00dcES. <strong>Thus, assuming that the file import has been completely successful, you\u00b4ll need to just click on the Calculate button to get diameters, materials lists, and plan and isometric drawings<\/strong> with the required information (diameters, lengths and slopes) to generate your project\u00b4s documents. All this in just minutes!<\/p>\n<p>Let us look in following sections for the aspects to be taken into account to set your drawing files, in order to be imported into DESAG\u00dcES:<\/p>\n<h2>The DXF Drawing File Format<\/h2>\n<p>DXF format (<em>Drawing Exchange Format<\/em>)\u201c is a CAD data file format developed by Autodesk for enabling data interoperability between AutoCAD and other programs.\u201d (<a href=\"http:\/\/en.wikipedia.org\/wiki\/AutoCAD_DXF\">Wikipedia<\/a>).<br \/>\n<div class=\"su-note\"  style=\"border-color:#167dc1;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#3097DB;border-color:#fcffff;color:#FFFFFF;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\">While this format was created by AUTODESK, the firm behind AUTOCAD\u00ae software, among others, it is not mandatory that you use this program to generate DXF files, as <strong>most drawing software includes this option through their \u201cSave As\u201d or \u201cExport\u201d menus<\/strong>.<\/div><\/div>\n<p>We will develop this article based on this example of drainage network (which captures wastewater from sanitary fixtures on the same building\u00b4s story and discharges in a sanitary stack):<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3654\" title=\"buildings-drainage-network-drawing\" src=\"https:\/\/www.hidrasoftware.com\/wp-content\/uploads\/2015\/01\/01_buildings-drainage-network-drawing.jpg\" alt=\"buildings-drainage-network-drawing\" width=\"611\" height=\"737\"><\/p>\n<p>If you look at the drawing file\u2019s components, you will find that f<strong>ollowing conditions have been fulfilled to achieve adequate importing to DESAG\u00dcES<\/strong> (DRAINS):<\/p>\n<p><a name=\"condicionesdibujo\"><\/a><\/p>\n<h3>1 Only Two Layers are required to contain objects that defines the network<\/h3>\n<p>It is necessary that a <strong>node\u2019s name<\/strong> (a node must be created where a sanitary fixture discharges and where more than two pipes intersects) <strong>and the circle indicating its location<\/strong> <strong>are created or grouped in one layer<\/strong>. Likewise <strong>lines (or polylines) that identify branches or pipes must be in other layer<\/strong>. In our sample drawing these are as follows:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3655\" title=\"Only-Two-Layers-are-required-to-contain-objects-that-define-the-network\" src=\"https:\/\/www.hidrasoftware.com\/wp-content\/uploads\/2015\/01\/02_Only-Two-Layers-are-required-to-contain-objects-that-define-the-network.jpg\" alt=\"Only-Two-Layers-are-required-to-contain-objects-that-define-the-network\" width=\"305\" height=\"318\"><\/p>\n<p>Layers can have any name. DESAG\u00dcES&#8217; import dialog lets you to select them from a list, as we shall see later.<\/p>\n<h3>2 Node&#8217;s names were created using Single Line Text<\/h3>\n<p>When importing<strong>, DESAG\u00dcES will search only for single line text entities<\/strong> (command &#8216;Text&#8217; in AUTOCAD\u00ae) <strong>closest to the node&#8217;s symbols<\/strong> (circles on the same node&#8217;s text layer) and will use its contents to define the node&#8217;s label in the project. In this process, one of the following situations may arise:<\/p>\n<ul class=\"list_check\">\n<li><strong>No nearby text (in the same layer) is found<\/strong>, in which case the software will assign a name or label automatically for the node.<\/li>\n<li><strong>A nearby text is found<\/strong>, verifying that the node&#8217;s name is unique (not repeated in the current project). If the name already exists, again, software will assign a new name automatically. If not repeated, the single line text contents will be used to set the name for the new node in this network project.<\/li>\n<li><strong>Detects the closest text and verifies that the first three letters of its contents corresponds to one of the abbreviations shown in the following table<\/strong>. In this case the node will be created with the single line text contents as its name, but also will be assigned to it the corresponding sanitary fixture.<\/li>\n<\/ul>\n<p><a name=\"abreviaturas\"><\/a><br \/>\n<div class=\"su-table su-table-responsive su-table-alternate su-table-fixed\">\n<table>\n<tbody>\n<tr>\n<td width=\"159\">\n<p style=\"text-align: center\"><strong>Sanitary Fixture<\/strong><\/p>\n<\/td>\n<td width=\"125\">\n<p style=\"text-align: center\"><strong>Three first digits in Single line text contents<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"159\">\n<p style=\"text-align: center\">Bathtub<\/p>\n<\/td>\n<td width=\"125\">bth<\/td>\n<\/tr>\n<tr>\n<td width=\"159\">Laundry tray<\/td>\n<td width=\"125\">ltr<\/td>\n<\/tr>\n<tr>\n<td width=\"159\">Bidet<\/td>\n<td width=\"125\">bid<\/td>\n<\/tr>\n<tr>\n<td width=\"159\">Shower<\/td>\n<td width=\"125\">shw<\/td>\n<\/tr>\n<tr>\n<td width=\"159\">Kitchen Sink<\/td>\n<td width=\"125\">ksn<\/td>\n<\/tr>\n<tr>\n<td width=\"159\">Drinking fountain<\/td>\n<td width=\"125\">dfn<\/td>\n<\/tr>\n<tr>\n<td width=\"159\">Dishwasher<\/td>\n<td width=\"125\">dws<\/td>\n<\/tr>\n<tr>\n<td width=\"159\">Lavatory<\/td>\n<td width=\"125\">lav<\/td>\n<\/tr>\n<tr>\n<td width=\"159\">Service Sink<\/td>\n<td width=\"125\">ssn<\/td>\n<\/tr>\n<tr>\n<td width=\"159\">Washing machine<\/td>\n<td width=\"125\">wmc<\/td>\n<\/tr>\n<tr>\n<td width=\"159\">Urinal (Valve)<\/td>\n<td width=\"125\">uri<\/td>\n<\/tr>\n<tr>\n<td width=\"159\">WC (Tank)<\/td>\n<td width=\"125\">wct<\/td>\n<\/tr>\n<tr>\n<td width=\"159\">WC (Valve)<\/td>\n<td width=\"125\">wcv<\/td>\n<\/tr>\n<tr>\n<td width=\"159\">Bathroom (Tank WC)<\/td>\n<td width=\"125\">btk<\/td>\n<\/tr>\n<tr>\n<td width=\"159\">Bathroom (Valve WC)<\/td>\n<td width=\"125\">bvl<\/td>\n<\/tr>\n<tr>\n<td width=\"159\">Floor Sink<\/td>\n<td width=\"125\">fsk<\/td>\n<\/tr>\n<tr>\n<td width=\"159\">Cleanout<\/td>\n<td width=\"125\">cle<\/td>\n<\/tr>\n<tr>\n<td width=\"159\">Stack<\/td>\n<td width=\"125\">stk<\/td>\n<\/tr>\n<tr>\n<td width=\"159\">Sewer\u00b4s Discharge Chamber<\/td>\n<td width=\"125\">dis<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div class=\"su-note\"  style=\"border-color:#167dc1;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#3097DB;border-color:#fcffff;color:#FFFFFF;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\">It doesn&#8217;t matter if the first three letters in a single line text content are in uppercase (WCT, for example, for WC with tank), lowercase (wct) or any other variation (WcT, Wct, etc.) DESAG\u00dcES, in any case, will assign the appropriate fixture.What is really important,<strong> in case you have on the same drawing more than two similar sanitary fixtures,<\/strong> is <strong>to add a sequential number to each abbreviation <\/strong>in order to have different names, for example: Lav1, Lav2, etc.<\/div><\/div>\n<h3>Pipes (or branches) have been created using line or polyline drawing entities<\/h3>\n<p>DESAG\u00dcES will look for lines and polylines within the selected layer from the import dialog and will create the network\u00b4s pipes or branches. This is valid for both types of systems: sanitary and pluvial.<\/p>\n<p><strong>The only condition to be satisfied is that each line or polyline begins and ends in any of the circles defining the nodes&#8217; locations<\/strong>. That is, if the plan layout of some of the pipes has changes in direction (bends where sanitary elbows will be necessary), <strong>you must use a polyline<\/strong> as we did to define the branch N2-N3 on our drawing file example:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3656\" title=\"Use-polylines-for-those-branches-with-bends\" src=\"https:\/\/www.hidrasoftware.com\/wp-content\/uploads\/2015\/01\/03_Use-polylines-for-those-branches-with-bends.jpg\" alt=\"Use-polylines-for-those-branches-with-bends\" width=\"580\" height=\"538\"><\/p>\n<div class=\"su-note\"  style=\"border-color:#167dc1;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#3097DB;border-color:#fcffff;color:#FFFFFF;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\">An important aspect is that, during the importing process, <strong>DESAG\u00dcES will determine the angle of these polyline\u2019s changes of direction, thus defining the number of sanitary elbows (45\u00b0 or 90\u00b0) required.<\/strong> The quantities will be included, of course, in the project&#8217;s material list.<\/div><\/div>\n<p>Even though, from the software, it&#8217;s possible to &#8220;reverse&#8221; the pipes&#8217; start and end nodes to correspond them with flow direction (positive convention is: end-to-start node), <strong>it is recommended that the creation (drawing) of the lines and polylines entities in your drawing be done from the upstream to downstream node of each pipe&#8217;s branch<\/strong>. In our drawing example, for N2-N3 pipe, the vertex 1 of the polyline would be located on N3 (upstream node), the second vertex corresponds with the change in direction and the third one would be located on N2 (downstream node).<\/p>\n<h3>All Set! Let&#8217;s Import<\/h3>\n<p>As described in the previous section, the process of creating a drawing file that is consistent with DESAG\u00dcES is quite simple. Now you&#8217;ll only have to export it in DXF format from your chosen drawing software and store it on your computer to start the importing procedure.<\/p>\n<p>Since we are dealing in this example with a sanitary network, <strong>we\u00b4ll create a new one from a DESAG\u00dcES&#8217; blank project<\/strong>. <strong><em>So create a New Project from Main application menu, activate Network tab on main window (click on it), and click on create a New Network button on Current Network Panel:<\/em><\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3657\" title=\"Creating-a-new-drains-network\" src=\"https:\/\/www.hidrasoftware.com\/wp-content\/uploads\/2015\/01\/04_Creating-a-new-drains-network.jpg\" alt=\"Creating-a-new-drains-network\" width=\"577\" height=\"552\"><\/p>\n<div class=\"su-note\"  style=\"border-color:#167dc1;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#3097DB;border-color:#fcffff;color:#FFFFFF;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\">\n<p>With DESAG\u00dcES, it is not only possible to create drains networks from a drawing file, but also networks of sanitary and storm building sewers. In the latter case, <strong>you must be located in the Sewers tab<\/strong> and select the applicable network type:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3658\" title=\"It-is-also-available-importing-from-drawing-files-the-building-sewers\" src=\"https:\/\/www.hidrasoftware.com\/wp-content\/uploads\/2015\/01\/05_It-is-also-available-import-from-drawing-files-of-building-sewers.png\" alt=\"It-is-also-available-importing-from-drawing-files-the-building-sewers\" width=\"436\" height=\"320\"><\/p>\n<p>Once this is completed, the required following steps are similar to those described below.<\/p>\n<\/div><\/div>\n<p>Once a sanitary network is created, <strong><em>click DXF button <\/em><\/strong>on <strong>Import panel<\/strong> to access the <strong><em>Import dialog<\/em><\/strong>. Here you must perform the following sequence:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3659\" title=\"DXF-drawing-import-dialog\" src=\"https:\/\/www.hidrasoftware.com\/wp-content\/uploads\/2015\/01\/06_DXF-drawing-import-dialog.jpg\" alt=\"DXF-drawing-import-dialog\" width=\"691\" height=\"631\"><\/p>\n<ol>\n<li><strong>Click button to access Open File dialog<\/strong>. Locate the path to your drawing in DXF format and click the Open button in that dialog. After reading the information, &#8216;File to import&#8217; plus the path and selected file name text will be shown.<\/li>\n<li><strong>Select (check) the check boxes \u2018Import Nodes and Texts from layer\u2019 and \u2018Import Pipes from layer\u2019.<\/strong> This will allow you to select the layers from the list on the right.<\/li>\n<li><strong>Select the drawings layers that group the objects to be imported<\/strong> (and converted), as seen in above image.<\/li>\n<li>You can specify, as a filter, <strong>the minimum length (on drawings units) that lines and polylines to be imported must have<\/strong>. Thus will not be imported, if applicable, lines drawn by mistake.<\/li>\n<li><strong>Click on the Import button<\/strong>. If everything is OK, <strong>a message indicating how many objects have been imported <\/strong>and converted will be shown:<\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3660\" title=\"Message-shown-after-dxf-file-import\" src=\"https:\/\/www.hidrasoftware.com\/wp-content\/uploads\/2015\/01\/07_Message-shown-after-dxf-file-import.jpg\" alt=\"Message-shown-after-dxf-file-import\" width=\"405\" height=\"194\"><\/p>\n<div class=\"su-note\"  style=\"border-color:#167dc1;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#3097DB;border-color:#fcffff;color:#FFFFFF;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\">As shown in the above image, it <strong>is important to verify, from the resulting message, that the number of nodes and pipes created corresponds to the number of imported objects<\/strong> from the drawing file (circles and lines or polylines). This guarantees that the software has properly \u2018understood\u2019 the provided information through the drawing file.<\/div><\/div>\n<p>Additionally, when you close the previous window message, <strong>you&#8217;ll see that the nodes and pipes tables have been filled with data:<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3661\" title=\"nodes-and-pipes-data-created-from-dxf-drawing-file\" src=\"https:\/\/www.hidrasoftware.com\/wp-content\/uploads\/2015\/01\/08_nodes-and-pipes-data-created-from-dxf-drawing-file.jpg\" alt=\"nodes-and-pipes-data-created-from-dxf-drawing-file\" width=\"1010\" height=\"659\"><\/p>\n<p>Of course, <strong>it is recommended to review that Sanitary Fixtures, nodes and pipes branches (end and start Nodes) have been properly created<\/strong> and are consistent with the original (drawing) sanitary network.<\/p>\n<h3>What have done for us the importing process?<\/h3>\n<p>To ensure the above verifications, i.e. that DESAG\u00dcES (DRAINS) have &#8216;understood&#8217; imported data, <strong><em>the next thing to do is go to the Results tab \u2192 Plan and Isometric panel and click on Plan button<\/em><\/strong> to show the annotated plan view:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3662\" title=\"imported-network-plan-drawing\" src=\"https:\/\/www.hidrasoftware.com\/wp-content\/uploads\/2015\/01\/09_imported-network-plan-drawing.jpg\" alt=\"imported-network-plan-drawing\" width=\"600\" height=\"669\"><\/p>\n<div class=\"su-note\"  style=\"border-color:#e5c971;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#FFE38B;border-color:#ffffff;color:#333333;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\">\n<p>Do not panic if the directional arrows (as in the above figure) do not correspond to the real flow direction in the network. <strong>This happens by not complying, at the time of drawing, the recommendation that the first vertex of line (or polyline) must coincide with the end node (upstream) and the last one with the start node (downstream).<\/strong><\/p>\n<p><strong>Once you click the Calculate button<\/strong>, the program would fix this, but <strong>you could also modify it manually using the available button on Project tab \u2192 Drain Branches panel:<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3663\" title=\"Reversing-nodes-on-pipes\" src=\"https:\/\/www.hidrasoftware.com\/wp-content\/uploads\/2015\/01\/10_Reversing-nodes-on-pipes.png\" alt=\"Reversing-nodes-on-pipes\" width=\"553\" height=\"189\"><\/p>\n<\/div><\/div>\n<p>As shown in this example, except for the fact that some pipes have the inverted arrow, the network structure is exactly the same as the imported drawing. Let&#8217;s see what else DESAG\u00dcES has done for us:<\/p>\n<h4>Pipes&#8217; Length has been automatically assigned<\/h4>\n<p>You will see in the <strong><em>network branches table<\/em><\/strong> that the length field has the value corresponding to the length of the line that defines the branch and, if you access the pipes editor, double-clicking on any row, <strong>you&#8217;ll see that the User defined length option is disabled. This is the way to let the program automatically calculate the length based on the vertices coordinates of the pipe<\/strong>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3664\" title=\"automatic-pipe-lenght-calculation\" src=\"https:\/\/www.hidrasoftware.com\/wp-content\/uploads\/2015\/01\/11_automatic-pipe-lenght-calculation.jpg\" alt=\"automatic-pipe-lenght-calculation\" width=\"695\" height=\"490\"><\/p>\n<h4>Pipes with changes of direction has now assigned the respective sanitary elbows<\/h4>\n<p>Clicking, in pipes\u00b4 properties dialog in the top right button, <strong>will show the Fittings editor for the selected pipe<\/strong>. For example, in N2-N3 pipe, see that the necessary 45\u00b0 elbow has been automatically allocated:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3665\" title=\"Assigned-fittings-to-drains\" src=\"https:\/\/www.hidrasoftware.com\/wp-content\/uploads\/2015\/01\/12_Assigned-fittings-to-drains.jpg\" alt=\"Assigned-fittings-to-drains\" width=\"590\" height=\"460\"><\/p>\n<p>As you can see, at this level additional editing is not required. You only have had to &#8220;check&#8221; or confirm that what has been created are the nodes and pipes that represent the sanitary network you are going to design with DESAG\u00dcES.<\/p>\n<p>The importing process from Drawing files is very easy. Isn\u2019t it so?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As well as in our software PLUMBER, in <strong>DESAG\u00dcES, the software for building drainage system design (sanitary and storm),<\/strong> we have incorporated the option of <strong>importing objects such as lines, circles, and texts from drawing files, in such a way to turn them into \u201chydraulic\u201d objects such as pipes and nodes in the software<\/strong>. This minimizes user\u00b4s data entry errors and saves, in addition, a large amount of time in the project\u2019s creation.<\/p>\n","protected":false},"author":1,"featured_media":1959,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[85],"tags":[92,90,91],"class_list":["post-1958","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cat-desagues-drains","tag-autocad-drawings","tag-drainage-system-design","tag-plumbing-system-design","post-wrapper","thrv_wrapper"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.hidrasoftware.com\/en\/wp-json\/wp\/v2\/posts\/1958","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hidrasoftware.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hidrasoftware.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hidrasoftware.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hidrasoftware.com\/en\/wp-json\/wp\/v2\/comments?post=1958"}],"version-history":[{"count":5,"href":"https:\/\/www.hidrasoftware.com\/en\/wp-json\/wp\/v2\/posts\/1958\/revisions"}],"predecessor-version":[{"id":8060,"href":"https:\/\/www.hidrasoftware.com\/en\/wp-json\/wp\/v2\/posts\/1958\/revisions\/8060"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hidrasoftware.com\/en\/wp-json\/wp\/v2\/media\/1959"}],"wp:attachment":[{"href":"https:\/\/www.hidrasoftware.com\/en\/wp-json\/wp\/v2\/media?parent=1958"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hidrasoftware.com\/en\/wp-json\/wp\/v2\/categories?post=1958"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hidrasoftware.com\/en\/wp-json\/wp\/v2\/tags?post=1958"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}