Re: centreline between 2 polylines

Re: centreline between 2 polylines

barry2104
Collaborator Collaborator
2,411 Views
6 Replies
Message 1 of 7

Re: centreline between 2 polylines

barry2104
Collaborator
Collaborator

how silly of me... thanks.

I also found the VLX Lisp for "CURVEAXIS" online, which Looks to do the same as the Lisp from this Forum, but has the added Option of outputting as a spline or 3d polyline

 

is it possible to somehow convert a vlx to a .lsp file? It'd be nice to have all the same file types in my Lisp folder

Running AutoCAD Architecture 2020, in German
0 Likes
2,412 Views
6 Replies
Replies (6)
Message 2 of 7

barry2104
Collaborator
Collaborator

so the Output looked good at first glance, but upon closer inspection it's obvious that this doesn't work accurately (at least not for my curved Situation)

Here the red line (Output) doesn't cross through the midpoint of the selected line, and for the curved part of the Output, lies obviously Closer to the top black curve. Why is this?

 

Unbenannt.JPG

Running AutoCAD Architecture 2020, in German
0 Likes
Message 3 of 7

j.palmeL29YX
Mentor
Mentor

@barry2104 wrote:

... upon closer inspection it's obvious that this doesn't work accurately


 

Why not? Why did you draw the selected line in the position which is shown in your pic? How is the position of your line determined? My attached pic shows as example three other lines, whose midpoint is placed at the "centerline" and the endpoints touch the two borderlines.

 

In other forums we have discussed this issue (create a middle curve between two given curves) very often - without a finally result. The main problem (IMHO): nowone can describe exactly, what is the middle between two curves.

 

Jürgen

Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 4 of 7

Kent1Cooper
Consultant
Consultant

@j.palmeL29YX wrote:
.... we have discussed this issue (create a middle curve between two given curves) very often - without a finally result. The main problem (IMHO): nowone can describe exactly, what is the middle between two curves.

 

For some discussion of that issue, see >this< and following Messages on that same thread, especially the link at the end of Message 44.

Kent Cooper, AIA
0 Likes
Message 5 of 7

j.palmeL29YX
Mentor
Mentor

Thx to @Kent1Cooper  for the link.

 

Here still another way to get a centerline between two given curves (2D).

In many (not all) cases we get an acceptable solution.

 

(I didn't a close check if this way was already shown in one of the previous postings).

 

 

Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

Message 6 of 7

Sea-Haven
Mentor
Mentor

Nice solution as you can control the number of facets. There is another post floating around about curve fitting to a pline with a 1000 points. Maybe copy parallel, do mesh and find middle,  play with resolution of grids. 

 

http://www.theswamp.org/index.php?topic=55530.0

0 Likes
Message 7 of 7

gpcattaneo
Advocate
Advocate

Similar method here 

Almost 🙂

 

618.gif

0 Likes