Dynamo For Revit Basics1
Dynamo For Revit Basics1
Code blocks tend to be faster because it only requires you to double-click on the screen to place a code block.
Concatenation
Concatenation is a method used to combine variables such as text. The String.Concat node combines separate string values into
one continuous string. Think of it as a simple addition formula. Please note: Spaces are considered to be characters. If you require
spaces, please ensure that it is added onto the beginning or end of your string.
Concatenate by Separator
Sometimes it is beneficial to use a standard separator for separating strings. In the examples on the right, a “_” is being used to
separate each string. This can prove to be useful when combining Room Numbers with Room Names for use in an Excel schedule
or Room data sheet.
String Insertion
Sometimes strings need to be inserted at certain points within another string. This node allows the user to insert any string at a
specific location. This insertion of this text starts at 0 (zero). In the example on the right, the String “n’t” is added to the position
where the 3rd character would normally exist. This position is the number 2 (0,1,2) in Dynamo.
String Length
String length is used to extract the number of characters within a string. This can be beneficial when telling Dynamo to only use
Strings that have a max of 3 characters. This is a great filtering tool for wall and door schedules.
There are many other methods for editing strings within Dynamo, which are fairly self-explanatory. The ones listed above are the
most heavily used and most practical for project use. Use this as a guide for editing and manipulating strings when populating
scripts. This will prove useful in the next installment of Dynamo for Revit Basics, where we learn how to Extract and Write data to
and from Excel. Stay tuned for a more in-depth look into the world of Dynamo!
IMAGINiT is a leading provider of Autodesk software solutions and the largest North American Autodesk
Authorized Training Center (ATC) partner. All of our locations are supported by a vast pool of engineering
resources focused on developing real-life business solutions for their local clients.