SetSurfaceBackgroundPatternId Method


Sets the ElementId of the surface background pattern override. The fill pattern must be a drafting pattern. A value of InvalidElementId means no override is set.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 19.0.0.0 (19.0.0.405)
Since: 2019

Syntax

C#
public OverrideGraphicSettings SetSurfaceBackgroundPatternId(
	ElementId fillPatternId
)
Visual Basic
Public Function SetSurfaceBackgroundPatternId ( _
	fillPatternId As ElementId _
) As OverrideGraphicSettings
Visual C++
public:
OverrideGraphicSettings^ SetSurfaceBackgroundPatternId(
	ElementId^ fillPatternId
)

Parameters

fillPatternId
Type: Autodesk.Revit.DB ElementId
Value of the surface background fill pattern override.

Return Value

Reference to the changed object.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentNullException A non-optional argument was NULL

See Also