Git Product home page Git Product logo

convert-dwgtopdf's Introduction

🖨️ Convert-DwgToPdf

GitHub top language Made by João Macêdo

Overview

Convert-DwgToPdf is a PowerShell script designed to automate the conversion of .dwg files to .pdf. It utilizes a CSV file containing essential information such as file paths, output directories, and file names for the conversion process. This script is compatible with PowerShell version 7 and above.

Author

References

Features

  1. CSV Configuration: Utilizes a CSV file for input parameters.
  2. Plot Format Handling: Converts DWG files based on specified plot formats (landscape, portrait).
  3. DWGTrueView Integration: Utilizes DWGTrueView for conversion.
  4. File Renaming: Renames converted files and moves them to the specified output path.
  5. Logging: Generates log messages for each conversion process.

Usage

  1. Clone or Download:

    • Clone or download the Convert-DwgToPdf repository to your local machine.
  2. Configure Settings:

    • Open the config.json file and update the following variables:
      • "input-files-path": Path to the CSV file containing conversion information.
      • "csv-delimiter": Delimiter used in the CSV file.
      • "dwg-true-view-exe-path": Path to the DWGTrueView executable.
  3. Execute Script:

    • Open a PowerShell terminal as an administrator.
    • Navigate to the project directory.
    • Run the script using the command: .\Main.ps1
      PS Disk:\Convert-DwgToPdf> .\Main.ps1
  4. Monitor Progress:

    • The script will process each DWG file based on the specified plot format.
    • Log messages will provide information about the conversion process.
  5. Check Output:

    • The converted PDF files will be renamed and moved to the specified output path.

Error Handling

In case of errors during the conversion process, the script will display an error message.

Notes

  • Ensure PowerShell version 7 or above is installed.
  • Verify the correctness of the input CSV file and paths before running the script.

Example CSV Input

Document Plot Format Output Name Input Path Output Path
Example.dwg A4 Example C:\dwgs\Example.dwg C:\pdfs\Example

convert-dwgtopdf's People

Contributors

joaomacedx avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.