RVTDocs.com
Namespace: Autodesk.Revit.DB Class: Document

Document.GetWorksetId

Method
Description:
Get Id of the Workset which owns the element.
Remarks:
Each element belongs to one and only one workset.
Syntax
Parameters
Parameter Type Description
id ElementId Id of the element.
Return Value
Type Description
WorksetId Id of the Workset which owns the element.
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null