GetOrCreateWorksharingDisplaySettings Method


Worksharing Display Settings Get Or Create Worksharing Display Settings Method

Returns the worksharing display settings for the document, creating new settings for the current user if necessary.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public static WorksharingDisplaySettings GetOrCreateWorksharingDisplaySettings(
	Document doc
)

Parameters

doc Document
The document of interest.

Return Value

WorksharingDisplaySettings
The worksharing display settings for the document.
Exceptions
Exception Condition
ArgumentException doc is not a project document.
ArgumentNullException A non-optional argument was null
Remarks
Note that these settings are available even in models that are not workshared. This is to allow pre-configuring the display settings before enabling worksets so that they can be stored in template files.
See Also
ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →