Creating Capsules
Capsules are collections of scripts that are accessible through the Revit ribbon. Launchpad Command lets you easily create and modify capsules to deploy your custom tools.
Overview
Launchpad Command provides tools for creating and managing capsules. Capsules are collections of scripts accessible from the Revit ribbon, similar to a custom add-in. Capsules are deployed through Launchpad Explorer, which supports Revit versions 2022 through 2026.
Understanding Capsules
A capsule is a self-contained package that includes:
Configuration file (JSON format)
Scripts folder containing C# code files
Icons folder containing button images
An organized structure for tabs, panels, and buttons
Capsules allow you to:
Group related tools together
Share tool collections with team members
Organize custom Revit commands
Create professional-looking ribbon interfaces
Creating a New Capsule
Method 1: Using the Capsule Creation Wizard
In Launchpad Command, go to Tools β Create New Capsule
In the dialog:
Enter a Capsule Name (e.g., "MyCustomTools")
Select or enter a Capsule Location (folder path)
Click Add Location to add the path to Launchpad Explorer's configuration
Click Create
The wizard automatically:
Creates the capsule folder structure
Generates a default configuration file
Sets up Scripts and Icons folders
Adds the location to Launchpad Explorer's search paths
Method 2: Manual Creation
You can also manually create a capsule structure:
Editing Existing Capsules
Opening the Capsule Editor
Go to Tools β Edit Existing Capsule
Browse to select a
capsule.jsonfileThe Capsule Editor window opens
Using the Capsule Editor
The editor provides a visual interface for:
Left Panel - Capsule Structure
Tree view showing the hierarchy
Right-click context menus for adding/deleting items
Drag-and-drop support for reorganizing
Right Panel - Properties
Edit properties for selected items:
Capsule: Name, folder, version
Tab: Name
Panel: Name
Button: Type, name, title, tooltip, script file, icons
Adding Elements
Add Tab: Right-click capsule β Add Tab
Add Panel: Right-click tab β Add Panel
Add Button: Right-click panel β Add Button
Button Types
Push Button: Standard single-click button
Pulldown Button: Dropdown menu with multiple commands
Split Button: Button with dropdown options
Stacked Buttons: 2-3 buttons grouped vertically
Exporting Scripts to Capsules
Quick Export to My Launchpad Tools
Write your script in the Code Editor
Go to Tools β Export to Ribbon
Fill in the export dialog:
Tool Name: Internal name for the script
Button Title: Display text (use for line breaks)
Tooltip Description: Help text shown on hover
Click Export
This automatically:
Creates/updates the "MyLaunchpadTools" capsule
Copies your script and renames using proper naming convention
Updates the capsule configuration
Requires Revit restart to see changes
Manual Script Integration
Save your script with the naming convention:
ButtonName_script.csCopy to the capsule's Scripts folder
Update the button's script file property in the Capsule Editor
Managing Capsule Locations
Configuring Launchpad Explorer Paths
Go to Tools β Manage Launchpad Explorer Config
View current capsule search paths
Add Path: Click to browse and add new locations
Remove Path: Select and click the delete button
Default Locations
Launchpad Explorer searches these locations:
User-defined paths in the configuration
%LocalAppData%\ArchSmarter\CapsulesAssembly directory capsules folder
Capsule Structure
Configuration File (capsule.json)
File Naming Conventions
Scripts:
ButtonName_script.csLarge Icons:
ButtonName_32.png(32x32 pixels)Small Icons:
ButtonName_16.png(16x16 pixels)
Best Practices
1. Organize Your Capsules
Group related functionality together
Use descriptive names for tabs and panels
Keep button titles concise but clear
2. Script Development
Test scripts in Launchpad Command before exporting
Include error handling in all scripts
Add meaningful TaskDialog messages for user feedback
Comment your code for future maintenance
3. Icon Design
Use a consistent icon style across your capsule
Ensure icons are clear at small sizes
Save as PNG with transparency
Follow the size requirements (16x16 and 32x32)
4. Version Control
Keep capsules in version control (Git, SVN, etc.)
Update version numbers when making changes
Document changes in a changelog
5. Distribution
Share entire capsule folders with team members
Ensure all users have the capsule path configured
Consider creating installer scripts for complex deployments
Troubleshooting
Common Issues
The capsule is not appearing in Launchpad Explorer
Verify that the capsule path is in the Explorer configuration
Check that the capsule.json file is valid JSON
Restart Revit after adding new capsules
Script errors when clicking buttons
Check if the script file exists in the Scripts folder
Verify script filename matches the configuration
Review the script for compilation errors
Icons not displaying
Ensure icon files exist in the Icons folder
Check the filename matches the configuration exactly
Verify the image format is PNG
Changes not reflected
Save all changes in the Capsule Editor
Click "Apply Changes" for property updates
Restart Revit to load configuration changes
Getting Help
Check the Launchpad documentation
Visit the ArchSmarter community forums
Use the Feedback button in Launchpad Command
Advanced Topics
Creating Complex Button Types
Pulldown Buttons
Stacked Buttons
Limited to 2-3 buttons per stack
Buttons appear vertically grouped
Useful for related commands
Integration with Team Workflows
Centralized Capsule Repository
Store capsules on a network drive
Configure all team members' Explorer paths
Implement update notifications
Capsule Templates
Create standard capsule structures
Define naming conventions
Establish icon design guidelines
Automated Deployment
Script capsule installation
Configure paths programmatically
Validate installations
This documentation provides a comprehensive guide for creating and managing capsules with Launchpad Command. Users can follow these steps to build custom tool collections that integrate seamlessly with Revit through Launchpad Explorer.
Last updated