Determine Project/Document Type

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello
I have searched the blog The Building Coder to see if my question is already answered there but no luck.
I am trying to determine the type of Revit project that is currently open. When I say the type, I mean, either MEP, Architectural, Structural or Construction.
Do you know how I can determine this? I have found an class called ProjectInfo but there isn't anything in there pertaining to the project type. There is a property called Category but as usual the help documentation provides a superficial 1 sentence explaination of the property that doesn't clear things up nor provide examples of it potential values. I have also run a project and output the Category property using .ToString() but it just outputs the namespace path "Revit.DB.ProjectInfo.Category"
If anyone could provide advice on how to determine the current Revit projects type I would be very greatful 🙂