I would like my assembly to do an auto rebuild (Ctl+Q) when I open the file. Is there a way to do this?
I would like my assembly to do an auto rebuild (Ctl+Q) when I open the file. Is there a way to do this?
Maybe
How do you add Macro as Macro Feature?
Edit:
Just an idea.
There should be a macro in the public folder instead of a drawing file.
all users should open that drawing with a macro.
The macro must first open the drawing, then make Ctrl Q.
Edit:
SOLIDWORKS Utilities - Macro Feature inside the Feature Manager - May 2016 - YouTube
Wayne Schafer wrote:
I have made the change you suggested and run the macro while the assembly file is being opened but it does not do the Clt+Q.
The macro won't run on it's own. You will have to run that other macro and then this macro would run.
Wayne Schafer wrote:
I run this macro and it adds the show comments macro where I attach the Show Comments.swp
Maybe if you type Control-Q it'll run the macro feature...
Kidding aside, did you enable the option to rebuild upon opening a file as posted above?
Wayne Schafer wrote:
I run this macro and it adds the show comments macro where I attach the Show Comments.swp
Do Clt+Q or force rebuild and macro would work as expected. I've tested it and it works fine.
Thanks Deepak, I know doing the Clt+Q after the file is open and the comments show. I was hoping that when someone opens the file the Clt+Q would happen during the open process and show the comments.
You need to use this macro Run VBA macro automatically on document load using SOLIDWORKS API by Artem Taturevych
You can set the macro to run the show comments macro which has the force rebuild and show comments both. You need to change following module and add runmacro2 method to run show comments macro or have the codes pasted in the following module.
Under Tools>Options>Performance, there is an option to rebuild assembly on load - see below.