Revit 2025.3 API
MaterialAppearance |
The ElementId of the AppearanceAssetElement.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
public ElementId AppearanceAssetId { get; set; }
Public Property AppearanceAssetId As ElementId Get Set
public: property ElementId^ AppearanceAssetId { ElementId^ get (); void set (ElementId^ value); }
member AppearanceAssetId : ElementId with get, set
Property Value
ElementIdThe id of the AppearanceAssetElement, or InvalidElementId if the material does not have an associated appearance asset.
| Exception | Condition |
|---|---|
| ArgumentNullException | When setting this property: A non-optional argument was null |
This is the id to the element that contains visual material information used for rendering.
In some cases where the material is created without setting up custom render appearance properties
(for example, when the material is created via an import, or when it is created by the API),
this property will be InvalidElementId. In that situation the standard material properties such as
Color and Transparency will dictate the appearance of the material during rendering.
See Also