The advantage of having Dynamo implement IronPython is that you can import libraries compiled in other .NET languages. Learning to import these libraries greatly extends the functionality of Python and Dynamo.
- [Instructor] Now let's have a look at how dot notation…can be used to access Dynamo nodes as we would use them…in the Dynamo graph.…Go ahead and start a new Dynamo file and let's place a new…Python Script node.…We briefly touched on the import section…in an earlier video.…In the first three lines, the default Python Script node…automatically imports CLR, and from the CLR object…we're using the add reference method…with ProtoGeometry as the parameter, followed by…from Autodesk.DesignScript.Geometry import star.…Later in the course we'll be looking at importing in detail,…for now all we need to understand is…that the three lines are importing the Geometry library…that is shown within the Dynamo Geometry menu.…
With this library comes all the classes that we can use…to make points, curves, cubes and geometric objects.…Think of this as importing a recipe book to make geometry.…All of the recipes are contained within the book…to create the geometry.…To look at some of these recipes, let's jump back…into the Dynamo workspace, and let's navigate…
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.