How can I get the entity clicked on without changing its selected state?
Hi,
I'm writing a path offset algorithm for a plasma cutter CAD package. I know Eyeshot has offset functions, but they can't handle some of the paths. I'm trying to get the index of an entity that I click on ("Select by Pick") that has already been selected without changing its selected state. To better illustrate my problem image a hexagon shape with all entities selected. Now you need to select the start element to generate the new offset path without changing its selected state. My plan is for the user to click the 'Get Start' button to place the program into the "Get Start Element" state After the user selects an entity, its index is displayed in the textbox. I'm new to Eyeshot and have read the docs and tried everything I could think of to no avail. Any help would be greatly appreciated. Thank you.
Comments
If you don't want to select you could just override the Design control MouseUp event and use GetEntityUnderMouseCursor(System.Drawing.Point position, bool false) in the Design object to get the entity under.
Passing false allow you to tell the method to also pick entities that are not selectable
Thank you very much.
Please sign in to leave a comment.