Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

0 REPLIES 0
Reply
Message 1 of 1
luisPDAN6
362 Views, 0 Replies

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

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 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report