I almost never use WINAPI. I have used it on real projects only a handful of times. But sometimes there is no other way so I have to do it.
And I can do most things I need to do with WINAPI when I have to. I can click buttons and enter text. I can crudely time things to make clicks happen at the right time.
But the one thing I am not satisfied with is selection of geometry.
If there is a single input to a function, a lot of the time you can pre-select it and launch the function and it will work (but not always).
But some functions require selection of multiple objects and it is not clear to me the best way to do this.
Now I have a scheme in my head to use Center Graph and some user pre-clicking to indicate horizontal position of the tree. And I think with this I can hack a way to position the cursor where I will have a pretty good chance of a selection when faking a mouse click.
But before I go through all that trouble I thought I would like to ask if anyone knows better way? How do you select geometry when forced to use WINAPI.
As a gift for your answers, I am attaching my WINAPI dialog plotting tool.
This tool is a macro. You enter a dialog caption and all the child windows of the dialog are plotted in a Catia part. Since window ordering of child windows at least seems consistent, it is really easy to determine which child window of a dialog is which (which is the OK button for example).
Since the tool uses UDF's it may require KT1 or PKT to run. However it may not because it uses a Jedi Generative Scripting trick to create the new part and instantiate the UDFs so I am not totally sure the KT1/PKT license restriction applies.
Thanks for any ideas!
Cliff Johnson, Cliff[Tata Technologies] @ Mar 04, 2013 - 10:15 PM (America/Eastern)
Cliff Johnson, Cliff[Tata Technologies] @ Mar 04, 2013 - 10:22 PM (America/Eastern)
Cliff Johnson, Cliff[Tata Technologies] @ Mar 04, 2013 - 10:23 PM (America/Eastern)
