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

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Translate the entire conversation x

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

TimSharp
12-Amethyst

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
12-Amethyst
(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.

Announcements


Top Tags