Strings are used in Python as they would be in Dynamo. Learn how to create, concatenate, and combine strings with numbers.
- [Instructor] In Dynamo we often need to update…Revit family parameters, view names or sheet names…by using text, otherwise known as strings.…A string data type is essentially then text.…It is made up of characters…which form the complete string object.…Let's have a look at creating objects within Python.…You'll notice I've created a new Dynamo file,…so let's go ahead and create a new Python script.…We can create strings by first declaring a variable…and assigning to it a value…with either single or double quotation marks…surrounding it, so let's try this…with the variable string and the word hello…and we know it's a string as the text…has turned up yellow,…so let's go ahead and output the string variable…and you can see we now have the string hello within Dynamo.…
A string can be created using either single…or double quotations but never a combination.…If we try for example changing hello to hello…with a single quotation and accept,…you can see that we get the error EOL while scanning…single-quoted string…and this essentially means the string is not closed.…
Note: This course uses Dynamo 1.3.1 and Revit 2018. For best results, it helps to have the same versions of the software.
- Importing the Dynamo Geometry library
- Defining variables
- Making decisions with conditionals
- Controlling flow with operators
- Defining functions
- Working with external libraries in Python
- Accessing the Revit API with Python
Skill Level Intermediate
1. Dynamo and Python
2. Python Basics
3. Working with Libraries
4. Revit API
Next steps2m 18s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.