Make sure you have Blender 2.48 installed. The Ar library is not compatible with Blender 2.46
These scripts suppose that your Blender folder scripts folder is ~/.blender/scripts. If you have installed Blender differently, change the BLENDER_SCRIPTS variable in the ar/linux/install and update_blender_scripts scripts.
Execute these commands in the terminal:
$ bzr branch lp:ar
$ cd ar/linux
$ ./install
For other linux distributions as well, check the contents of the ar/linux/install script first and verify if the location of the python site-packages is the same.
Install the following requirements:
- bazaar http://launchpad.net/bzr/1.13/1.13/+download/bzr-setup-1.13-1.exe
- ipython http://ipython.scipy.org/dist/ipython-0.9.1.win32-setup.exe
- pyreadline http://ipython.scipy.org/dist/pyreadline-1.5-win32-setup.exe
- pil http://effbot.org/downloads/PIL-1.1.6.win32-py2.5.exe
- optionally pycairo (see http://pycha.yourwei.com/installation.html#windows for instructions)
Open a dos terminal (cmd.exe) in a folder where you want ar to be downloaded. Use the full path to bzr and ignore any warnings:
C:\Documents and Settings\user\My Documents>"C:\Program Files\Bazaar\bzr.exe" branch lp:ar
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data. See "bzr help launchpad-login".
Branched 12 revision(s).
Copy the ar/ar folder in your Blender scripts folder (for example C:\Documents and Settings\x\Application Data\Blender Foundation\Blender\.blender\scripts).
Copy all the scripts (.py) in the ar/blender/scripts folder in the same Blender scripts folder as the step above.
To update later to the newest version, open a terminal inside the ar folder and type:
C:\Documents and Settings\user\My Documents>"C:\Program Files\Bazaar\bzr.exe" merge
Remove any copied files from the last two steps of the installation process
Repeat the last two steps of the installation process with the updated ar folder.
If you get this error message ...
bzr: ERROR: Working tree "C:/Documents and Settings/user/My Documents/ar/"
has uncommitted changes.
Remove the ar folder and start all over again with a fresh install.
Install bazaar, ipython, python-imaging and python-cairo.
Symlink the ar/ar folder into the python site-packages folder (or into the ar/blender/scripts folder, if you plan to only use it inside Blender):
sudo ln -s "`pwd`/ar" /usr/local/lib/python2.5/site-packages
Symlink every script (.py) of the ar/blender/scripts folder into the ~/.blender/scripts folder:
cd blender/scripts
for file in *.py
do
ln -s "`pwd`/$file" $BLENDER_SCRIPTS
done
If you want DWG export from Blender, 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.
Only if you agree with these terms, put the EveryDWG.exe file into your Blender scripts folder, which is given by:
Blender.Get('scriptsdir')
Linux users will need to install wine first. For example for Ubuntu:
$ sudo apt-get install wine
This will enable you to save your drawings as different DWG or DXF versions.
Python package which should be installed in the site-packages PYTHONDIR.
This folder contains:
The linux specific install script is here.
Files for doing unittests of the ar library.