Get a count of checked out elements by the user in the model

luisPDAN6
Advocate
Advocate

Get a count of checked out elements by the user in the model

luisPDAN6
Advocate
Advocate

What is the preferred way to get a count of checked out elements owned by the user?  I tried:

 

 

ICollection<ElementId> checkoutelements = WorksharingUtils.CheckoutElements(doc, null);
int count = checkoutelements.Count;

 

 

But i cannot pass null on the CheckoutElements method. And I would prefer not to checkout a random element just to get a count.

0 Likes
Reply
364 Views
0 Replies
Replies (0)