Currently, the Revit plugin does rather well at getting your data out of Revit. It does less well at getting data into Revit, but we're working on it! With that in mind, let's go through the basics of using it as a data extractor, and integrating it further with the wider speckle ecosystem.
The plugin itself should now come with the default speckle installer. If you haven't done so already, read here how to get started with speckle. Please be aware that we currently only support Revit 2019, though the plugin should work for 2018 and 2020 too (to get it to show up in there, copy paste it from the 2019 addins folder to the other versions).
Opening the plugin
Ok, so you want to take a stab at it! First, open a revit project. Then, on the top tabs, select Addins, then Speckle. A new window should open containing the speckle plugin ui!
To send data, you first need to create a sender client by clicking the big friendly blue button on top. You will be promted to choose a server and provide a stream name. If you don't have any servers/accounts to choose from, at the moment you can't create them here - so follow the guides for grasshopper or rhino up to the account creation step, and come back.
- You can always add or remove your current element selection from a specific sender.
- You'll always need to click the "push" button on a stream in order to send an update. Speckle will try and notify you when it thinks it's the right time to do so!
- Forgot what you're sending? There's a button to focus & select the objects that are attached to the specific stream, right next to the add/remove buttons.
Now that you've gotten this data out of revit, you can do quite a few things with it. For example, you could receive it in grasshopper together with all its parameters and values, and start working your magic in there.
You can also, of course, view it online, and categorize/group it by pretty much any paramter property!
Or, if you're a hacker, start querying the API!
let query = 'https://hestia.speckle.works/api/streams/BBnqvGqP_e/objects?fields=properties.parameters.Elevation%20at%20Bottom&properties.beamFamily=M_Concrete-Rectangular%20Beam&limit=1'
This will give you quite a nice bunch of JSON:
Which can then add into excel, if you so choose - or start scaffolding your own custom automation applications on top of.
This covered the basis of speckle sending data out of revit. It's still early days, but we're getting there. There are a few planned features:
- optional geometry sending
- better filtering (so you could, for example, send all the rooms from a project only)
- receiving things! at the moment, only a few elements work as expected - that's why the getting data back into revit part is not covered in this guide.