Quantcast
Channel: Mentor Graphics Communities: Message List
Viewing all articles
Browse latest Browse all 4541

how do i find the X Y location of where the cursor snaps to?

$
0
0

Hi,

I am trying to write a script for expedition that uses motionGfx and events to draw objects on the screen. I want to use it with the snap points on an object when the hoover snap is turned on, but event commands such as

     _OnMouseClk(button, flags, dx, dy)

i think only returns the mouse position, not the snap location.

I noticed you can use command like .MotionGfxPutLine(....) with epcbMotionGfxPointType set to epcbMotionGfxPointMoveXY will snap to the snap location, but i don't think there is any way to return that position.

 

Is there anyway to return the location of the currently highlighted snap point?

 

Thanks,

James


Viewing all articles
Browse latest Browse all 4541

Trending Articles