Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Lisp routine for producing offsets for multiple polylines

1 REPLY 1
Reply
Message 1 of 2
nomisc
421 Views, 1 Reply

Lisp routine for producing offsets for multiple polylines

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.

1 REPLY 1
Message 2 of 2
Kent1Cooper
in reply to: nomisc

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.

Kent Cooper, AIA

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost