<?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 Re: Get MEP Object type in Add On API C++ in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Get-MEP-Object-type-in-Add-On-API-C/m-p/381200#M835</link>
    <description>&lt;P&gt;But it doesn't have classification for MEP elements. I need MEP element identification.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnkurYadav_0-1684838583481.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/38164i3E091B0D14D7CB99/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AnkurYadav_0-1684838583481.png" alt="AnkurYadav_0-1684838583481.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 23 May 2023 10:43:26 GMT</pubDate>
    <dc:creator>Ankur Yadav</dc:creator>
    <dc:date>2023-05-23T10:43:26Z</dc:date>
    <item>
      <title>Get MEP Object type in Add On API C++</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Get-MEP-Object-type-in-Add-On-API-C/m-p/381180#M833</link>
      <description>&lt;P&gt;I want to identify the MEP object type like whether it's a pipe, duct, bend, cable tray etc. I am getting the library object and properties. How do i identify if an object and library part is of specific type (pipe, duct, bend, cable tray etc). Any link to documentation or code snippet would be helpful.&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 06:47:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Get-MEP-Object-type-in-Add-On-API-C/m-p/381180#M833</guid>
      <dc:creator>Ankur Yadav</dc:creator>
      <dc:date>2023-05-23T06:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Get MEP Object type in Add On API C++</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Get-MEP-Object-type-in-Add-On-API-C/m-p/381185#M834</link>
      <description>&lt;P&gt;You can filter it by API_​ElemVariationID.&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 08:12:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Get-MEP-Object-type-in-Add-On-API-C/m-p/381185#M834</guid>
      <dc:creator>kuvbur</dc:creator>
      <dc:date>2023-05-23T08:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Get MEP Object type in Add On API C++</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Get-MEP-Object-type-in-Add-On-API-C/m-p/381200#M835</link>
      <description>&lt;P&gt;But it doesn't have classification for MEP elements. I need MEP element identification.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnkurYadav_0-1684838583481.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/38164i3E091B0D14D7CB99/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AnkurYadav_0-1684838583481.png" alt="AnkurYadav_0-1684838583481.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 10:43:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Get-MEP-Object-type-in-Add-On-API-C/m-p/381200#M835</guid>
      <dc:creator>Ankur Yadav</dc:creator>
      <dc:date>2023-05-23T10:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Get MEP Object type in Add On API C++</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Get-MEP-Object-type-in-Add-On-API-C/m-p/381203#M836</link>
      <description>&lt;P&gt;That's right, there is no MEP in the standard list of subtypes, since MEP is not part of Archiсad. All MEP elements are registered with the ACAPI_​Register_​Subtype function and you can look up their API_​ElemVariationID and build a dictionary with constants.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 10:52:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Get-MEP-Object-type-in-Add-On-API-C/m-p/381203#M836</guid>
      <dc:creator>kuvbur</dc:creator>
      <dc:date>2023-05-23T10:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Get MEP Object type in Add On API C++</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Get-MEP-Object-type-in-Add-On-API-C/m-p/381205#M837</link>
      <description>&lt;P&gt;Can we access this type info of library parts using API&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnkurYadav_1-1684839328249.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/38165i9BB0C4FA2A456254/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AnkurYadav_1-1684839328249.png" alt="AnkurYadav_1-1684839328249.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 10:55:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Get-MEP-Object-type-in-Add-On-API-C/m-p/381205#M837</guid>
      <dc:creator>Ankur Yadav</dc:creator>
      <dc:date>2023-05-23T10:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Get MEP Object type in Add On API C++</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Get-MEP-Object-type-in-Add-On-API-C/m-p/381207#M838</link>
      <description>&lt;P&gt;No, you need to look up the value in the element's API_​Elem_​Head&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 11:13:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Get-MEP-Object-type-in-Add-On-API-C/m-p/381207#M838</guid>
      <dc:creator>kuvbur</dc:creator>
      <dc:date>2023-05-23T11:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Get MEP Object type in Add On API C++</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Get-MEP-Object-type-in-Add-On-API-C/m-p/381217#M839</link>
      <description>&lt;P&gt;But&amp;nbsp;&lt;SPAN&gt;element's API_​Elem_​Head has type set as API_ObjectID for all the MEP library parts. I'm not able to distinguish between them.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 13:44:03 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Get-MEP-Object-type-in-Add-On-API-C/m-p/381217#M839</guid>
      <dc:creator>Ankur Yadav</dc:creator>
      <dc:date>2023-05-23T13:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Get MEP Object type in Add On API C++</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Get-MEP-Object-type-in-Add-On-API-C/m-p/381224#M840</link>
      <description>&lt;P&gt;Not sure this will help- BUT- since MEP elements are just special Library Parts, they all appear to have a special parameter which distinguishes the MEP version number - currently 4. You could simply create a schedule with lists the Parameter -- "MEP Version" - If the object has that parameter, it is a MEP element, if not, just a object.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are confined to a C++ AddOn, you can use the functions of "ACAPI_LibPart_Get to get the part's USID and then use "ACAPI_LibPart_GetParams" to iterate through the parameters to find,or not, the "MEP Version" variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A third variant would be to use a simple Python script to return all the parameters of a Library Object, then search though that.&amp;nbsp; That requires a C++ AddOn in association with the script to return the information. Such a AddOn and sample script is available on my GitHub site, if interested.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By far, the easiest is to just create a schedule and filter the results, but you my have other requirements?&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 15:05:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Get-MEP-Object-type-in-Add-On-API-C/m-p/381224#M840</guid>
      <dc:creator>poco2013</dc:creator>
      <dc:date>2023-05-23T15:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Get MEP Object type in Add On API C++</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Get-MEP-Object-type-in-Add-On-API-C/m-p/381225#M841</link>
      <description>&lt;P&gt;API_ObjectID is API_ElemTypeID. Look at API_ElemVariationID, it is part of API_ElemType struct&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 15:06:03 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Get-MEP-Object-type-in-Add-On-API-C/m-p/381225#M841</guid>
      <dc:creator>kuvbur</dc:creator>
      <dc:date>2023-05-23T15:06:03Z</dc:date>
    </item>
  </channel>
</rss>

