Jump to content

Recommended Posts

Posted

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.

Posted (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 by mhupp
Posted
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?

Img1.thumb.png.07fd814eb89e5e7b30286584da757f3c.png

Posted (edited)

Perhaps the most appropriate description is to obtain the axis between 2 irregular polylines

Edited by PGia
Posted

Look into this post for ideas:

 

Posted
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.

Posted
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

Posted (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.

image.thumb.png.7acdec84578d497be076d0c039da43f0.png

Edited by pkenewell
Posted
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.

image.thumb.png.7acdec84578d497be076d0c039da43f0.png

 

@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:

Img1.thumb.png.ffd86ff3213d0926b6d8db658c1fb27f.png

-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?

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...