Author Topic: Offset stubborn polylines routine  (Read 823 times)

0 Members and 1 Guest are viewing this topic.

zasanil

  • Mosquito
  • Posts: 11
Offset stubborn polylines routine
« 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.

ronjonp

  • Needs a day job
  • Posts: 7307
Re: Offset stubborn polylines routine
« Reply #1 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?

Windows 10 x64 - AutoCAD /C3D 2020

Custom Build PC

danallen

  • Guest
Re: Offset stubborn polylines routine
« Reply #2 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?

zasanil

  • Mosquito
  • Posts: 11
Re: Offset stubborn polylines routine
« Reply #3 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.