<?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: APIAny_PolygonId2SurfaceTypeID in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/APIAny-PolygonId2SurfaceTypeID/m-p/253404#M4004</link>
    <description>&lt;BLOCKQUOTE&gt;neerson wrote:&lt;BR /&gt;Hi,&lt;BR /&gt;
Could you give me a working example for this?&lt;BR /&gt;
It's not clear which kind of polygonID mentioned here..&lt;BR /&gt;
   GSErrCode ACAPI_Goodies (&lt;BR /&gt;
        APIAny_PolygonId2SurfaceTypeID,&lt;BR /&gt;
        const API_Element*    elem,&lt;BR /&gt;
        const Int32*          polygonId,&lt;BR /&gt;
        API_SurfaceTypeID*    surfaceType&lt;BR /&gt;
    );
&lt;/BLOCKQUOTE&gt;
I don't have a working example, but I can give a bit more detail. This relevant to the ModelerAPI, where the polygonID is the index of a polygon (face) in a model view. The view will be comprised of 3D bodies, which are comprised of 3D polygons, which are defined by edges that are comprised of a start and end point. If you're iterating through the polygons in a 3D body, this method will tell you the role that face plays in the model, e.g. a wall reference side.</description>
    <pubDate>Thu, 21 Dec 2017 14:59:33 GMT</pubDate>
    <dc:creator>Ralph Wessel</dc:creator>
    <dc:date>2017-12-21T14:59:33Z</dc:date>
    <item>
      <title>APIAny_PolygonId2SurfaceTypeID</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/APIAny-PolygonId2SurfaceTypeID/m-p/253403#M4003</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi,&lt;BR /&gt;Could you give me a working example for this?&lt;BR /&gt;It's not clear which kind of polygonID mentioned here..&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;GSErrCode ACAPI_Goodies (&lt;BR /&gt;APIAny_PolygonId2SurfaceTypeID,&lt;BR /&gt;const API_Element* elem,&lt;BR /&gt;const Int32* polygonId,&lt;BR /&gt;API_SurfaceTypeID* surfaceType&lt;BR /&gt;);&lt;BR /&gt;&lt;BR /&gt;elem&lt;BR /&gt;[in] Parameter elem for element type identification. Give elem.header.guid or elem.header.typeId. In case of specify roof elem.roof.roofClass also.&lt;BR /&gt;polygonId&lt;BR /&gt;[in] Parameter polygonId.&lt;BR /&gt;surfaceType&lt;BR /&gt;[out] Parameter surfaceType.&lt;/DIV&gt;</description>
      <pubDate>Tue, 06 Dec 2022 12:47:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/APIAny-PolygonId2SurfaceTypeID/m-p/253403#M4003</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-06T12:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: APIAny_PolygonId2SurfaceTypeID</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/APIAny-PolygonId2SurfaceTypeID/m-p/253404#M4004</link>
      <description>&lt;BLOCKQUOTE&gt;neerson wrote:&lt;BR /&gt;Hi,&lt;BR /&gt;
Could you give me a working example for this?&lt;BR /&gt;
It's not clear which kind of polygonID mentioned here..&lt;BR /&gt;
   GSErrCode ACAPI_Goodies (&lt;BR /&gt;
        APIAny_PolygonId2SurfaceTypeID,&lt;BR /&gt;
        const API_Element*    elem,&lt;BR /&gt;
        const Int32*          polygonId,&lt;BR /&gt;
        API_SurfaceTypeID*    surfaceType&lt;BR /&gt;
    );
&lt;/BLOCKQUOTE&gt;
I don't have a working example, but I can give a bit more detail. This relevant to the ModelerAPI, where the polygonID is the index of a polygon (face) in a model view. The view will be comprised of 3D bodies, which are comprised of 3D polygons, which are defined by edges that are comprised of a start and end point. If you're iterating through the polygons in a 3D body, this method will tell you the role that face plays in the model, e.g. a wall reference side.</description>
      <pubDate>Thu, 21 Dec 2017 14:59:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/APIAny-PolygonId2SurfaceTypeID/m-p/253404#M4004</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2017-12-21T14:59:33Z</dc:date>
    </item>
  </channel>
</rss>

