cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Is there any way to know which part of an ellipse is picked?

TimSharp
6-Contributor

Is there any way to know which part of an ellipse is picked?

I've a macro that needs to rotate an item depending on whether the thick or thin part of an ellipse has been picked.

But I can't find a way to work this out.

I thought of useing activeDoc.firstSelectedElement.ellipse.segments[1].pen but when you select an ellipse, segment 1 is always the thicker segment, no matter if you select on the first or second segment.

Is there a way to do it using firstSelectEdelement?

2 REPLIES 2

Hi Tim,

You can use "activeDoc.firstSelectedElement.ellipse.segment[4 to 6].pen" for selecting Thin.....

TimSharp
6-Contributor
(To:Vaduga1)

Thanks Vaduga but I'm not sure what that does.

I might not have explained what I'm doing very well.

The illustrator selects an ellipse on the screen, and depending on whether they clicked on the thick or the thin portion of the ellispe, my macro should load and rotate an item (a pre-drawn threaded hole to sit over the ellipse) to suit. I was hoping that it would be possible to work out what segment has actually been selected.

Top Tags