Ad banner place

Browse, install and update extensions directly in SketchUp with Sketchucation Tools
Download Now

  • Dummy Article For Plugin Page

ZipUp    v1.4

  • Overview
  • Release Notes

ZipUp

Note: this tool works best with SketchUp >= v2014, but from v1.1 it will also works down to v8...

Extension: which is initially activated.

    Usage: File > ZipUp...

It runs and Purges the Model of all unused Components, Materials, Layers and Styles.
It then it makes a ZIP from a saved temporary SKP.
This ZIP is made in the same folder as the Model's SKP file.
Model.skp makes Model.zip, containing the processed version of Model.skp.
On completion of the process you are prompted to keep the Purge changes to the Model.
Yes, to keep the changes.
No, to revert to the un-Purged Model.

You must save a new model before the tool can be used

There are three settings/options which you can get/set from the Ruby Console.
These apply to all Models opened in that SketchUp version.
The current settings are remembered across sessions.

    ZipUp.skpver

this returns a number like 2014.
It initially defaults to the current Sketchup version - typically 2014.
It can be reset thus:

    ZipUp.skpver=8

The possible versions are 3 to 8, and 2013 or 2014 [or higher, once newer SketchUp versions are available]
Note that with older versions of SketchUp, <v2014, you cannot change the saved SKP's version through the Ruby API:
so if you try to reset ZipUp.skpver= in earlier versions it will always revert to the current SketchUp version anyway.
This 'ZipUp.skpver' determines what version the saved SKP of Model.zip is inside of the ZIP Model.zip if SketchUp >=v2014.
It does not change the current Mode's versionl.

    ZipUp.overwrite

this returns true or false.
It is initially set to be true.
When true it always overwrites any preexisting Model.zip with the latest version of the SKP.
When false, if there is an existing Model.zip, then you are prompted to overwrite it.
If you answer Yes, it is overwritten.
If you answer No, it increments the newly saved ZIP thus: Model.zip >>> Model(01).zip [the increment increases until a unique name is achieved, e.g. Model(02).zip]
If you answer Cancel the tool Aborts.
It can be reset thus:

    ZipUp.overwrite=false

Pass true or false, anything other than false/nil is taken as true.

    ZipUp.silent

this returns true or false.
It is initially set to be false.
When false it always displays a closing dialog and also any warning dialogs.
When true, there is no closing dialog, there are also no warning dialogs, and the 'overwrite' setting is invoked without a prompt, either true with overwrite or if false an incrementing ZIP without any prompting.
The prompt-less exit also assumes you want to keep the Model Purged.
It can be reset thus:

    ZipUp.silent=true

Pass true or false, anything other than true is taken as false.

1.0 20140806 First issue.
1.1 20140814 Made compatible with v8..v2014.
1.2 20140823 Glitch in v8 fixed.
1.3 20141031 Glitch in >=v2014 when setting up save_as to earlier version SKP fixed.
1.4 20141101 Incorrect usage reporting and version comparisons in ZipUp.skpver= improved.