create region form polyline failed

create region form polyline failed

475867377
Advocate Advocate
901 Views
5 Replies
Message 1 of 6

create region form polyline failed

475867377
Advocate
Advocate

create a region from a polyline failed.can somebody help me ?

475867377_0-1723169541309.png

 

0 Likes
902 Views
5 Replies
Replies (5)
Message 2 of 6

norman.yuan
Mentor
Mentor

I think it is because the polyline has too many "nearly duplicted" vertices (i.e. 2 vertices are too closed to each other). If you are using Map/Civil 3D, you can run command "MAPCLEAN" and choose action "Simplify Object" with suitable tolerance (when I tested, I chose 0.1, which reduces the vertices from 64 to 54). Then running command "REGION" would succeed.

 

If you do not use Map3D/Civil3D, then you may have to find code, or write your own code to simplify the polyline (this is AutoCAD programming discussion forum, so I assume you do AutoCAD programming, don't you?).

Norman Yuan

Drive CAD With Code

EESignature

0 Likes
Message 3 of 6

ynapeu
Advocate
Advocate

How did you create this polyline?

 

if you _explode the polyline and create a new region it works.

the problem is the small arc in the green area.

ynapeu_0-1723390711318.png

 

0 Likes
Message 4 of 6

475867377
Advocate
Advocate

yes,i do.i have explode the polyline,then i create region successfully. why ?

0 Likes
Message 5 of 6

475867377
Advocate
Advocate

i don't know how they create the polyline.there are some small circles.and i convert them to line.but also can't create region .yes ,you are right,after exploding it can create region.this way can resove the problem. everytime it happens i need explode the polyline to resolve the problem.it sounds not the best way. i want to know that is it a bug of autocad?

0 Likes
Message 6 of 6

ynapeu
Advocate
Advocate

i don't know why. But if you explode the new new Region, you will see, that the small circle is deleted.

the old polyline consist of 65 entities und the new region has only 64 entities.

0 Likes