WorksharingDisplayGraphicSettings Constructor


Creates a new instance.

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

Syntax

C#
public WorksharingDisplayGraphicSettings(
	bool shouldApply,
	Color lineColor
)
Visual Basic
Public Sub New ( _
	shouldApply As Boolean, _
	lineColor As Color _
)
Visual C++
public:
WorksharingDisplayGraphicSettings(
	bool shouldApply, 
	Color^ lineColor
)

Parameters

shouldApply
Type: SystemBoolean
True if the settings should be applied, False if they should be set but not applied.
lineColor
Type: Autodesk.Revit.DBColor
The desired line color, which must be a valid color. Note that the fill color is calculated automatically from the line color so it is not advisable to use white, black, or shades of grey.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentException The lineColor argument does not represent a valid color.
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was null

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →