Join Jeremy Graham for an in-depth discussion in this video Dynamo conversions, part of Dynamo for Revit: Python Scripting.
- [Instructor] When passing Dynamo geometry…to work with the Revit API or vice versa,…we need to convert the geometry types…just as we have done so with the Revit element types.…From the last video, let's go ahead and open up…the Python script again and we can see…from the previous exercise…that to create the family instance,…we are not using a Dynamo point…but an XYZ type…which is created using the XYZ method…and the parameters for this being coordinates.…This is actually a Revit object…which represents a point.…Let's recreate this XYZ…after the family is created…and we'll use the variable XYZ…and append it to our output list…to see what we get in Dynamo,…then go ahead and accept and run…and we haven't got the XYZs as we need…to change the output append to XYZ.…
Accept and run.…And you can see that is has output a list of objects…that appear like coordinates of a point…but are not actually Dynamo point objects,…that is we can't use them with Dynamo geometry.…This is because Dynamo and the Revit API…use different geometry objects.…
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 Beginner
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.