Back to Projects

Scale Elements

Advanced element scaling tool with bounding box analysis, geometric transformation, and DirectShape creation for scaled duplicates.

Scale Elements Video Demonstration

Watch the Scale Elements Dynamo script in action, demonstrating advanced element scaling capabilities with geometric transformation.

Project Overview

This Dynamo script provides advanced element scaling capabilities for Revit elements, enabling designers to create scaled duplicates while maintaining geometric integrity. The tool analyzes element bounding boxes, performs geometric transformations, and creates new DirectShape elements with the scaled geometry.

The script is particularly useful for creating scaled versions of complex elements, testing different sizes, and generating multiple variations of architectural components. It handles various element types and maintains proper geometric relationships during the scaling process.

Key Features

  • Bounding Box Analysis: Calculates element dimensions and center points
  • Scaling Factor Control: User-defined scaling ratios for precise control
  • Geometric Transformation: Advanced geometry scaling algorithms
  • DirectShape Creation: Generates new elements with scaled geometry
  • Category Assignment: Maintains proper element categorization
  • Center Point Calculation: Accurate scaling around element centers

Technical Implementation

  • Element.Geometry: Extracts geometry from selected elements
  • BoundingBox.ByGeometry: Calculates element boundaries
  • BoundingBox.MinPoint/MaxPoint: Determines scaling reference points
  • Geometry.Translate: Positions scaled geometry correctly
  • Geometry.Scale: Performs geometric scaling transformation
  • DirectShape.ByGeometry: Creates new scaled elements

Technical Specifications

Workflow Process
  1. Select target elements using Dynamo Player
  2. Extract element geometry using Element.Geometry
  3. Calculate bounding box using BoundingBox.ByGeometry
  4. Determine center point from MinPoint and MaxPoint
  5. Apply scaling factor to geometry
  6. Translate geometry to correct position
  7. Create DirectShape with scaled geometry
  8. Assign proper category and naming
Key Dynamo Nodes
  • Select Model Elements: Element selection interface
  • Element.Geometry: Geometry extraction
  • BoundingBox.ByGeometry: Boundary calculation
  • BoundingBox.MinPoint: Minimum boundary point
  • BoundingBox.MaxPoint: Maximum boundary point
  • Geometry.Translate: Position transformation
  • Geometry.Scale: Scaling transformation
  • DirectShape.ByGeometry: Scaled element creation

Use Cases

Design Variations

Create scaled versions of architectural elements for design exploration

Size Testing

Test different element sizes without modifying original geometry

Component Scaling

Scale complex architectural components while maintaining proportions

Project Impact

85%
Time Reduction

Automated scaling eliminates manual geometric reconstruction

100%
Accuracy

Precise geometric scaling maintains element proportions

Versatility

Handles elements of any complexity and geometry type

Dynamo Player Interface

Dynamo Player Interface

User interface for element selection, scaling factor input, and output element naming and categorization.

Geometry Extraction

Geometry Extraction

Element geometry extraction and bounding box calculation workflow for scaling preparation.

Scaling Algorithm

Scaling Algorithm

Advanced scaling algorithm showing center point calculation and geometric transformation logic.

DirectShape Creation

DirectShape Creation

Final step showing DirectShape creation with scaled geometry and proper category assignment.