TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: HOSNEYALAA on December 03, 2018, 05:26:22 AM

Title: The middle distance between the two Plines
Post by: HOSNEYALAA on December 03, 2018, 05:26:22 AM
If possible, calculate the average distance between two Plines
As the attached picture
Title: Re: The middle distance between the two Plines
Post by: Crank on December 04, 2018, 01:44:43 AM
http://www.jefferypsanders.com/autolisp_Rollin.html
Title: Re: The middle distance between the two Plines
Post by: didier on December 04, 2018, 02:12:21 AM
Coucou

is this the average distance of all vertices between polylines ?
or is it the distance from the middle of the first polyline to the second ?

amicalement
Title: Re: The middle distance between the two Plines
Post by: HOSNEYALAA on December 04, 2018, 03:07:29 PM
HI didier
is this the average distance of all vertices between polylines ?

Title: Re: The middle distance between the two Plines
Post by: HOSNEYALAA on December 04, 2018, 03:44:39 PM
The Green Line is not straight

It is taller than the blue line

As is attached

 

Is it possible to calculate the area space between the two lines?

And divide the value of the area ON  the ((horizontal)) length of the short blue line

 
Title: Re: The middle distance between the two Plines
Post by: HOSNEYALAA on December 04, 2018, 03:53:38 PM
Thank you Crank
I want a medium distance if possible
Title: Re: The middle distance between the two Plines
Post by: Crank on December 05, 2018, 01:50:53 AM
Now I'm not sure what you want:
- the average distance
- the distance between the midpoints of the polylines
Title: Re: The middle distance between the two Plines
Post by: HOSNEYALAA on December 05, 2018, 05:20:26 AM
hi Crank ,
I want
- the average distance
Thank you
Title: Re: The middle distance between the two Plines
Post by: ronjonp on December 05, 2018, 11:42:36 AM
Now I'm not sure what you want:
- the average distance
- the distance between the midpoints of the polylines
When in doubt post it everywhere  :evil:
https://www.cadtutor.net/forum/topic/66462-the-middle-distance-between-the-two-plines/?tab=comments#comment-545205
https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/hosneyalaa-the-middle-distance-between-the-two-plines/td-p/8445283
Title: Re: The middle distance between the two Plines
Post by: kdub_nz on December 05, 2018, 01:26:35 PM
HOSNEYALAA

I am confused.

The drawing is different to the picture you posted.

I assume you want the distance from the middle of one Pline to the middle of another Pline.

The measured distance need not be perpendicular to either Pline.

Is that correct ??


Have you attempted to write any code yourself ? ...

or do you want someone to write the code for you ?
Title: Re: The middle distance between the two Plines
Post by: HOSNEYALAA on December 05, 2018, 01:52:41 PM
Thank you kdub
The average distance between the two lines was required
The solution has been solved
https://www.cadtutor.net/forum/topic/66462-the-middle-distance-between-the-two-plines/
Title: Re: The middle distance between the two Plines
Post by: HOSNEYALAA on December 05, 2018, 01:55:36 PM
I'm sorry that my English is not good
I am currently learning writing a codes
Title: Re: The middle distance between the two Plines
Post by: HOSNEYALAA on December 08, 2018, 06:30:32 AM
GOOD