Revit 2022 API |
OverrideGraphicSettings..::..SetSurfaceForegroundPatternId Method |
OverrideGraphicSettings Class See Also |
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: 22.0.0.0 (22.1.0.0)
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 |