Automatic macro in solidworks

Hi all

 

My question concerns a point already mentioned here but I don't want to make this tutorial work as an attachment and I would like to know if some of you have succeeded because it could be of great help to me (Control of part references, of the dimensions according to configuration and other)


using_notifications_events_in_solidworks_macros.pdf

What part of the tutorial do you want to implement? The launch of the macro with SW?

I followed the whole procedure but unfortunately I have no message :/

Good evening

You will find the event-based macro attachments.

To launch it automatically, you will need to create a new shortcut with the following targets:

"Solidworks Program Path" /m "Macro Path"

I only coded the display of a message when you create a new document and when you change the current document.

I left the swApp variable in public so that it can be used in other modules.

If you have any questions, don't hesitate.

PS: I'm preparing a tutorial on macro features which are little known but really very practical.

PS2: There are errors in the tutorial you linked, that's why it doesn't work.


automacro.zip
3 Likes

Thank you Yves.T your macro works I have more than to adapt it to my needs only question that remains unanswered there is no more splashscreen at the start of solidworks? it's disturbing we don't know if it launches or not :/

Yes, the splashscreen jumps.

I don't know where it comes from. It surprised me too.

I'll look tonight if we can put it back.