The Autodesk.Revit.DB.Visual.AssetSet
class is a representation of a set of visual assets that can be assigned to geometry in a Revit project.
The AssetSet
class includes the following properties:
AppearanceAsset
: Returns the asset assigned to the appearance data of the visual set.BackgroundAsset
: Returns the asset assigned to the background data of the visual set.CutAsset
: Returns the asset assigned to the cut data of the visual set.ProjectionLineAsset
: Returns the asset assigned to the projection line data of the visual set.The AssetSet
class includes the following methods:
Equals()
: Compares two AssetSet
objects for equality.GetHashCode()
: Returns the hash code for the AssetSet
object.ToString()
: Returns a string representation of the AssetSet
object.You can use the AssetSet
object to assign visual assets to individual elements or categories in a Revit project. This allows you to customize the appearance of elements in your project based on your design needs.
For example, you could use the AssetSet
object to assign a specific material to a group of walls or objects based on the level or room they are located in.