Revit 2025.3 API
Worksharing |
Sets the graphic overrides assigned to elements owned by a particular user.
The username cannot be on the list of removed usernames.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
public void SetGraphicOverrides( string username, WorksharingDisplayGraphicSettings overrides )
Public Sub SetGraphicOverrides ( username As String, overrides As WorksharingDisplayGraphicSettings )
public: void SetGraphicOverrides( String^ username, WorksharingDisplayGraphicSettings^ overrides )
member SetGraphicOverrides : username : string * overrides : WorksharingDisplayGraphicSettings -> unit
Parameters
- username String
- The username of the desired user.
- overrides WorksharingDisplayGraphicSettings
- The desired graphic overrides for this user.
| Exception | Condition |
|---|---|
| ArgumentException | The username is on the list of removed users. |
| ArgumentNullException | A non-optional argument was null |
Note that you can specify usernames which do not yet exist in the document's user table.
See Also