Author Topic: verify closed polyline  (Read 7245 times)

0 Members and 1 Guest are viewing this topic.

ymg

  • Swamp Rat
  • Posts: 725
Re: verify closed polyline
« Reply #15 on: October 21, 2013, 11:02:33 PM »
Fabricio,

If you zoom the upper left of your polyline, the one on the right is actually self-crossing,
so I doubt that it is correct.

You can also see this if you Pedit then edit xertex and then follow the vertices.

Still the problem with the area remains.  It all has to do with the extra vertex that is created by
simply changing the property to closed.

If you actually remove that extra vertex your area is OK.

ymg
« Last Edit: October 21, 2013, 11:48:26 PM by ymg »

pBe

  • Bull Frog
  • Posts: 401
Re: verify closed polyline
« Reply #16 on: October 22, 2013, 03:55:48 AM »

Command: area
Specify first corner point or [Object/Add area/Subtract area] <Object>: o
Select objects:
Cannot calculate the area of a self intersecting curve.
Select objects:



Explode the object... run overkill...
17 object(s) deleted. <-------

as ymg noted above...
« Last Edit: October 22, 2013, 03:58:58 AM by pBe »

DanW

  • Mosquito
  • Posts: 17
Re: verify closed polyline
« Reply #17 on: October 22, 2013, 04:36:20 AM »
I think the area command taking exception to self intesecting curves was a known issue for AutoCAD 2009 and 2010, but fixed in 2011 onwards.

Fabricio28

  • Swamp Rat
  • Posts: 663
Re: verify closed polyline
« Reply #18 on: October 22, 2013, 07:54:25 AM »
 :-D
Thank you all of you guys for interested in my task.
I'm using autocad 2012

Fabricio,

If you zoom the upper left of your polyline, the one on the right is actually self-crossing,
so I doubt that it is correct.

You can also see this if you Pedit then edit xertex and then follow the vertices.

Still the problem with the area remains.  It all has to do with the extra vertex that is created by
simply changing the property to closed.

If you actually remove that extra vertex your area is OK.

ymg

Hi ymg,
My english is very poor and I haven't explained clearly my task.
The area of the polygon on the right is correct, even if I remove that extra vertex still the same area (5484.37).
But I don't know what is wrong with the polygon on the left, is the same polygon as on the right and give other area (40939.78).

pBe

  • Bull Frog
  • Posts: 401
Re: verify closed polyline
« Reply #19 on: October 22, 2013, 09:18:49 AM »
I think the area command taking exception to self intesecting curves was a known issue for AutoCAD 2009 and 2010, but fixed in 2011 onwards.

Nice to know ADESK looked into that issue and had it fix.

Thank you for the info  DanW

pBe

  • Bull Frog
  • Posts: 401
Re: verify closed polyline
« Reply #20 on: October 22, 2013, 09:29:50 AM »

Hi ymg,
My english is very poor and I haven't explained clearly my task.
The area of the polygon on the right is correct, even if I remove that extra vertex still the same area (5484.37).
But I don't know what is wrong with the polygon on the left, is the same polygon as on the right and give other area (40939.78).

Same as CAB and ronjonp, Besides the text entry with 40939.78 value, both pline entities give me the same area using list command, even with LM's A2F lisp

ymg

  • Swamp Rat
  • Posts: 725
Re: verify closed polyline
« Reply #21 on: October 22, 2013, 10:43:41 PM »
Fabricio,

Quote
But I don't know what is wrong with the polygon on the left, is the same polygon as on the right and give other area (40939.78)

O que estou dizendo é que o polilines não são os mesmos.

Aquele com a área errada à esquerda tem mais vértices, incluindo um extra no final que desequilibra o cálculo.

O comando "Overkill"  é seu amigo para este

ymg

Fabricio28

  • Swamp Rat
  • Posts: 663
Re: verify closed polyline
« Reply #22 on: October 23, 2013, 09:45:23 AM »
Hi ymg,

Portuguese is better. lol

I understood what you meant, but didn't work.
Maybe the problem should be in my autocad 2012.

I've already used overkill command too, and the area is same.