Am I the only person rebuilding configurations?

Hi all,

I have a perennial problem with rebuilding all configurations in a part. I don't understand why it seems like I am the only person suffering this problem, otherwise there would be a command in SW to do this. Let me explain:

Each year SW releases a new version. Each year I try to convert my existing files to the new file format. I have many part files each containing many configurations, and I like to have each configuration built so that the file is not modified when I move between configurations or when I reference a configuration in an assembly. Unfortunately there is no easy way to do this. Let's go through each possibility:

1) Use the "Convert Files" task in the SW Task Sceduler. - This does not work becuase is simply opens each file and then saves it. It does not rebuild any configuration.

2) Use the "Update Files" task in the SW Task Scheduler. - This does not work because it only rebuilds the active configuration.

3) Manually open each part file and issue the "Rebuild all configurations" command hidden in the "Modify Configurations" dialog launched when you right-click a feature and select "Configure Feature". Asside from being highly impractical because of the number of part files involved, this does not work because it does not actually rebuild each configuration! This requires further explanation: Did you know that rebuilding a configuration is only a subset of activating a configuration? No, neither did I until recently. Here's an explanation from my VAR:

"When a part is opened in a new version of SolidWorks, all the parasolid data is marked as dirty for each configuration. The configuration itself has not changed, so the file is not marked as dirty, but when you activate a configuration for the first time, it will rebuild the parasolid information."

4) Use a macro to rebuild each configuration using the ForceRebuild3 command. This sounds promissing, however for a significant number (possibly arround half) of part files the ForceRebuild3 throws an exception.

5) The last method availbale to me is the one I have been using for years and it's insane: I manually open each part file and manually activate each configuration! As you can imagine this takes days.

So, my questions are these:

How do other SW users maintain built configurations in their part files, particularly when upgrading to the next version of SW?

Why is there no "Rebuild (or Activate) all configurations" command in SW that is the equivalent of activating each configuration?

Thanks in advance... now back to activating all my configurations. See you in a couple of days...

SolidworksConfigurations design Tables
Answers 13
NB
NB 2012-01-06 Best Answer

There's a way to rebuild all configurations - if you click on the first feature (say) and RMB on a dimension, there's an option to "Configure dimension". A table opens up, and there's a red/green Traffic light icon at the bottom of the table. Click the down arrow to the right of it and you should see "Rebuild all configurations".

SF
SF 2012-01-06

Nigel, you did not read my post! This is option 3 which does not work!

SF
SF 2012-01-06

While I've never put much effort into rebuilding after a major upgrade (though maybe I should), as a matter of course, I rebuild all configurations in any part or assembly before it gets checked into our library (we use Workgroup PDM for our parts library). I found a macro that does it in one button press. It does the job for me.

Just a note - I didn't write this macro, and I don't recall where it came from (one of the myriad SolidWorks tips sites strewn about the intar-web-nets). The macro itself doesn't contain commented informaiton about the originial writer. Whoever it is that wrote it though... Thanks!

KL
KL 2012-01-06

So the SolidWorks Task Scheduler > Convert Files > Options > Activate all configurations before saving option doesn't work for you?

http://help.solidworks.com/2012/English/solidworks/swtaskscheduler/HIDD_CONVERT_FILES_OPTION.htm

BS
BS 2012-01-06

Tim, you are not alone!  This has bugged me forever and I am in the same boat, step (5) every time we upgrade!  Luckily we only upgrade every other release so I have not had to deal with it every year.  Last upgrade I did use the SW task scheduler, using the 'activate all configurations before saving' option as Kelvin mentions above.  It did not work on all files but it got 90% of them.

Quick question, are you storing your files in a PDM vault by any chance?

SF
SF 2012-01-07

Brian, I'm not using PDM vault at present but plan to in the near future.

SF
SF 2012-01-07

Jason, Thanks, this also worked for me on an individual file basis but I cannot mark two answers in this thread as correct.

SF
SF 2012-01-09

No problem Tim - just glad I could help.

SF
SF 2012-01-11

Brian, I know I have already marked this thread as answere but my VAR has provided me with two macros that I'm finding invaluable for rebuilding configurations (attached). One calls EditRebuild3 on each configuration in the active document (the equivalent of manually pressing Ctrl+B on each configuration), the other calls ForceRebuild3 on each configuration (the equivalent of manually pressing Ctrl-Q on each configuration). I have simply re-mapped the Ctrl+B and Ctrl-Q shortcut keys to call each of these macros. Perfect. ...Well it would be if they were 100% reliable. Unfortunately the calls to both EditRebuild3 and ForceRebuild3 throw an exception when run on files with a large number of configurations - the situation where they are most usefull! I have asked my VAR to investigate and register a bug if necessary. I'll keep you posted...

SF
SF 2012-01-12

Tim,

Give us a handle on what a "large number of configurations" is. Something like "it worked on a file with 18 configurations, but didn't work on a file with 89 configurations".

Jerry Steiger

SF
SF 2012-01-15

Jerry,

I've attached two part files, "THD Base" with 79 configurations which takes two or three attempts of running either macro to build. The other "M3 Rivet Bush" with 190 configurations I cannot get to build at all. My VAR thinks the macro exceptions are almost certainly due to my limited RAM (I only have 4GB on a 64-bit machine) or the graphics card. I'm taking delivery of a more powerfull machine next week so won't be able to verify this until then. However my VAR has no problems building these files.

If these exceptions are indeed because of my hardware I would have expected a better error message than:

Perhapse something like "Insufficient memory". However when I look at the performance of my machine in Task Manager during these builds there is no significant memory increase.

Tim

comment imagecomment image
SF
SF 2012-01-23

Tim,

Thanks for the additional information.

It does seem likely that you are running into problems because of the small amount of RAM on your system. I think SW recommends 6 GB minimum on a 64-bit machine. I've also heard that Task Manager doesn't do a stellar job of showing the actual memory usage. I seem to run into memory related issues on my 32 bit machine at wildly varying reported memory usage.

I've pretty well given up on getting better error messages from either SolidWorks or Microsoft. I would guess, since you are getting a Visual Basic error, that it is the macro that is failing.

Jerry Steiger

AB
AB 2017-08-17

I remember looking at this thread a while back trying to figure out if there was a way to update all configs at once because I couldn't find a built-in way to do it. Looking through some of the shortcut options today, I stumbled upon this:

How long has this been there?! Has anyone out there used this much to know if it works well or is reliable? I tried playing around with it today, but using it on some test parts probably isn't a true indication of its ability...

comment imagecomment image