PGia Posted 8 hours ago Posted 8 hours ago Hi again. This may also happen to others: sometimes I have two polylines and I need to get something like a common parallel to both. A sort of hybrid parallel from the original two. Is it possible that this topic has been discussed in the history of this forum and there is a LISP to solve this problem? Thanks in advance. Quote
mhupp Posted 6 hours ago Posted 6 hours ago (edited) Posting a drawing would help to be more clear with what your asking for. but maybe this is what your looking for. PAV Edited 6 hours ago by mhupp Quote
PGia Posted 5 hours ago Author Posted 5 hours ago 1 hour ago, mhupp said: Posting a drawing would help to be more clear with what your asking for. but maybe this is what your looking for. PAV This? Quote
PGia Posted 4 hours ago Author Posted 4 hours ago (edited) Perhaps the most appropriate description is to obtain the axis between 2 irregular polylines Edited 4 hours ago by PGia Quote
Nikon Posted 4 hours ago Posted 4 hours ago (edited) 37 minutes ago, PGia said: Perhaps the most appropriate description is to obtain the axis between 2 irregular polylines pltools.lsp centerPline.LSP Edited 4 hours ago by Nikon 1 Quote
PGia Posted 3 hours ago Author Posted 3 hours ago 41 minutes ago, Nikon said: pltools.lsp 201.88 kB · 2 downloads centerPline.LSP 10 kB · 2 downloads @NikonThanks for the code. I tried it. But it only works sometimes. And if the polylines' first point coincides with the last, it doesn't work. Is it possible that I'm doing something wrong? Quote
PGia Posted 3 hours ago Author Posted 3 hours ago 52 minutes ago, pkenewell said: Look into this post for ideas: @pkenewell Thanks for help. I downloaded the latest code from link and loaded it, but it doesn't seem to do anything. I probably don't understand how it works. Quote
Nikon Posted 2 hours ago Posted 2 hours ago 1 hour ago, PGia said: I tried it. But it only works sometimes. And if the polylines' first point coincides with the last, it doesn't work. Is it possible that I'm doing something wrong? The code does not work correctly with polylines that have a large number of segments. Example1.dwg Quote
pkenewell Posted 2 hours ago Posted 2 hours ago (edited) 1 hour ago, PGia said: Thanks for help. I downloaded the latest code from link and loaded it, but it doesn't seem to do anything. I probably don't understand how it works. The "MC" command by roy437 works for me on your example drawing. You have to set the point resolution (prompt for "Specify Length for arc(ds)") to improve the results. I used 0.1 for pretty good results. Edited 2 hours ago by pkenewell Quote
PGia Posted 1 hour ago Author Posted 1 hour ago 54 minutes ago, pkenewell said: The "MC" command by roy437 works for me on your example drawing. You have to set the point resolution (prompt for "Specify Length for arc(ds)") to improve the results. I used 0.1 for pretty good results. @pkenewell Thank you very much. I finally got it working. In my case, I set the "length of arcs" to 1. And it worked. But I think the resulting axis isn't very geometrically rigorous. I've attached an example image: -The polyline created by the command is shown in green. -The correct geometry of the axis is shown in dashed red. I think there should be a more geometrically rigorous solution in some older Lisp. Is it possible? Does anyone know of one? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.