Actually I tested your code in my version of solidworks and it’s working great. I was using another version of this kind of script which is not working anymore. So thank you for that.
I was wondering if I can use this script as a function call to put my window on top. Do you have any ideas?
Ready to start learning the SolidWorks API? Sign up for FREE membership here.Keep up with new videos, macros, and training events by joining our mailing list:
Keith,
Would you be able to add the ability to center the UserForm1 within the SolidWorks window? Especially for Dual Monitor people like me?
Thanks,
Paul
Paul, it has been updated so that it should appear in the center of the SolidWorks window.
Hi Again,
Actually I tested your code in my version of solidworks and it’s working great. I was using another version of this kind of script which is not working anymore. So thank you for that.
I was wondering if I can use this script as a function call to put my window on top. Do you have any ideas?
Kind regards,
Sander
Yes, the purpose of this code to keep a VBA user form in front of the SolidWorks application. Is it not working for you?
The data is not linking back into the form sub routines. because it is modeless?