get the rectangles coordinates at specific manner of point

get the rectangles coordinates at specific manner of point

avinash00002002
Collaborator Collaborator
761 Views
4 Replies
Message 1 of 5

get the rectangles coordinates at specific manner of point

avinash00002002
Collaborator
Collaborator

Hi

 

I have some rectangles which is created by polyline. I want to get coordinates and marked it p1, p2, p3, p4 in a anticlock directions as shown in the drawing and also marked.

 

can any one help me.

0 Likes
762 Views
4 Replies
Replies (4)
Message 2 of 5

Jeff_M
Consultant
Consultant

The attached lisp does what you asked.

 

Jeff_M, also a frequent Swamper
EESignature
0 Likes
Message 3 of 5

Leo_Gambini
Contributor
Contributor

Hi

I come to ask for an adaptation in a table, I will post the images and attachment to better understand,

I'm grateful for some help.

As this is important to me, I will make a donation of 20 U$ for those who can, as thanks for the help.

Seeyha

0 Likes
Message 4 of 5

avinash00002002
Collaborator
Collaborator

Hi

Thanks for your help.

I required 

 

Lower Left corner as P1

Lower Right corner as P2

Upper Right corner as P3

Upper Left corner as P4 

when rectangle is in any rotation as seen my drainwg.

Thanks,

Avinash

0 Likes
Message 5 of 5

Kent1Cooper
Consultant
Consultant

Your drawing apparently has only rectangles, but your image shows that the "rectangles" are not always rectangles, but quadrilaterals.  And both show that they are not always orthogonally oriented, which complicates the determination of which corner is which.  If one might ever be at a 45° angle, as in this image, is the bottom corner the "lower left" or "lower right" corner?

Kent1Cooper_0-1623670299861.png

Should P1 to P2 always be along a long edge?

 

Kent Cooper, AIA
0 Likes