Learn how to create, format, and manipulate strings in Dynamo, including concatenation, substring operations, case changes, and type conversions. Students will also learn to generate readable reports and tag data from Revit elements.

💡 Goal: Understand basic text concatenation.
Create two strings, "Hello" and "World", and combine them into a single sentence with a space in between.
"Hello World"
Tags: #strings #concatenation #text
Related Lessons:
#CH4_L3 (Strings – Find Replace, Add Suffix/Prefix)
#CH1_L4 (Programming Concepts – String and Logic Operations)

💡 Goal: Combine text with numeric data.
Create a number 25 and merge it with the unit " m²" to form a complete string.
"25 m²"
Tags: #strings #numbers #concatenation
Related Lessons:
#CH4_L3 (Strings – Add Suffix/Prefix)
#CH4_L4 (Numbers – To String / From String Conversion)
#CH1_L3 (Parameters and Lists – Data Combination)

💡 Goal: Practice substring operations.
From the string "Living Room", extract only the first word.
"Living"
Tags: #strings #substring #text
Related Lessons:
#CH4_L3 (Strings – Split By / Contain / Substring Operations)

💡 Goal: Understand case transformation.
Convert the string "kitchen" into uppercase form.
"KITCHEN"
Tags: #strings #uppercase #text
Related Lessons:
#CH4_L3 (Strings – Case and Replace Operations)

💡 Goal: Learn to analyze string length.
Create a string "Bathroom" and count how many characters it contains.
8
Tags: #strings #uppercase #text
Related Lessons:
#CH4_L3 (Strings – Analyze and Modify Text)
#CH3_L5 (Lists – Count True / Count Elements)

💡 Goal: Use string operations to sanitize Revit data.
Extract all room names from the model and remove unwanted symbols.
["4 Living Room", "Kitchen +", "Bedroom zone"]
["Living Room", "Kitchen", "Bedroom"]
Tags: #strings #revit #cleanup #parameters
Related Lessons:
#CH4_L3 (Strings – Find Replace / Clean Text)
#CH3_L6 (Revit Nodes – Get Parameters)
#CH1_L2 (Data Types & Revit API Objects)

💡 Goal: Search within strings for a target value.
From a list of room names, find which ones contain the word "Toilet".
["Guest Toilet", "Master Toilet"]
Tags: #strings #search #revit #filter
Related Lessons:
#CH4_L3 (Strings – Contain or Not)
#CH4_L2 (Filtering – Filter by Condition)
#CH3_L6 (Revit Nodes – Parameter Filtering)

💡 Goal: Merge Revit parameter data into one readable text.
For each door, combine its “Mark” and “Width” parameters into one string such as “Door-01 | 900 mm”.
["Door-01 | 900 mm", "Door-02 | 1000 mm"]
Tags: #strings #revit #parameters #labels
Related Lessons:
#CH4_L3 (Strings – Add Suffix/Prefix / Combine)
#CH3_L6 (Revit Nodes – Get and Set Parameters)
#CH4_L10 (Reading and Writing Excel – Data Formatting)

💡 Goal: Break text into smaller parts.
Take the string "Master Bedroom 01" and split it into separate words.
["Master", "Bedroom", "01"]
Tags: #strings #split #textprocessing
Related Lessons:
#CH4_L3 (Strings – Split By Operation)
#CH3_L5 (Lists – Create and Access Sub-Lists)

💡 Goal: Modify text dynamically.
Replace "Room" with "Space" in the text "Living Room".
"Living Space"
Tags: #strings #replace #text #editing
Related Lessons:
#CH4_L3 (Strings – Find Replace)
#CH1_L4 (Programming Concepts – Logic Flow)

💡 Goal: Generate readable text summaries from element data.
For each Room, combine its Name, Area, and Level into a formatted string like:
"Living Room | Area: 25.5 m² | Level: 2"
["Living Room | Area: 25.5 m² | Level: 2", "Kitchen | Area: 18.4 m² | Level: 2", ...]
Tags: #revit #strings #reports #parameters
Related Lessons:
#CH3_L6 (Revit Nodes – Get Parameters and Combine Data)
#CH4_L3 (Strings – Combine and Format Text)
#CH4_L10 (Reading and Writing Excel – Reporting)

💡 Goal: Build smart element names using logic and string patterns.
For each wall, generate a new code name using the format "WALL_" + LevelName + "_" + Index.
["WALL_L1_001", "WALL_L1_002", "WALL_L2_001"]
Tags: #strings #automation #revit #parameters #naming
Related Lessons:
#CH4_L3 (Strings – Add Prefix/Suffix / Dynamic Text)
#CH3_L6 (Revit Nodes – Parameters and Naming)
#CH1_L4 (Programming Concepts – Conditional Logic)

💡 Goal: Learn how to manipulate strings list.
In the given string "Hello this is Chapter 04", add underscore "_" only before "04"
"Hello this is Chapter_04"
Tags: #strings #sorting #lists
Related Lessons:
#CH4_L3 (Strings – Replace and Insert Operations)
#CH3_L5 (Lists – Operate on List of Strings)

💡 Goal: Identify repeated parameter values.
From a list of door marks, find which ones appear more than once and return a list of duplicates, and a list showing how many duplicates found for each unique value.
list 1 = ["Door-01", "Door-07"]
list 2 = [5, 3]
Tags: #strings #duplicates #filter #revit
Related Lessons:
#CH4_L2 (Filtering – Filter by Parameter or Condition)
#CH3_L5 (Lists – Unique Items / Count True)
#CH3_L6 (Revit Nodes – Parameter Extraction)

💡 Goal: Export formatted text data from Revit to Excel.
Combine Room Names and thier Areas into descriptive strings, then export them as a column in an Excel sheet.
In Excel:
Room Name | Area
Living Room | Area: 28.4 m²
Master Bedroom | Area: 32.1 m²
Tags: #strings #revit #excel #export
Related Lessons:
#CH4_L10 (Reading and Writing Excel – Export / Transpose)
#CH3_L6 (Revit Nodes – Get Parameters)
#CH4_L3 (Strings – Combine and Prepare for Export)
