I have a very large number of polygons, which have been snapped together. When loading them into GIS this is causing some issues and I thought that a simple solution would be to reduce them all in size by a very small amount (e.g.. 5cm given I am working with average accuracies of 1m in my data). I’m sure that it must be possible to do this, but the standard options mean selecting each polygon separately to specify the side to offset.
There was one solution by Bill Gilliss back in 2010 http://forums.autodesk.com/t5/AutoCAD-2010-2011-2012-DWG/Multiple-Offset/m-p/2660138/highlight/true#..., but when I run the lisp I get the following error after selecting objects and setting the distance
“; error: no function definition: VLAX-ENAME->VLA-OBJECT”
I’m not familiar with the way lisps work so can’t see where the problem lies. I placed this as a query in the General Forum, but have been advised to raise it here as a more specialised group. The lisps are available through the link.
I have found a long winded workaround using GIS, but hope someone can help resolve this within AutoDesk.
Add the line:
(vl-load-com)
to the file, to load up the (vl...) functions, either before the (defun ... line at the beginning, or after the ) end-of-defun closing parenthesis at the end.