You can download Python CAD script from here. http://freecode.com/projects/cad-scripts
Execution of Python scripts
-
Create a file in editor
-
Save the file with .py extension.
Ex- Lr.py
-
Open the terminal.
-
Go the directory in which file is stored.
Ex- $ cd Downloads/text_to_dxf-1.1/
-
Give the permissions to Lr.py file.
$ chmod ugo+rwx Lr.py -
Run the Lr.py file and create .txt file that holds coordinates (x,y) for .dxf file.
$ ./Lr.py > Lr.txt
You can give any name to file with .txt extension.
-
Now last step is to create .dxf file.
$ python text_to_dxf.py Lr.txt Lr.dxf.
Lr.dxf file is created in the directory in which you save the Lr.py file. You can open it.