|
|
|
@ -8,21 +8,31 @@ AutoCAD offers the `LIST` command, which shows the geometry of selected objects,
|
|
|
|
|
|
|
|
|
|
## Installation ##
|
|
|
|
|
|
|
|
|
|
`pip install dxfgrabber`
|
|
|
|
|
```
|
|
|
|
|
pip install dxfgrabber
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Then
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
git clone http://git.wrl.unsw.edu.au:3000/gis-cad/dxf-to-csv.git
|
|
|
|
|
cd dxf-to-csv
|
|
|
|
|
python setup.py install
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Usage ##
|
|
|
|
|
|
|
|
|
|
Show available layers:
|
|
|
|
|
|
|
|
|
|
`python dxf_to_csv.py drawing.dxf -l`
|
|
|
|
|
`dxf_to_csv drawing.dxf -l`
|
|
|
|
|
|
|
|
|
|
Convert all layers:
|
|
|
|
|
|
|
|
|
|
`python dxf_to_csv.py drawing.dxf`
|
|
|
|
|
`dxf_to_csv drawing.dxf`
|
|
|
|
|
|
|
|
|
|
Convert specific layer:
|
|
|
|
|
|
|
|
|
|
`python dxf_to_csv.py drawing.dxf -n LAYER_NAME`
|
|
|
|
|
`dxf_to_csv drawing.dxf -n LAYER_NAME`
|
|
|
|
|
|
|
|
|
|
## Output ##
|
|
|
|
|
|
|
|
|
|