WorksharingDisplayGraphicSettings
Description:
Represents the graphical settings that can be assigned to elements in the worksharing display modes.
Represents the graphical settings that can be assigned to elements in the worksharing display modes.
Inheritance Hierarchy:
System.Object
Autodesk.Revit.DB.WorksharingDisplayGraphicSettings
System.Object
Autodesk.Revit.DB.WorksharingDisplayGraphicSettings
public class WorksharingDisplayGraphicSettings : IDisposable
public WorksharingDisplayGraphicSettings GetWorksharingDisplaySettings(Document doc, String userName, WorksetId worksetId, bool ownedbyCurrentUser)
{
WorksharingDisplayGraphicSettings graphicSettings;
// get or create a WorksharingDisplaySettings current active document
WorksharingDisplaySettings displaySettings = WorksharingDisplaySettings.GetOrCreateWorksharingDisplaySettings(doc);
// get graphic settings for a user, if specified
if (!String.IsNullOrEmpty(userName))
graphicSettings = displaySettings.GetGraphicOverrides(userName);
// get graphicSettings for a workset, if specified
else if (worksetId != WorksetId.InvalidWorksetId)
graphicSettings = displaySettings.GetGraphicOverrides(worksetId);
// get graphic settings for the OwnedByCurrentUser status
else if (ownedbyCurrentUser)
graphicSettings = displaySettings.GetGraphicOverrides(CheckoutStatus.OwnedByCurrentUser);
// otherwise get graphic settings for the CurrentWithCentral status
else
graphicSettings = displaySettings.GetGraphicOverrides(ModelUpdatesStatus.CurrentWithCentral);
return graphicSettings;
}
| Name | Return Type | Description |
|---|---|---|
| WorksharingDisplayGraphicSettings(Boolean, Color) | None | Creates a new instance. |
| Name | Return Type | Description |
|---|---|---|
| Dispose() | None | Releases all resources used by the |
| Name | Return Type | Description |
|---|---|---|
| FillColor | Color | The fill color that will be applied to elements when these settings are applied. Note that this is automatically set by increasing the luma of the specified line color by 65%. |
| IsApplied | bool | Indicates whether this set of graphic overrides will be applied. |
| IsValidObject | bool | Specifies whether the .NET object represents a valid Revit entity. |
| LineColor | Color | The line color that will be applied to elements when these settings are applied. |