Creo VB API allows the user to get windows information such as window id, dimensions, location, graphics area dimensions, etc. To get these information follow these steps.
Declare the required variables
Get the current session
Here the Aconnection is the variable declared at the time of Creo Connection or Creo Start function.
Get the current window
I’ve used the currently active window here. User can get any window using the window id
Get the window ID
Get the window dimensions
Get the graphics area dimensions
Difference between window and graphic area dimension
Get the window location
Here the consolidated code to get the window information & applyt o the predefined WPF Label
Thanks & Regards