SetGraphicOverrides Method (WorksetId, WorksharingDisplayGraphicSettings)


Sets the graphic overrides assigned to elements in a particular user workset.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2012

Syntax

C#
public void SetGraphicOverrides(
	WorksetId worksetId,
	WorksharingDisplayGraphicSettings overrides
)
Visual Basic
Public Sub SetGraphicOverrides ( _
	worksetId As WorksetId, _
	overrides As WorksharingDisplayGraphicSettings _
)
Visual C++
public:
void SetGraphicOverrides(
	WorksetId^ worksetId, 
	WorksharingDisplayGraphicSettings^ overrides
)

Parameters

worksetId
Type: Autodesk.Revit.DBWorksetId
The workset of interest, which must be a user workset.
overrides
Type: Autodesk.Revit.DBWorksharingDisplayGraphicSettings
The desired graphic overrides for this workset.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentException worksetId does not correspond to a user workset in the document containing this WorksharingDisplaySettings.
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was null

See Also