Preview of CAD files in format .dwg

87,121

Solution 1

You can use QCAD, an open source AutoCAD replacement or the community fork LibreCAD made to work using the newer Qt4 framework. You can install LibreCAD from the Ubuntu Software Center. Using one of these two programs you import DWG files, edit the drawing and export it to PDF.

LibreCAD screenshot

QCad offered a command line tool to convert DWG to PDF directly - I'm guessing it's also available in LibreCAD.

./dwg2pdf.sh drawing.dwg

Solution 2

Best linux-native solution for dwg should be TeighaViewer. Teigha technologies are used by hundreds of companies around the world. Teigha is for dwg what LibreOffice is for office files (doc, xls, etc). Teigha is basically a Design Alliance, a common effort around the world to break the dictatorship of Adsk's dwg. Bricscad, DraftSight, Ares Commander, CorelCAD, Intellicad and many others are members of teigha.

Inkscape can also open .dwg files. But it doesn't always read them right (display errors and scale errors), depending on what app generated the dwg file. Inkscape deals better with .dxf files, because dxfs can't contain advanced entities, just basic entities like lines, arcs, splines, points and dimensions.

Solution 3

DWGsee

is a windows only application to open and view DWG files. It also offers some limited modification capabilities, as described here

Since quite recently, DWGsee started working quite nicely with wine, allowing us to open, print and plot DWGs in Linux.

Steps to install DWGsee in Ubuntu/Debian:

TL;DR

Install wine. Configure it for windows 10 emulation. Run DWGsee installer and complete installation. Done.

Step by step:

  1. Download DWGsee from their site
  2. Install wine:
    • open a terminal and type
    • sudo apt install wine
  3. configure wine:
    • open a terminal and type
    • winecfg
    • this will open wine configurations
    • select "windows 10" from the drop down menu
    • click "ok"
  4. run DWGsee installer with wine:
    • open a terminal and type
    • cd Downloads
    • wine dwgseepro2020.exe
    • follow the installer/s steps, until finished
  5. All done. You can now open DWGsee from the aplication menu
  6. Additionaly you can set DWG files to open automatically with DWGsee
    • right click on any DWG file
    • click "Open with other application"
    • click "view all applications"
    • look for "DWGSee MFC Application", and click on it. This will open DWGSee for that file.
    • To make the configuration stick for all dwg files, right click again on the file, and this time click "properties", and then the tab "open with"
    • select "DWGSee MFC Application", and that's it.

Solution 4

Lx-viewer do the job since its pretty easy to use and offers what you looking for, you should give it a try enter image description here for more info check this link

Solution 5

Qcad works, of course you have to pay for it. Varicad was a last resource but it crashes reading new files (autocad 2017).Same with Teighaviewer.Lx-viewer do es not exist.

Share:
87,121

Related videos on Youtube

Marcello Picchi
Author by

Marcello Picchi

Updated on September 18, 2022

Comments

  • Marcello Picchi
    Marcello Picchi almost 2 years

    I'm looking for a utility or a program for Ubuntu, and possibly even for Windows that is able to convert a CAD file format .DWG to PDF.

    My need is to provide a preview of CAD files, and I thought that the easiest way is to convert them into PDF format, but I'm open to suggestions, even if there is only the possibility to convert them to JPG image file type or PNG would be fine.

    What interests me is only to find some solution, no matter if it is commercial or free

  • Marcello Picchi
    Marcello Picchi over 10 years
    Many thanks @kermit666, this is particularly useful to me, in fact my specific interest is in finding a tool that can be invoked from the command line and that simply performs the conversion.
  • metakermit
    metakermit over 10 years
    np. Yes, I also like command-line access to such tasks :)
  • Ademir Nuno
    Ademir Nuno about 9 years
    LibreCad don't give me a Import DWG option, but qCad opens it by default, thanks
  • arielf
    arielf over 6 years
    Looks great but for the sake of full disclosure, you should add that this is not FOSS & that it costs over $1000 USD (cheapest option).
  • chronos00
    chronos00 over 6 years
    I have installed Teigha Viewer in many Ubuntus, and it always crashed when trying to open any DWG file. Do you have any advice to make it work?
  • chronos00
    chronos00 over 6 years
    I created the following question to try to solve the problem: askubuntu.com/questions/1018121/…
  • Rand125125
    Rand125125 over 2 years
    At the time of writing, importing DWG files is available on QCAD professional only: qcad.org/en/documentation/features