Save Snippet
A snippet is a single PowerPoint shape or a group of shapes — for example, an icon, a diagram, or a text block.
Snippet Types
PPPTools distinguishes three snippet types. The type is determined automatically by what you save:
| Type | Content | Insertion |
|---|---|---|
| Fragment | Saved shapes / group | Shapes are inserted directly |
| Picture | Embedded image | Image is inserted |
| Code | Roslyn script (from the Advanced Snippet Editor) | Script is executed |
Saving from a slide (see below) creates a Fragment or a Picture. Code snippets are created in the Advanced Snippet Editor. The type is shown in the gallery and on the detail page and is handled correctly on insertion — including from the online library.
Prerequisites
- A PowerPoint presentation is open
- At least one shape is selected on the active slide
Saving
- Select the shape(s) on the slide
- Click PPPTools → Save Snippet in the Ribbon
- Enter a Name in the dialog
- Optional: add category, description, and other metadata directly
- Click Save
The snippet is saved in your private library and appears immediately in the gallery.
Tip
Groups and multiple simultaneously selected shapes can also be saved as a single snippet. PPPTools groups the objects automatically.
Technical Name & Grouping
The save dialog (and later the Manage tab) offers two additional fields that control the insertion behavior:
Technical Name
The technical name is optional. When set, the inserted object is given exactly this name (Shape.Name) on insertion — for example CustomerLogo.
Why? This lets you later find and replace the same object across multiple slides (e.g. swap out all "CustomerLogo" shapes).
Which object is renamed depends on the snippet type:
| Type | Renamed object |
|---|---|
| Code | the shape for a single object; the group for multiple objects (only when Grouping = Yes) |
| Fragment | only when there is exactly one object |
| Picture | the shape, or the group (for multiple pictures) |
If the field is empty, nothing is renamed.
Grouping
The Grouping toggle (Yes/No) applies to Code snippets: if the script creates several objects, they are automatically combined into a group after insertion when set to Yes. The Technical Name — if set — is then applied to the group.
For new snippets, Grouping = Yes is the default.
Note
Picture snippets with multiple images are always grouped anyway. Fragments keep the structure stored in the snippet.
Updating Metadata
After saving, all metadata can be edited in the Manage tab. Select the snippet in the list and adjust the fields.
Edit Code & Rebuild Preview
For Code snippets, two additional buttons appear below the preview image in the Manage tab:
| Button | What happens |
|---|---|
| Edit code | Opens the snippet's code.cs in the Advanced Snippet Editor — with a reduced toolbar, where Save overwrites exactly this snippet |
| Rebuild preview | Runs the script (with parameter dialog) and creates a new preview image from the resulting objects |
For Fragment and Picture snippets both buttons stay disabled — there is no script.
Rebuild preview runs in four steps:
- If the snippet has
@paramdefinitions, the parameter dialog appears first (button Preview image) - The script runs on the active slide
- The newly created objects are exported as
preview.png - The objects are removed from the slide again
If the script creates no new object, the existing preview image stays untouched and you get a notice.
License
Edit code opens the Advanced Snippet Editor and therefore requires a Pro license (Trial included). Rebuild preview is available from Free.
Preview Image
PPPTools automatically creates a preview image of the saved shape. The image is displayed in the gallery card. For code snippets it can be rebuilt at any time (see above).