Dynamo includes many out-of-the-box nodes that allow you to create and manipulate geometry from within Dynamo. In this video, learn how to import the Dynamo geometry library into a Python script node to create geometry. Jeremy demonstrates this by creating a point object by using the Point.ByCoordinates method.
- [Narrator] Now let's have a look…at how dot notation can be used…to access Dynamo objects.…As we would use them in the Dynamo graph.…Let's open up a new Python script node.…A quick way to do this,…is by clicking the right mouse button on the Dynamo canvas…and searching for Python, then hitting enter.…Perfect.…We briefly touched on the imports section…in an earlier video.…On lines two, three, and four,…the default Python script automatically imports clr…and from the clr class,…we're using the add reference method…with proto geometry as the parameter.…
Followed by from auto desk…dot design script dot geometry import star.…Later in the course,…we will be looking at importing in more data.…For now, all we need to understand…is that these three lines are importing…the geometry library that is shown…within the Dynamo geometry menu.…With this library, comes with the classes…that we can use to make points,…curves, cubes, and other geometric objects.…Think of this as importing a recipe book to make geometry.…All the recipes are contained in the book…
Author
Released
12/14/2018Note: This course uses Dynamo 2.0.1 and Revit 2019. For best results, it helps to have the same versions of the software.
- Importing the Dynamo Geometry library
- Python basics: variables, conditionals, operators, loops, and functions
- Using and extending Python modules
- Accessing the Revit API with Python
- Revit and Dynamo conversions
- Creating a collector in the Revit API
- Getting Revit parameters with the Revit API
- Adjusting elements with the Revit API
- Creating views with the Revit API
Skill Level Intermediate
Duration
Views
Related Courses
-
Dynamo for Revit Project Setup
with Ian Siegel1h 35m Intermediate -
Learning Python
with Joe Marini2h 27m Beginner -
Dynamo: Practical
with Paul F. Aubin2h 51m Intermediate -
Grasshopper and Rhino: Python Scripting
with Jeremy Graham5h 12m Intermediate
-
Introduction
-
What you should know1m 38s
-
Exercise files1m 2s
-
1. Dynamo and Python
-
The Python node basics5m 5s
-
What is OOP?5m 58s
-
Importing the Dynamo library4m 31s
-
-
2. Python Basics
-
Defining variables6m 26s
-
Numbers7m 40s
-
Strings7m 11s
-
Working with lists6m 22s
-
Control with operators5m 46s
-
Logical operators7m 14s
-
Looping with the for loop5m 17s
-
Looping with the while loop6m 22s
-
Break and continue3m 15s
-
Nested loops6m 20s
-
Dictionaries4m 42s
-
Try and except3m 55s
-
Defining functions6m 7s
-
-
3. Working with Libraries
-
Built-in Python modules6m 58s
-
Extending Python modules4m 30s
-
Saving our own module5m 6s
-
Accessing Revit nodes6m 18s
-
Importing the Revit API3m 12s
-
Working with the Revit API7m 46s
-
Revit conversions5m 53s
-
Dynamo conversions6m 57s
-
Navigating the Revit API5m 49s
-
-
4. Revit API
-
Collecting elements3m 22s
-
Creating a collector7m 14s
-
Getting Revit parameters5m 51s
-
Setting Revit parameters6m 24s
-
Element locations3m 25s
-
Adjusting elements5m 13s
-
Creating a view4m 6s
-
View bounding boxes7m 25s
-
-
Conclusion
-
Next steps2m 34s
-
- 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.
CancelTake 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.
Share this video
Embed this video
Video: Importing the Dynamo library