2027 Method
Changes 0
M

WorksetTable.GetActiveWorksetId

Description:
Returns the active workset's WorksetId.
public WorksetId GetActiveWorksetId()
WorksetId WorksetId of the active workset.
public Workset GetActiveWorkset(Document doc)
{
    // Get the workset table from the document
    WorksetTable worksetTable = doc.GetWorksetTable();
    // Get the Id of the active workset
    WorksetId activeId = worksetTable.GetActiveWorksetId();
    // Find the workset with that Id 
    Workset workset = worksetTable.GetWorkset(activeId);
    return workset;
}