O'Reilly logo

Instant Autodesk Revit 2013 Customization with .NET How-to by Don Rudder

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Extracting data (Should know)

You will undoubtedly find yourself in a situation where you need to get data out of the model. The format in which you export the data is purely up to you, but the means for reading the data basically remain the same. We will build a command in this recipe that exports all room data to a Comma Separated Values (CSV) file.

There are a couple of things to consider when exporting data from parameters other than text. The ElementID parameters can export either the seven digit numerical representation of ElementID or with a little trickery can export the name of the element that it points to.

Numerical parameters have a similar capability where they can be exported as either the decimal representation for their values or ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required