need help for create centerline

need help for create centerline

neam
Collaborator Collaborator
1,710 Views
9 Replies
Message 1 of 10

need help for create centerline

neam
Collaborator
Collaborator
0 Likes
1,711 Views
9 Replies
Replies (9)
Message 2 of 10

Kent1Cooper
Consultant
Consultant

I don't see any problem posed in the drawing there, as the linked Post claims.  What are you trying to do?  Draw Lines between the Points inside the polygons?  [They're sort of in the center of each, but many are clearly at neither the centroid nor the middle of the extents of their polygon, so I can't tell whether or how they relate to what you mean by "centerline."]  If so, between those inside User-selected ones, or in some automated fashion?  What steps do you want the User to take, and what do you want to be the end result?  Etc., etc.

Kent Cooper, AIA
0 Likes
Message 3 of 10

neam
Collaborator
Collaborator

hi dear kent1cooper

thank you for reply

please open attachment

0 Likes
Message 4 of 10

Kent1Cooper
Consultant
Consultant

I very much doubt that it's possible to automate that in AutoCAD.  It's hard to imagine how a routine could find the right combinations of parts of outlines to draw centerlines halfway between, when any given edge of one outline may be across from any number of edges of different other outlines, start points of outlines have no definable relationship to where centerline intersections would occur, etc., etc.

 

In addition, the outlines seem to have coincident vertices at their start/end points [zero-length closing segments], which could make it more difficult.

 

Also, there would need to be some criteria established for how to route the centerlines in the area of intersections, since some aspects are not as I would have expected.  For example:

 

centerlines.png

 

HOWEVER, you could greatly simplify doing it manually, since the vertices seem to fall on a regular grid.  Set SNAP to the half the width across the spaces [or perhaps a quarter of it, if you want those little bends at intersections, whatever the criteria are for them -- in this case, that would be 20.5053ish].  And set SNAPBASE to any of the outline corners so the outline vertices will all lie on the Snap locations, and you can run around and draw centerlines popping onto centerline positions very easily.  And you can do single segments along stretches that are made up of many collinear segments in your drawing.  The only thing that seems more complicated than that is the cockamamie intersection situation at lower left in the image, which falls at a one-third-of-the-width location.  A SNAP setting of a twelfth of the width [in this case, 6.83509ish] would seem to hit all centerline vertex locations, and when at a reasonable Zoom level you can still tell pretty well when you're in the middle of the width.

 

EDIT:  Another kind of complication that makes it hard to imagine how to automate it -- what's with situations like this?

centerlines2.png

Kent Cooper, AIA
0 Likes
Message 5 of 10

neam
Collaborator
Collaborator

Thank you for the time that I've allocated
I read all your posts and agree
But what's important to me is the original length of the polylines between polygon.
And the beginning and end of the polylines and how to connect them is not important.
If it's easier, I will be grateful for your assistance.
Yours sincerely:
Reza Monemi 

0 Likes
Message 6 of 10

Kent1Cooper
Consultant
Consultant

I'm sorry to say that I think you may need to "bite the bullet" and buy ArcGIS-Esri software.  Maybe someone out there is clever enough to figure out how to automate this in AutoCAD, but I can't imagine how to go about it.

Kent Cooper, AIA
0 Likes
Message 7 of 10

neam
Collaborator
Collaborator

thanks again
No problem, I've done this with free software "QGIS"
I just wanted to possibly be related to AutoCAD only.
thank you and thank you again

0 Likes
Message 8 of 10

john.uhden
Mentor
Mentor

Looks to me like it's easier to draw manually than to program.  I am also wondering why you are not drawing the centerlines first.

John F. Uhden

0 Likes
Message 9 of 10

neam
Collaborator
Collaborator

Smiley Very Happy

Smiley LOL

Smiley Happy

0 Likes
Message 10 of 10

neam
Collaborator
Collaborator

no one is here

0 Likes