Skip to main content
1-Visitor
October 18, 2012
Question

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

  • October 18, 2012
  • 1 reply
  • 880 views

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?

    1 reply

    1-Visitor
    November 3, 2012

    Hi Tim,

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

    TimSharp1-VisitorAuthor
    1-Visitor
    November 14, 2012

    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.