track mouse movement in draft

Valued Contributor
Valued Contributor

novice c# writer here.

 

I am looking to track or get the of the mouse movements as the mouse moves across the draft from a given starting opint to an end point. How would get the location points of the mouse without picking each point first? any help or examples would be great for me to look at.

Nathan M. Gardner

https://www.etsy.com/people/NathanMGardner

Be sure to check out my work!!
Made in Maine Wood Carvings

4 REPLIES

Re: track mouse movement in draft

Phenom
Phenom

Check for this folder under \Solid Edge ST6\Custom\MouseEvents

The program is in VB.Net though.

 

~Tushar

www.surfandcode.in

 

Re: track mouse movement in draft

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

Samples for Solid Edge on CodePlex. Download, extract the .zip and navigate to either the CS or VB folder. Open Demos\Demos.sln. Set the MouseEvents project as the startup project and start debugging. Should have what you're looking for.

Jason Newell
Applications Architect
www.jasonnewell.net

Re: track mouse movement in draft

Valued Contributor
Valued Contributor

I got it, Thanks Jason.I just started to look at it, Is there a reason it crashes when do not click on to an object but? I can click on an object and it gives me my information but if i click on the white area with nothing underneath, it crashes.

 

(view in My Videos)

Nathan M. Gardner

https://www.etsy.com/people/NathanMGardner

Be sure to check out my work!!
Made in Maine Wood Carvings

Re: track mouse movement in draft

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

In the LogEvent() method, I did not check to see if pGraphicDispatch is null, which it is in the case you mentioned. I will update the sample. Thanks for pointing it out.

Jason Newell
Applications Architect
www.jasonnewell.net