Change all xrefs in Autocad Drawings

This recipe (from Activestate) for Autodesk Autocad is a script which asks for a base directory and then changes all xrefs in all drawings in all subdirectories so that they use relative paths. To use it just copy it somewhere in your target directory structure and run.

There is also another example on Activestate, which casts Python objects as the correct Autocad type via win32com.client.CastTo(item)

Leave a Reply

Your email address will not be published. Required fields are marked *