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!