Getting the active window

Hi All

I have some code for an addin that I'm currently writing for Solidworks 2009. Most of it is done but there is a problem I'm running into -

I'm trying to get the measure tool to measure between 2 points - got that part done. But instead of showing the measure tool itself, I only want to show the x,y,z difference. So in other words i'd like to hide the measure tool window.

Someone suggested I use the hwnd = GetActiveWindow to hide the measure tool window.

Only problem is my own addin has a button that you click in order to do this. So this is what's wrong:

  1. click button to measure
  2. hwnd = GetActiveWindow
Reply to
koorzena
Loading thread data ...

How about (rather than use the measure tool) use the solidworks.maths object to make some vectors, subtract them, and get the length? (i.e. do it 'manually')...

Reply to
Cowboy Shane

Hi there...

Reason I'm using it in such a manner is to show the spatial difference (difference in X,Y,Z) between two points visually - i don't want to calculate it... yet...for now I'm only interested in showing those differences...

Anyone out there know how?

Reply to
koorzena

PolyTech Forum website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.