Hi all,
I'm trying to code a macro (VBA, but using some winAPI) that will automatically find and click on any 'OK button' of currently running feature definition window. I managed to get it working from VBA editor level (through 'run' command), but when I'm trying to call it by clicking on toolbar icon or keyboard shortcut, CATIA automatically closes all running feature definitions (e.g. Blend Corner Definition) before actually running the macro. Is there a way to avoid such behavior?
My aim is to be able to 'approve' any existing feature definition without the need for moving the mouse and clicking 'OK'. Pressing 'Enter' on keyboard doesn't always work, as sometimes feature definitions can be focused by default on 'Cancel' button or other controls.