Cannot close curved polyline - adds another polyline

Cannot close curved polyline - adds another polyline

Anonymous
Not applicable
1,824 Views
9 Replies
Message 1 of 10

Cannot close curved polyline - adds another polyline

Anonymous
Not applicable

Hello. I´ve been dealing with this problem since yesterday and cannot find a solution.

I´m treating with the road infrastructure proyect and need to draw different-length polygons alongside the road. The objective is to import those polygons later in ArcGIS.

 

The polygons must be stuck to the road´s shoulder. On parts when the road is straight it´s easy to create a rectangle with needed dimentions and just "stick it" to the road. The problem arises when there is a curve. I cannot create a polygon with curves so I create polylines and try to close them. When I do close them, they generate new lines that I don´t want.

 

Is there any easy and efficient way to create a polygon of certain length and width that is stuck to another polyline and adapts to its shape?

 

Regards,

M.

 

0 Likes
Accepted solutions (2)
1,825 Views
9 Replies
Replies (9)
Message 2 of 10

imadHabash
Mentor
Mentor

Hi and Welcome to AutoCAD Forum,

 

as i understand your need i draw an imagine in my mind and i find that using ARRAY (PAth) will help you.

 

gtyh.png

 

Regards,

Imad Habash

EESignature

0 Likes
Message 3 of 10

Kent1Cooper
Consultant
Consultant

To clarify, is this what you mean [exaggerated curvature to show the issue]?

CurvRect.PNG

 

Where should the length be measured, compared to the rectangle edges that lie along straight  curbs?  [As shown, the chords  of both green arc sides that lie on the yellow curb Arc are the same length as the edges of the red square, so that arc edge is longer.]

Kent Cooper, AIA
0 Likes
Message 4 of 10

Anonymous
Not applicable

Hello, the last solution (second green rectangle) is exactly what I mean! The whole polygon should adapt and change its form alongside the curve, not only one side.

0 Likes
Message 5 of 10

Kent1Cooper
Consultant
Consultant
Accepted solution

@Anonymous wrote:

Hello, the last solution (second green rectangle) is exactly what I mean! The whole polygon should adapt and change its form alongside the curve, not only one side.


I can't imagine an "easy" way to do something universal -- you're probably going to have to build each one.  But that's not too hard.  Copy the curb Polyline in place, Break the Copy at a known end of where you want your shape to lie, use Lengthen's Total option to get the remainder to the length you want along the curb [if that's the basis -- need an answer to the question below my image], Offset it by the desired width, draw Lines between the ends of the two, and Join the four pieces into a Polyline.

 

If the nominal length should be at mid-width  of the shape, Offset the curb Polyline [instead of Copying it in place] by half the width, do the Break/Lengthen thing on that, and Offset that both ways by the same half-width, draw the end Lines and Join.

 

EDIT:  I guess you should Offset the curb Polyline for the entire string of things, and Break it up appropriately, rather than do the whole thing for each shape.  If it's a regularly-spaced  thing you're talking about, you can draw one  of the shape-end Lines perpendicular to the curb, and use DivideMeasurePlus.lsp and its MEA+ command to spread it along the route, and then just Trim out appropriate parts, and Join the collective result into Polyline shapes all at once.

Kent Cooper, AIA
Message 6 of 10

Anonymous
Not applicable

That´s right, I didn´t respond to your last question. The length of the polygon should be the length of the side stuck to the curved polyline.

 

I´ve tried your technique before: I measured the polyline, broke it, made an offset and connected with two other polylines. In this case another problem occurs. I need the figure to be closed, and when I do this new polylines appear. Example below:

 

 

1. The blue shape is the one I´ve created with the method that you mentioned above. It has the shape and parameters that I want.

1.jpg

2. After closing all the four polylines of the blue shape it creates a straight chord instead of closing the indicated polylines.

2.jpg

 

I´ve also tried another method, the command ALIGN. The problem is that as sometimes my objects are quite long and it doesn´t align them perfectly to the curved line.

 

I don´t mind the method whether it´s a polygon stuck to the polyline or line offset. Neither of them gives me the result that I need. How can I fix it?

 

PS. Don´t worry about creating each object separately. They have different measures and are in different locations so this is how I´ll do that.

0 Likes
Message 7 of 10

Anonymous
Not applicable

I´ve tried the solution with line offset before but there is one problem that´s occurring. Pictures below:

 

1. The blue shape is the one thad I created with line offset. It goes perfectly alongside the pink curve as I want it.

1.jpg

2. In order to make a polygon out of it I need to close the 4 blue polylines.

When I do this, an alternative straight shape is created and I don´t achieve my goal.

2.jpg

 

I also tried the ALIGN command but when the curve is quite significant it doesn´t stick the whole wall of my object to the line.

 

PS. I know I will have to do all the cases individually, as they are of different width and length and also on different distances from each other along the road.

 

 

0 Likes
Message 8 of 10

steven-g
Mentor
Mentor

I created a block that was just a vertical line slightly longer than the width of your offset (no idea what sizes you are using) but I have attached an example.

 

I named the block "divider" and the base point was the end of the line. than after offsetting the polyline I used the divide command on the original polyline with the option to insert a block and keep it aligned, you could also use the measure command with the same block option to have fixed segment sizes. Then I just manually closed both the ends with a line and ran the boundary command. You do have to pick an internal point for each segment but that is quickly done. In the example the original polyline is blue and the resulting segments have been moved up in the drawing.

 

As a note sometimes it takes a bit of trial and error to get the orientation of the block correct, sometimes it will lay along the object or point the wrong way,

0 Likes
Message 9 of 10

Kent1Cooper
Consultant
Consultant
Accepted solution

@Anonymous wrote:

.....

 

2. After closing all the four polylines of the blue shape it creates a straight chord instead of closing the indicated polylines.

 

....


If I understand correctly, don't close all four  [that closes each one as a separate thing, which I think explains the chords], but Join  them [with either the JOIN command or PEDIT's Join option].

Kent Cooper, AIA
Message 10 of 10

Anonymous
Not applicable

Hello again!

 

Problem resolved! It seems quite silly now. Just as you mentioned, I should have been using the command join instead of close. Everything works.

My method is just as you described before: Taking the proper measurement of the already existing line, cutting it and creating an offset.

 

Thanks to everybody that tried to help!

 

Ps. I´ve noticed now that I wrote two times similar post above (as the first one didn´t appear when I posted it).

 

Ps2. Hello on the forum Smiley Happy

 

 

0 Likes