Back to tutorials

123 Sub Category Map

Chris McKeown / July 1, 2025

Power

~12 min read2,316 words
0 views

Overview

The 123 Sub Category Map tool allows you to export and import category and subcategory settings (Object Styles) to and from Excel. This powerful tool expedites project standardization by enabling you to:

  • Document all category and subcategory settings in Excel
  • Transfer object style standards between projects
  • Bulk update line weights, colors, patterns, and materials
  • Create new subcategories across multiple projects
  • Delete unwanted subcategories in bulk

Sub Category Map Interface

Table of Contents


Key Features

  • Export all category and subcategory properties to Excel
  • Import settings from Excel with automatic validation
  • Create new subcategories from Excel data
  • Update existing category and subcategory properties
  • Delete subcategories in bulk
  • Data validation for line patterns and materials
  • Detailed progress tracking and error reporting
  • Comprehensive logging of all changes

Interface Guide

The interface is simple and straightforward with three main buttons:

About

  • Displays information about Bonus Tools

Export

  • Exports all current category and subcategory settings to an Excel file
  • Creates a formatted Excel file with data validation

Import

  • Imports category and subcategory settings from an Excel file
  • Processes New, Delete, and Update operations
  • Provides detailed feedback on successes and failures

Example Workflows

Example 1: Adding Company Standard Subcategories

Scenario: Add three new subcategories to Walls category

  1. Export current project settings
  2. Open Excel file
  3. Find the "Walls" category row
  4. Insert three new rows below it:
CategoryTypeCol 1Col 2RGBStyleMaterialModelStatus
WallsExisting...Update
WallsNew-Build22000SolidConcreteModelNew
WallsDemolition3325500Hidden<None>ModelNew
WallsFuture11128128128Dash<None>ModelNew
  1. Save Excel file
  2. Import into project
  3. Verify three new subcategories were created

Example 2: Standardizing Line Weights

Scenario: Update all categories to use consistent line weight standards

  1. Export to Excel
  2. Search for all rows where Line Weight Projection != desired value
  3. Update values to company standard
  4. Set all to "Update" operation
  5. Import back into project
  6. Check results summary for any failures

Example 3: Cleaning Up Project

Scenario: Remove unused subcategories from a project

  1. Export to Excel
  2. In Revit, identify which subcategories are unused
  3. In Excel, find those subcategory rows
  4. Change operation to "Delete"
  5. Import
  6. Review that elements formerly using deleted subcategories now use parent category

Exported Excel File Structure

When you export, an Excel file is created with the following columns:

Column Headers

  1. Category Name

    • The main Revit category (e.g., Doors, Walls, Pipes)
    • Cannot be updated - for reference only
    • Must use valid Autodesk Revit category names when adding new rows
  2. Subcategory Name

    • The subcategory name (e.g., Frame, Panel, Hidden)
    • Cannot be updated - existing subcategories cannot be renamed
    • Shows "null" for main category rows (categories without subcategories)
  3. Line Weight Projection

    • Line weight for projection view (1-16)
    • Values:
      • 1-16: Standard Revit line weights
      • -1: No line weight entered
      • 0: Not applicable
      • 100: Default value where not set
  4. Line Weight Cut

    • Line weight for cut view (1-16)
    • Values:
      • 1-16: Standard Revit line weights
      • -1: No line weight entered
      • 100: Object style does not contain a cut weight (e.g., annotation objects)
  5. Line Colour R

    • Red component of line color (0-255)
  6. Line Colour G

    • Green component of line color (0-255)
  7. Line Colour B

    • Blue component of line color (0-255)
  8. Line Pattern

    • Name of the line pattern (e.g., Solid, Dash, Hidden)
    • Includes data validation dropdown with all available patterns
    • If pattern doesn't exist, a default pattern will be created
  9. Material

    • Name of the material assigned to the category/subcategory
    • Includes data validation dropdown with all available materials
    • If material doesn't exist, a default material will be created
  10. Category Type

    • The category type (Model, Annotation, Other)
    • Cannot be altered - for information only
  11. New/Delete/Update

    • Critical column - controls what action is taken during import
    • Must contain exactly one of these values:
      • New: Creates a new subcategory
      • Delete: Deletes the subcategory
      • Update: Updates the subcategory properties
    • Important: Rows without a valid value are skipped during import

Data Validation

The Excel file includes built-in data validation:

  • Line Pattern column has dropdown with all project line patterns
  • Material column has dropdown with all project materials
  • Named ranges are created for easy reference

Step-by-Step Guide

Exporting Category Settings

  1. Open your Revit project
  2. Launch 123 Sub Category Map from the Bonus Tools tab
  3. Click Export
  4. Choose a location and filename for the Excel file
  5. Wait for the export to complete (time depends on project size)
  6. Excel file opens automatically when complete

Progress Tracking:

  • A progress bar displays during export
  • Shows current status and total number of categories
  • Can be cancelled if needed

Modifying the Excel File

Once exported, you can modify the Excel file to prepare for import:

Adding New Subcategories

  1. Insert a new row below the parent category
  2. Enter the Category Name (must match an existing category exactly)
  3. Enter the Subcategory Name (new unique name)
  4. Set line weights, colors, pattern, and material
  5. Enter New in the New/Delete/Update column

Example:

Category NameSubcategory Name...Action
DoorsCustom Frame...New

Deleting Subcategories

  1. Find the row with the subcategory to delete
  2. Change the New/Delete/Update column to Delete
  3. All other values in the row will be ignored

Warning: When a subcategory is deleted, all elements using that subcategory will revert to the parent category. This affects their display properties.

Example:

  • If you delete "Swing" subcategory from "Doors"
  • All door elements using "Swing" will now use "Doors" category
  • Their line weights, colors, and patterns will change to match the parent category

Updating Existing Subcategories

  1. Find the row with the subcategory to update
  2. Modify any of these properties:
    • Line Weight Projection
    • Line Weight Cut
    • Line Colour R, G, B
    • Line Pattern
    • Material
  3. Change the New/Delete/Update column to Update

Note: Category Name and Subcategory Name cannot be changed - these identify which object style to update.

Importing Category Settings

  1. Launch 123 Sub Category Map in your target project
  2. Click Import
  3. Browse to and select your modified Excel file
  4. Wait for processing to complete
  5. Review the results dialog

Progress Tracking:

  • First pass: Reads Excel file and displays row count
  • Second pass: Processes each operation (New/Delete/Update)
  • Detailed logging to Revit Output Dialog

Results Summary:

After import completes, you'll see a summary showing:

Passed:

  • Category: Count of successfully updated categories
  • Category Material: Count of successfully updated category materials
  • Category Line Pattern: Count of successfully updated category line patterns
  • Sub-Category: Count of successfully updated subcategories
  • Sub-Category Material: Count of successfully updated subcategory materials
  • Sub-Category Line Pattern: Count of successfully updated subcategory line patterns
  • Category Created: Count of successfully created subcategories
  • Sub-Category Deleted: Count of successfully deleted subcategories

Failed:

  • Same metrics as above for any operations that failed

Smart Import Logic

The tool includes intelligent processing:

  1. If New is specified but subcategory exists:

    • Automatically switches to Update operation
    • Logs a message: "Sub-Category already exists. Updating instead."
  2. If Update is specified but subcategory not found:

    • Automatically switches to New operation
    • Logs a message: "Sub-Category not found. Adding instead."
  3. Missing Line Patterns or Materials:

    • If specified pattern doesn't exist, a default pattern is created
    • If specified material doesn't exist, a default material is created
    • You can modify these defaults later in Revit

Output Dialog Logging

All operations are logged to the Revit Output Dialog with color coding:

Gray: Informational messages

  • "Attempting to Create within Category: Doors, Sub-Category: Custom Frame"
  • "Attempting to Modify sub-Category: Hidden"

Green: Successful operations

  • "Custom Frame - created."
  • "Hidden - Line Weights updated."
  • "Frame - Material updated."

Red: Errors and warnings

  • "Sub-Category already exists. Updating instead."
  • "Failed to create: Custom Frame [error details]"
  • "Line Pattern failed."

Tips and Best Practices

  1. Always Export First

    • Export from the target project before importing
    • Provides baseline understanding of current state
    • Helps identify what needs to change
  2. Test on a Copy

    • Test imports on a copy of your project first
    • Verify results before applying to production files
  3. Keep Row 1 Intact

    • Never modify or delete the header row
    • The import process relies on these column names
  4. Valid Category Names

    • When adding new rows, use exact Revit category names
    • Case and spelling must match exactly
    • Reference exported file for correct names
  5. One Operation Per Row

    • Each row should have exactly one operation (New, Delete, or Update)
    • Blank operation column means row is skipped
  6. Check Output Dialog

    • Always review the Revit Output Dialog after import
    • Identifies which operations succeeded or failed
    • Provides specific error messages
  7. Understand Delete Impact

    • Deleting a subcategory affects all elements using it
    • Elements revert to parent category display
    • May cause unexpected visual changes in project
  8. Material and Pattern Defaults

    • If you specify non-existent materials/patterns, defaults are created
    • You'll need to configure these defaults afterward
    • Alternatively, create materials/patterns first, then import
  9. Save Excel File Properly

    • If you get errors, try closing and reopening Excel file
    • Save as .xlsx format
    • Avoid special characters in file path
  10. Process Time - Large projects take longer to process - Be patient during export and import - Progress bar shows current status

Common Use Cases

Standardizing Multiple Projects

  1. Export from your template or standard project
  2. Import into each project that needs standardization
  3. Review and address any failures
  4. Save projects with updated standards

Transferring Standards Between Offices

  1. Office A exports their standards to Excel
  2. Share Excel file with Office B
  3. Office B reviews and modifies as needed
  4. Office B imports into their template
  5. Use updated template for new projects

Bulk Creating Subcategories

  1. Export current categories to Excel
  2. Add multiple rows with New operation
  3. Fill in all required properties
  4. Import to create all subcategories at once
  5. Much faster than creating one-by-one in Revit

Cleaning Up Unused Subcategories

  1. Export to Excel to see all subcategories
  2. Identify unwanted subcategories
  3. Set their operation to Delete
  4. Import to remove them all at once
  5. Check projects to ensure elements display correctly

Color Standardization

  1. Export to Excel
  2. Update RGB values to match corporate colors
  3. Set operation to Update
  4. Import to apply consistent colors
  5. Repeat across all projects

Troubleshooting

Import Fails to Start

Problem: Excel file won't open or import doesn't begin Solutions:

  • Verify Excel file exists at specified location
  • Close Excel file if it's currently open
  • Check file isn't corrupted
  • Try re-saving Excel file

Rows Being Skipped

Problem: Some rows aren't processed during import Solutions:

  • Check New/Delete/Update column contains valid value
  • Ensure column contains exactly "New", "Delete", or "Update"
  • Check for extra spaces or typos
  • Verify category name is valid and exists

Subcategories Not Created

Problem: New subcategories fail to create Solutions:

  • Verify parent category exists and is spelled correctly
  • Check subcategory name doesn't already exist
  • Review Output Dialog for specific error messages
  • Ensure subcategory name is valid (no special characters)

Colors Not Updating

Problem: RGB values don't change after import Solutions:

  • Verify RGB values are numbers between 0-255
  • Check operation is set to "Update"
  • Some categories have locked properties
  • Review Output Dialog for failures

Line Patterns Not Applying

Problem: Line patterns don't update or create Solutions:

  • Check pattern name is spelled correctly
  • If pattern doesn't exist, it should auto-create (check this worked)
  • Some categories don't support custom line patterns
  • Review logging in Output Dialog

Materials Not Assigning

Problem: Materials don't apply to categories Solutions:

  • Verify material name is correct
  • If material doesn't exist, it should auto-create
  • Some categories don't support materials
  • Check Material column isn't blank when you intended to assign one

Excel File Errors

Problem: "Error opening the excel file, please reopen and save the excel file and try again" Solutions:

  • Close Excel file and save
  • Reopen Excel, save as new file
  • Check file isn't corrupted
  • Verify file is .xlsx format
  • Check file path doesn't contain special characters

Need Help? Contact support or refer to additional Bonus Tools documentation.

Thank you for using Bonus Tools - Sub Category Map!