Share

WorksetId Class

WorksetId identifies a workset within a single document.

Inheritance Hierarchy

System.Object
  Autodesk.Revit.DB.WorksetId


Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)

Syntax

C#

public class WorksetId

The WorksetId type exposes the following members.

Constructors

 NameDescription
Public methodWorksetId Create an WorksetId handle with the given integer id.

Properties

 NameDescription
Public propertyIntegerValue Provides the value of the WorksetId as an integer.
Public propertyStatic memberInvalidWorksetId Get the invalid WorksetId whose IntegerValue is -1.

Methods

 NameDescription
Public methodCompareCompares two WorksetIds.
Public methodEquals Determines whether the specified Object is equal to the current Object.
(Overrides Object.Equals(Object))
Public methodGetHashCode Gets the integer value of the id as hash code
(Overrides Object.GetHashCode())
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToString Gets a String representation of the integer value of the id.
(Overrides Object.ToString())

Operators

 NameDescription
Public operatorStatic memberEquality(WorksetId, WorksetId)Determines whether these two WorksetIds are the same.
Public operatorStatic memberGreaterThan(WorksetId, WorksetId)Determines whether one WorksetId is greater than another WorksetId.
Public operatorStatic memberGreaterThanOrEqual(WorksetId, WorksetId)Determines whether one WorksetId is not less than another WorksetId.
Public operatorStatic memberInequality(WorksetId, WorksetId)Determines whether these two WorksetIds are different.
Public operatorStatic memberLessThan(WorksetId, WorksetId)Determines whether this WorksetId is less than another WorksetId.
Public operatorStatic memberLessThanOrEqual(WorksetId, WorksetId)Determines whether one WorksetId is not greater than another WorksetId.

Remarks

WorksetId is not guaranteed to be unique. It is only valid within one model and its value may change when the model is synchronized with central. If unique identification of a workset is needed, the workset's GUID should be used instead.

See Also

Reference

Was this information helpful?