The Revit 2018.1 update was released last month.
It implements one of the most important and long-standing API wishes, providing programmatic access to materials.
Here is an extracted summary of the main API related ones:
- Dynamo Player improvements – the Dynamo Player which is the powerful scripting tool that installs with Revit as a way to automate tasks. You can now adapt Dynamo scripts to better fit your needs by requesting user input before use. Providing user input directly in the Dynamo Player interface lets customers make project-specific adjustments to scripts without having to know how to use Dynamo. In addition to a UI refresh that makes it easier to use, the Dynamo player in the Revit 2018.1 update includes additional scripts.
- Visual Materials API – you can create and edit Appearance Assets – the particular instances of classes representing visual material properties – of materials in Revit. A top customer request, the opening of the materials API allows the automated creation of materials libraries and better transfer of material information between products. Now you can use any third-party tool to make changes to material finishes.
- Fabrication parts centre line length API – the API now allows you to interrogate the centreline length of fabrication parts to facilitate automation and point load calculations. By user request, we exposed the centreline length parameter on the fabrication side in the API for Revit, providing access to the centreline length on fittings like elbows, tees and crosses. This information is useful to MEP contractors in several ways.
- MAJ file creation API – the API provides the ability to improve manufacturing workflows by customising your MAJ export to suit your company standards and how you want the data to come back into Fabrication CAMduct. You can create a MAJ file that is used for advanced spooling tool which lets you modify how you export your jobs whether by section or by certain details in a fabrication part, facilitating the spooling process in Fabrication CAMduct and Fabrication CADmep.
Here are the relevant Revit 2018.1 links:
Question: So, you say, the Revit API has been updated. How can I access the updated API?
Answer: The Revit API is provided by the Revit API .NET assembly DLLs, which are included with the product in the same directory as Revit.exe itself. Install the update and you have the new API at your disposal.
Question: Where is the API documentation for the API improvements made available in the Revit 2018 Update 1 release?
Specifically, I'm interested in the new 'Visual Materials API'.
Answer: An update 2018.1 to the Revit SDK is provided in the Revit Developer Centre.
Here is a direct download link:
- Revit 2018.1 SDK (Update August 01, 2017) (msi - 351268Kb).
It includes two new samples:
- Appearance Asset Editing
- Duplicate Graphics
The former will hopefully answer all your questions in full.
The latter was already published separately and briefly discussed in the summary of Revit 2017 and 2018 SDK samples.