This module allows converting between various types of DWG and DXF files.
Only the convertor class is normally imported:
from ar.lib.everydwg import Convertor
EveryDWG = Convertor('/path/where/EveryDWG.exe/is/installed')
if EveryDWG.is_installed:
EveryDWG.convert_file(...)
EveryDWG.convert_dir(...)
For this module you need to download the Open DWG EveryDWG File Converter. You need to comply with its terms of use:
Open Design Alliance and its members have created the following
free utilities, based on the Open DWG Libraries, for unrestricted,
non-commercial use. Please note that inclusion of any utility
in a commercial product does require commercial licensing, unless
otherwise stated in the product description. ODA members are
encouraged to create and share their own utilities with the
CAD community.
In case you don’t agree with these terms, you are not allowed to use this module.
Warning
This module needs wine on non Windows platforms.
Convert one drawing in another version and/or type.
| Parameters: |
|
|---|---|
| Returns: | the base names of the target files |
| Return type: | list of strings |
Convert one drawing in another version and/or type.
| Parameters: |
|
|---|---|
| Returns: | the target filename if succesful, None otherwise |
| Return type: | string or None |
Make a clean subdir in the system temporary directory. Delete it first if it exists already.
| Parameters: |
|
|---|---|
| Returns: | the absolute path of the new temporary folder |
| Return type: | string |
Make a new temporary file.
| Parameters: |
|
|---|