
Discover how to change material parameters in the Revit API by using a filtered element collector and class filter, then start a transaction and use lookup parameter to set manufacturer.
Learn to use the rivet api to get and set material parameters, run a transaction, inspect materials with rivet look up, and set colors via material cast with rgb values.
Learn to determine and purge unused materials in a Revit project with a macro, counting materials in use vs not in use and safely rolling back transactions.
Calculate material area and volume in the Revit API by using get material area and get material volume methods on walls, floors, and rooms, then aggregate results in dictionaries.
Note that many classes used in this sample are in the Autodesk.Revit.DB.Visual namespace, so add this line at the top of your file.
using Autodesk.Revit.DB.Visual;
This course will help you learn how to perform common operations with Materials in the Revit API. There is a lot of data about materials that exists in Revit's database that is not easily accessible from the Revit User Interface, so the API can be a great help in collecting this data. Please add comments on the course to suggest additional Materials topics that you would like covered.