Chapter 8: Deep Dive into Dynamo Data Types
In Chapter 5, Getting Started with Autodesk Dynamo and Data Gathering, Luisa did an excellent introduction to primitives such as strings, Booleans, and integers. In this chapter, we are going to deep dive a little more into Dynamo data types. We will need to learn how to perform more complex operations on strings, lists of strings, lists of lists, and so on because they are essential in our day-to-day script development. So, for example, we will answer questions such as the following:
- If I have a list of lists, how can I precisely select one item or a list of items?
- In a list of strings, if there is part of each string I want to update, how do I tell Dynamo to do that?
- If I want to split a list into two groups, should I use
if
statements? - Also, if I want to perform naming rules validation, how can I do that?
Besides that, we will also focus on lists, indexes, how they work, and how to manage them. We will also...