<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Determine Project/Document Type in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/determine-project-document-type/m-p/4446131#M78691</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have searched the blog The Building Coder to see if my question is already answered there but no luck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone could provide advice on how to determine the current Revit projects type I would be very greatful &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 22 Sep 2013 03:24:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-09-22T03:24:25Z</dc:date>
    <item>
      <title>Determine Project/Document Type</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/determine-project-document-type/m-p/4446131#M78691</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have searched the blog The Building Coder to see if my question is already answered there but no luck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone could provide advice on how to determine the current Revit projects type I would be very greatful &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Sep 2013 03:24:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/determine-project-document-type/m-p/4446131#M78691</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-22T03:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Determine Project/Document Type</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/determine-project-document-type/m-p/4449111#M78692</link>
      <description>&lt;P&gt;The way I do it (not saying that is the preferred way), is to check for the presence of a specific item within the databse that can only be included when using a specific template.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I mean is: I am always checking if it is from an 'Electrical Template'. I know that a few distribution systems are already set in elec. templates that do not exist in others, so I check for that first (see attachments).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I assume you could know what exists soley in a structural template also, then whatever is left by deduction, has to be Architectural.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then set your rules based on the results from that.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2013 14:16:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/determine-project-document-type/m-p/4449111#M78692</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-23T14:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Determine Project/Document Type</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/determine-project-document-type/m-p/4450045#M78693</link>
      <description>&lt;P&gt;Thanks for your reply &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Will try this technique out.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2013 22:41:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/determine-project-document-type/m-p/4450045#M78693</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-23T22:41:10Z</dc:date>
    </item>
  </channel>
</rss>

