So, I’ve been working on this model for a commercial renovation for about a year now, and it’s slowly grown to a shameful 1GB due to a huge number of client changes (they like to see the space staged, so I’ve used a lot of warehouse components). I didn’t really notice, because this PC is pretty beefy and even realtime in Enscape didn’t slow it down too much.
However, the time has come to hand it off to another team, who are struggling to open it. I’ve tried deleting all extraneous geometry I can find, but that only cut down a couple hundred megabytes. I’ve purged unused materials, but that only took care of a handful – it seems the majority are applied to components that don’t exist in the model space. I’m now trying to purge components, but doing that in one go keeps crashing SKP.
Is there a way to list/manually purge smaller groups of unused components? The geometry I create is generally fairly low-poly, and my personal textures are pretty limited, so I have to assume there’s about 800mb of extraneous components.
You could delete them one at a time by right clicking on their thumbnails in the Components window and choosing Delete. Cancel it if it warns you that all instances in the model will be deleted.
You might see if turning off Profiles and Edges in the style helps to lightening the load. If you want to share the file I’ll take a look at it and see if I have beeter luck. Upload it to DropBox or WE Transfer and share the link.
Aha, I must have missed the delete option, and they key wasn’t working. Sounds like I’ve got a relaxing Friday afternoon doing that a couple thousand times :'^)
So, does this mean Sketchup caches all components you’ve ever imported as part of the file?
pretty much, if you add the component, then default instance is in there. and many items in the warehouse are excessively heavy. beside breaking up the model into multiple types (structure, MEP, finishes, etc etc) as a means of keeping the master model easier to maintain, loading components into a blank model and checking it before copying it into your project files is always a good idea - you can check it for scale, size, materials etc and adjust as needed before copying into your project and thus avoiding a lot of extraneous stuff as well as things out of scale etc.
Seems like a feature it would be nice to have the chance to turn off - it looks like every single block from every single AutoCAD import has also cached and has to be manually deleted.
Personally, I’d much prefer to have to re-download the occasional prop than have a file slowly bloat unless regularly purged. Opening in a new file is nice when you’re working at a leisurely pace, but not really tenable with people watching over your shoulder.
Another possibility would be to select all that is shown in model space, so that any unused components shall remain unselected.
Then you copy the selection and paste it in a freely opened copy of SU.
Of course you will not get all the scenes of the original.
Dave’s method is probably the best.
Open it to a scene which has everything you need.
Open a new drawing file.
Select all in original. Copy…
Paste in place in new file.
If the file is as large as you say, go make coffee.
Come back to see everything pasted in the new model.
Save the new file.
Go to original.
File Save As…
Delete all objects that might be in the Outliner. Turn on hidden geometry and hidden objects.
If you have scenes with sections be sure not to delete the Sections. Double check that you have deleted everything.
Open components library. Purge unused.
Do the same for materials.
Close the file. Find the file with your file browser and see what size it is. Hopefully it is now much smaller.
Open the file.
Go to the new file. Select All… Copy…
Switch to old file - be sure to close the outliner.
Paste in place.
Enjoy some coffee.
If it works everything you wanted will come back to where it was. And your scenes and layers will still work. I would then purge the model of everything you don’t need again, just to be sure.
If the file is too big do this in steps. I often have to setup models in a separate file for render - so I turn all my tags off, then one by one turn them on and copy / paste in place into a new file, one tag at a time.
Purging the file itself in the model statistics screen or the components/materials/scenes settings will remove everything from the project that isn’t physically used in the scene. That will lighten the load significantly from the sound of it.
Once you’ve done that there are a couple of extensions that will help you identify the more painful models that could do with being swapped out.
Goldilocks and CG impact report
There are also plugins to physically hide the edges on a component itself - that way you don’t have to keep edges/profiles turned off for when you need to actually edit something
I can’t believe I didn’t think of this - thank you.
Marking this as the best solution - in my case, scenes can be re-set-up much more quickly than trying to delete all of those components. Even after an hour or two of manually paring them out, it still crashed trying to purge the remaining unused.
Copied and pasted the model into a new file and immediately brought it down from 1GB to 200MB. I was worried the model would be too large to copy & paste without crashing, but it was totally fine!
Large files suffer performance slowdowns due to the total number of groups and components, especially if there are transformations (scaling, strretching) applied and lots of nested objects.
You have a garden with 40 plants, and each plant component contains 200 sub-components (for leaves, stems, flowers, etc).
To add variety you have scaled up some plants, rotated and flipped them, and applied some variation in default material.
Try editing each plant and exploding all the small components within it.
You’ll probably find that Sketchup runs much faster .