AnsweredAssumed Answered

API SetAutomaticUpdate

Question asked by Derek Eldridge on Sep 14, 2016
Latest reply on Sep 16, 2016 by Keith Rice

Please help.


I'm writing a VBA macro that will set the values for AutomaticCutList and AutomaticUpdate of the cut list to False.

Using SetAutomaticUpdate from the API.

The 2016 API gives a straightforward example at:

2016 SOLIDWORKS API Help - Get Features of Multibody Sheet Metal Part Example (VBA)


I've used this example and changed the following two lines to False:

            swBodyFolder.SetAutomaticCutList False

            swBodyFolder.SetAutomaticUpdate False


When the debug Prints the values for each, SetAutomaticUpdate remains True.

For some reason, I can't figure out why SetAutomaticUpdate wont change.



My End game is a macro that will run through an entire assembly, looking for parts that have these features turned on, and turn them off. My rebuild of the top level assy is giving me a message to disable the option to increase performance.