SetSurfaceForegroundPatternId Method


Sets the ElementId of the surface foreground 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 SetSurfaceForegroundPatternId(
	ElementId fillPatternId
)
Visual Basic
Public Function SetSurfaceForegroundPatternId ( _
	fillPatternId As ElementId _
) As OverrideGraphicSettings
Visual C++
public:
OverrideGraphicSettings^ SetSurfaceForegroundPatternId(
	ElementId^ fillPatternId
)

Parameters

fillPatternId
Type: Autodesk.Revit.DB ElementId
Value of the surface foreground 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