Editing Getting started with 2D CAD drafting

From Wiki.OSArch

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 5: Line 5:
 
The field of 2D CAD within the AEC industry is currently dominated by [[AutoCAD]], and in particular, the proprietary [[Drawing (DWG)|DWG]] file format. Heavy reliance on AutoCAD, along with the tight control that parent company Autodesk exerts over the proprietary DWG file format, both stifles innovation and perpetuates proprietary software in our industry. In contrast [[AEC_Open_Data_Standards_Directory|open formats]] support users freedom.
 
The field of 2D CAD within the AEC industry is currently dominated by [[AutoCAD]], and in particular, the proprietary [[Drawing (DWG)|DWG]] file format. Heavy reliance on AutoCAD, along with the tight control that parent company Autodesk exerts over the proprietary DWG file format, both stifles innovation and perpetuates proprietary software in our industry. In contrast [[AEC_Open_Data_Standards_Directory|open formats]] support users freedom.
  
To make the switch away from proprietary software and file formats, there are two key ways in which you can make a difference in the industry. The first is by requesting and producing the open [[Drawing_Exchange_Format_(DXF)|DXF]] format instead of the proprietary DWG format. The second is by switching from AutoCAD to another software entirely.
+
To make the switch away from proprietary software and file formats, there are two key ways in which you can make a difference in the industry. The first is by requesting and producing the open [[Drawing Exchange Format (DXF)|DXF]] format instead of the proprietary DWG format. The second is by switching from AutoCAD to another software entirely.
  
 
= Switch from DWG to DXF =
 
= Switch from DWG to DXF =
Line 11: Line 11:
 
[[Drawing Exchange Format (DXF)]] is an open format that provides many similar features to [[Drawing (DWG)]]. In general, DXF is much more widely supported and has much better cross-platform support. It is extremely easy to switch. Almost all CAD software has the ability to read and write DXF, so it is simply a manner of making it a habit to use one instead of the other. It is also usually a good idea to specify DXF as a digital deliverable in contracts. Most BIM projects currently specify IFC as an OpenBIM format, but neglect to also specify DXF as an open format.
 
[[Drawing Exchange Format (DXF)]] is an open format that provides many similar features to [[Drawing (DWG)]]. In general, DXF is much more widely supported and has much better cross-platform support. It is extremely easy to switch. Almost all CAD software has the ability to read and write DXF, so it is simply a manner of making it a habit to use one instead of the other. It is also usually a good idea to specify DXF as a digital deliverable in contracts. Most BIM projects currently specify IFC as an OpenBIM format, but neglect to also specify DXF as an open format.
  
If a DWG file is provided, and it is not possible to ask for the provider to provide a DXF instead, you have a few options. The first is to open the DWG with QCAD or [[LibreCAD|LibreCAD]], and then convert it to a DXF yourself. Of the two, QCAD's support for DWG far surpasses [[LibreCAD|LibreCAD]], but unfortunately relies on [[Open Design Alliance (ODA)]].  
+
If a DWG file is provided, and it is not possible to ask for the provider to provide a DXF instead, you have a few options. The first is to open the DWG with QCAD or LibreCAD, and then convert it to a DXF yourself. Of the two, QCAD's support for DWG far surpasses LibreCAD, but unfortunately relies on ODA.  
  
 
FreeCAD 0.19 linux version (appimage) [https://yorik.uncreated.net/blog/2021-004-freecad-november-december can import DWG files based on LibreDWG library], and eventually export with this format too. To install this library on Windows version see this [https://wiki.freecadweb.org/FreeCAD_and_DWG_Import FreeCAD documentation].
 
FreeCAD 0.19 linux version (appimage) [https://yorik.uncreated.net/blog/2021-004-freecad-november-december can import DWG files based on LibreDWG library], and eventually export with this format too. To install this library on Windows version see this [https://wiki.freecadweb.org/FreeCAD_and_DWG_Import FreeCAD documentation].
  
Another CAD program using the LibreDWG library is [[SolveSpace]]. It can import DWG files up to some extend (even saved as AutoCAD 2013) and export them as DXF (2007), PDF or SVG.
+
If it is not possible to submit DXFs for a project, for example if a client specifically request only DWGs and you are unable to convince them otherwise (though there may be little technical reason for them to do so), QCAD may be used to save DWGs. LibreCAD is unable to create DWGs, at the moment.
 
 
If it is not possible to submit DXFs for a project, for example if a client specifically request only DWGs and you are unable to convince them otherwise (though there may be little technical reason for them to do so), QCAD may be used to save DWGs. [[LibreCAD|LibreCAD]] is unable to create DWGs, at the moment.
 
  
 
If you have a lot to convert, or if the conversion is unsatisfactory, or if you use neither LibreCAD or QCAD (such as if you are using Blender or programmatically generating DXFs), as a fallback option you may use the proprietary [https://www.opendesign.com/guestfiles/oda_file_converter ODA File Converter], or the proprietary [https://www.opendesign.com/oda_online_converter ODA Online Converter]. Although this is proprietary software, it is mentioned on the OSArch wiki because the [[Open Design Alliance (ODA)]] has debatably helped improve access the open data standards in the AEC industry due to their work in reverse engineering the DWG file format, and the ODA library is also used in QCAD under the hood, and it is cross-platform.
 
If you have a lot to convert, or if the conversion is unsatisfactory, or if you use neither LibreCAD or QCAD (such as if you are using Blender or programmatically generating DXFs), as a fallback option you may use the proprietary [https://www.opendesign.com/guestfiles/oda_file_converter ODA File Converter], or the proprietary [https://www.opendesign.com/oda_online_converter ODA Online Converter]. Although this is proprietary software, it is mentioned on the OSArch wiki because the [[Open Design Alliance (ODA)]] has debatably helped improve access the open data standards in the AEC industry due to their work in reverse engineering the DWG file format, and the ODA library is also used in QCAD under the hood, and it is cross-platform.
Line 54: Line 52:
 
To work as converter, [[Inkscape]] can open a PDF file and with the function "Save a copy" you will have the option of Save as type: Desktop Cutting Plotter (AutoCAD DXF R12 and R14) format. It is important to notice that the original PDF must be a vector drawing (no bitmap). Also, [[Inkscape]] 1.0 can open files with AutoCAD DXF R13 extension.
 
To work as converter, [[Inkscape]] can open a PDF file and with the function "Save a copy" you will have the option of Save as type: Desktop Cutting Plotter (AutoCAD DXF R12 and R14) format. It is important to notice that the original PDF must be a vector drawing (no bitmap). Also, [[Inkscape]] 1.0 can open files with AutoCAD DXF R13 extension.
 
Note: R14 support splines (curves), but R12 only support straight lines. It is recommended to check [http://cutlings.wasbo.net/svg-to-dxf-in-inkscape-v1-0/ this post] for more information.
 
Note: R14 support splines (curves), but R12 only support straight lines. It is recommended to check [http://cutlings.wasbo.net/svg-to-dxf-in-inkscape-v1-0/ this post] for more information.
 
As an option you can use [https://www.scribus.net/ Scribus] to open a PDF file to be exported as SVG file. Then you can open the SVG file to save it as DXF format with Inkscape. On the other hand, you can follow [https://thinkmoult.com/how-to-bulk-convert-pdf-to-dxf-or-dwg.html this tutorial using Inkscape and pstoedit].
 
  
 
= Switching to free/libre software =
 
= Switching to free/libre software =
  
While there are very advanced free/libre 3D geometry applications, there are very few 2D applications with high quality drafting capabilities.
+
While there are very advanced free/libre 3D geometry applications there are very few 2D applications. By the far the most feature rich is [[LibreCAD]] is a free/libre alternative to AutoCAD
+
* [[QCAD]] is a free/libre multiplatform alternative to AutoCAD (QCAD Professional is the paid version, QCAD Community is libre software).
The most advanced with paper setups, scaling and printing tools:
 
 
 
* [[QCAD]] Community Edition is the most feature rich libre/free software for 2D CAD. It is multi platform and supports a typical 2D CAD workflow.
 
* [[QCAD]] Professional is the paid version of QCAD with a few more functions. Buy QCADE professional supports the development of QCAD Community Edition.
 
* [[LibreCAD]] is a free/libre 2D CAD software. It is a fork from QCAD v2 and has seen gradual development.
 
 
 
There are many tools with vector drawing functionality but not really specific to 2D drafting.
 
 
 
* [[CAD_Sketcher]] CAD Sketcher is a constraint-based sketcher addon created for Blender
 
 
* [[FreeCAD]] has three workbenches useful for 2D drafting, [https://wiki.freecadweb.org/Sketcher_Workbench Sketcher], [https://wiki.freecadweb.org/Draft_Module Draft] & [https://wiki.freecadweb.org/TechDraw_Module Techdraw]. TechDraw is the most advanced and sees most development.
 
* [[FreeCAD]] has three workbenches useful for 2D drafting, [https://wiki.freecadweb.org/Sketcher_Workbench Sketcher], [https://wiki.freecadweb.org/Draft_Module Draft] & [https://wiki.freecadweb.org/TechDraw_Module Techdraw]. TechDraw is the most advanced and sees most development.
* [[SolveSpace]] can import DWG files up to some extend (even saved as AutoCAD 2013). It has some basic 2D drawing tools to do some edition. Finally it can export the files as DXF (2007), PDF or SVG.
+
* [[Inkscape]] & [[Krita]] have been used by some for drafting. You can use Inkscape as PDF/DXF converter, for drawing edition and presentation improvement. And then, export a final PDF/DXF file.
* [https://github.com/zamtmn/zcad ZCAD] is a small 2D CAD program that can open, edit, save DXF2000 files and has a few edition tools. ZCAD is in beta development.
+
* [https://www.libreoffice.org/ Libre Office Draw] can open DXF files version 2004 or earlier, but it cannot make significant edition. Also, it only can export PDF/SVG format.
* [http://lx-viewer.sourceforge.net/ LX-Viewer] (Linux Drawing Viewer) is a program that will allow you to open, view, print DXF files. But it cannot edit files.
+
* [http://lx-viewer.sourceforge.net/ LX-Viewer] (Linux Drawing Viewer) is a program that will allow you to open, view, print DXF files. But it cannot make edition.
* [[Inkscape]] & [[Krita]] have been used by some for drafting. You can use Inkscape as PDF/DXF converter, for editing drawings and presentation improvement. And then, export a final PDF/DXF file.
 
* [https://www.libreoffice.org/ Libre Office Draw] can open DXF files version 2004 or earlier, but it cannot make complex editions. It exports PDF/SVG format (no [[Drawing_Exchange_Format_(DXF)|DXF]]/[[Drawing_(DWG)|DWG]] support).
 
* [https://github.com/zecruel/CadZinho CadZinho] is a very new 2D CAD project. You can open DXF files.
 
  
 
= See also =
 
= See also =

Please note that all contributions to Wiki.OSArch are considered to be released under the Creative Commons Attribution-ShareAlike (see Wiki.OSArch:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)