TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: zasanil on May 24, 2016, 11:19:08 AM

Title: Offset stubborn polylines routine
Post by: zasanil on May 24, 2016, 11:19:08 AM
Hey folks,
I'm looking to see if someone has mad a more "robust" offset routine that will offset stubborn polylines even if the regular AutoCAD offset command will not. Maybe the routine would capture if it fails and try's a different method?
I have a routine that formats drawings to a certain style, and offsetting is one of the steps. When it fails it takes a bit of time to fix it. An example of 2 polylines that fail are attached.
What would be an automated way to offset these polylines?
The offset distance I'm looking at is half the width (both inside and outside).
Thanks for taking a look.
Title: Re: Offset stubborn polylines routine
Post by: ronjonp on May 24, 2016, 12:36:20 PM
...
The offset distance I'm looking at is half the width (both inside and outside).
...
Half the width of what?
Title: Re: Offset stubborn polylines routine
Post by: danallen on May 24, 2016, 12:39:18 PM
I didn't look at dwg file, but have you used overkill to remove duplicate vertices from plines?
Title: Re: Offset stubborn polylines routine
Post by: zasanil on May 24, 2016, 12:57:09 PM
...
The offset distance I'm looking at is half the width (both inside and outside).
...
Half the width of what?

Sorry. It would offset the polyline to half the width of the thickness of the polyline. If the polyline was .001" wide, It would offset it by .0005".

I didn't look at dwg file, but have you used overkill to remove duplicate vertices from plines?

Yes I did use overkill. I also tried turning it into a region and then back into a polyline, but the resultant polyline will sometimes offset and sometimes not.