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

lisp to offset the irregular polygon

4 REPLIES 4
Reply
Message 1 of 5
sudarsann
1080 Views, 4 Replies

lisp to offset the irregular polygon

Attachment drawing file having the irregular polygon.

Can any one help how can I get the offset that polygon to inside using lisp.

 

I prepared a lisp routene for that but it is working when that polygon starting point at lower left of that polygon only.

Please guide me.

 

 

4 REPLIES 4
Message 2 of 5
3wood
in reply to: sudarsann

A successful routine to do such task may need includes following features:

1. It is able to find the maximum offset distance for a given closed polyline.

2. It is able to verify whether a given point is inside or outside the polyline.

Then you can generate the new polyline with a certain distance offset from the given polyline.

Message 3 of 5
dicra
in reply to: sudarsann

Hi sudarsann,

 

Can you upload, the routine whic you prepared?

Message 4 of 5
Kent1Cooper
in reply to: sudarsann

Search this Forum and I think you'll find something.  [I'm at a painfully slow computer right now, or I'd look myself.]  One approach I think I recall is a routine to Offset the Polyline in both directions [using (vla-offset) with positive and negative values], compare the areas of the two resulting Polylines, and keep only the smaller one.

Kent Cooper, AIA
Message 5 of 5
Kent1Cooper
in reply to: Kent1Cooper


@Kent1Cooper wrote:

Search this Forum and I think you'll find something.  ....



For instance, this thread.

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