The Autodesk.Revit.DB.Visual.MetalFinishType class represents the different types of metal finishes that can be applied to a material in Revit.
This class has the following properties:
This class has no methods.
The metal finish types can be used to specify different types of textures and finishes for metal materials in Revit. The available metal finish types are listed below:
The metal finish type can be set for a material using the Autodesk.Revit.DB.Visual.AppearanceAssetElement class.
The following code snippet demonstrates how to set a metal finish type for a material:
Autodesk.Revit.DB.Visual.Material mat = new Autodesk.Revit.DB.Visual.Material("Steel");
Autodesk.Revit.DB.Visual.AppearanceAssetElement appearance = new Autodesk.Revit.DB.Visual.AppearanceAssetElement("Steel Appearance");
appearance.Material = mat;
appearance.SurfaceForegroundPattern = Autodesk.Revit.DB.Visual.SurfaceForegroundPattern.Hatching;
appearance.SurfaceBackgroundPattern = Autodesk.Revit.DB.Visual.SurfaceBackgroundPattern.Solid;
appearance.UseRenderAppearance = true;
int finishTypeValue = (int) Autodesk.Revit.DB.Visual.MetalFinishType.Satin;
appearance.SetParameter(Autodesk.Revit.DB.Visual.ParameterId.MetalFinishType, finishTypeValue);
In this example, a new material named "Steel" is created, and an appearance asset element is created and assigned to the material. The metal finish type for the material is then set to "Satin" using the SetParameter method of the appearance asset element.