Skip to content

teknoprep/Python-DWG_to_PDF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DWG_to_PDF_python

Additional Work Still Needed

Add delete option variable so that if a DWG is deleted we also delete the PDF... this should be a user slectable variable as we may not always want to do this.

Installing

  1. Download FreeCAD and extract it.
  2. Donwload ODAFileConverter and install it.
  3. Install Python 3.8
  4. Clone this project.
  5. Run pip install -r requirements.txt
  6. Copy "Lib\site-packages\dotenv" folder of python folder to "\bin\Lib\site-packages" of FreeCAD folder

Run

  1. Set SEARCH_FOLDERS(input folders with .dwg files), RESULTS_FOLDER(output folder where .pdf files will be saved) and TEMP_FOLDER in .env file.
  2. Set the path of ODAFileConverter.exe in ODA_PATH variable of .env file
  3. Run Command Prompt
  4. Move to bin folder of FreeCAD folder.
  5. Run following command as: freecad \app.py
  6. If you are running this inside VMware ---> https://kb.vmware.com/s/article/2092210 .. you need to enable 3D support

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published