From the course: Dynamo for Revit: Python Scripting

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

Dynamo conversions

Dynamo conversions

From the course: Dynamo for Revit: Python Scripting

Start my 1-month free trial

Dynamo conversions

- When parsing Dynamo geometry to work with the Revit API, or vice versa, we need to convert the geometry types just as we've done with Revit Element Types. So let's give that a try in this video. I currently have the Revit exercise file open for this video. Along with the Dynamo exercise file for this video. These are where we left off from in the last video. In this previous exercise, we created a new family instance, however we are not using a Dynamo point, but an XYZ type from the Revit API, on line 33. This is a Revit object, which represents a point. Let's recreate this XYZ object, after the family is created, using the variable XYZ. And we'll append it to our output list, to see what it looks like in Dynamo. Let's use the same X variable, to drive the X coordinate. And then output that object. And hit Run. You can see that it 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…

Contents