Announcements
Welcome to the Revit Ideas Board! Before posting, please read the helpful tips here. Thank you for your Ideas!
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Implement DocumentType Property on the Document Class

Implement DocumentType Property on the Document Class

We can get the Category of an Element at any time. 

We can get the CategoryType of a Category at any time.

Why cant we get the DocumentType of a Document at any time?

 

Using Document.PathName to get the file extension of a Document, we are forced to use in an if/then or switch/case block to return a DocumentType Enumeration.

 

Then we must iterate again using the returned enumeration to continue the process. 

 

If we could simply get the DocumentType from a Document as we get the bool IsFamilyDocument it would make my work, and the work of others, cleaner and less tedious.

 

I posed a question about this topic at the link below.

https://forums.autodesk.com/t5/revit-api-forum/difficulty-getting-documenttype-from-document/m-p/946...

 

Thank you!

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

Submit Idea