<?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: Automate Elements selection that are on specific layer in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/SLVD-Automate-Elements-selection-that-are-on-specific-layer/m-p/289484#M5238</link>
    <description>&lt;BLOCKQUOTE&gt;DimRad wrote:&lt;BR /&gt;Hi to all AC developer community! &lt;BR /&gt;
Have one little question - how I can through AC API select all specific Elements (for example: polylines) that are on specific layer (e.g.: Layer name: 2d - polylines). &lt;BR /&gt;
 &lt;BR /&gt;
Thank You in advance!&lt;BR /&gt;
Dmytro Radomtsev.&lt;/BLOCKQUOTE&gt;

Hello Dmytro,&lt;BR /&gt;
&lt;BR /&gt;
First get the attribute index of the "2d - polylines" layer with ACAPI_Attribute_Search().&lt;BR /&gt;
You'll have to get all polyline elements with ACAPI_Element_GetElemList (), then iterate through the returned array, get each element's header with ACAPI_Element_GetHeader (), and check the 'layer' member of the header. Note that if the rgr_layer of that element is not 0, than the element is coming from a hotlinked module.&lt;BR /&gt;
&lt;BR /&gt;
This will get you all the polylines on the floor plans; if you need polylines specific to the layouts or drawn directly onto elevations or details, then you have to switch to those databases, and repeat the same procedure.&lt;BR /&gt;
&lt;BR /&gt;
Best, Akos</description>
    <pubDate>Fri, 09 Jun 2017 03:16:11 GMT</pubDate>
    <dc:creator>Akos Somorjai</dc:creator>
    <dc:date>2017-06-09T03:16:11Z</dc:date>
    <item>
      <title>[SLVD]Automate Elements selection that are on specific layer</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/SLVD-Automate-Elements-selection-that-are-on-specific-layer/m-p/289483#M5237</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi to all AC developer community! &lt;BR /&gt;Have one little question - how I can through AC API select all specific Elements (for example: polylines) that are on specific layer (e.g.: Layer name: 2d - polylines). &lt;BR /&gt;&lt;BR /&gt;Thank You in advance!&lt;BR /&gt;Dmytro Radomtsev.&lt;/DIV&gt;</description>
      <pubDate>Tue, 06 Dec 2022 13:06:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/SLVD-Automate-Elements-selection-that-are-on-specific-layer/m-p/289483#M5237</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-06T13:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Automate Elements selection that are on specific layer</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/SLVD-Automate-Elements-selection-that-are-on-specific-layer/m-p/289484#M5238</link>
      <description>&lt;BLOCKQUOTE&gt;DimRad wrote:&lt;BR /&gt;Hi to all AC developer community! &lt;BR /&gt;
Have one little question - how I can through AC API select all specific Elements (for example: polylines) that are on specific layer (e.g.: Layer name: 2d - polylines). &lt;BR /&gt;
 &lt;BR /&gt;
Thank You in advance!&lt;BR /&gt;
Dmytro Radomtsev.&lt;/BLOCKQUOTE&gt;

Hello Dmytro,&lt;BR /&gt;
&lt;BR /&gt;
First get the attribute index of the "2d - polylines" layer with ACAPI_Attribute_Search().&lt;BR /&gt;
You'll have to get all polyline elements with ACAPI_Element_GetElemList (), then iterate through the returned array, get each element's header with ACAPI_Element_GetHeader (), and check the 'layer' member of the header. Note that if the rgr_layer of that element is not 0, than the element is coming from a hotlinked module.&lt;BR /&gt;
&lt;BR /&gt;
This will get you all the polylines on the floor plans; if you need polylines specific to the layouts or drawn directly onto elevations or details, then you have to switch to those databases, and repeat the same procedure.&lt;BR /&gt;
&lt;BR /&gt;
Best, Akos</description>
      <pubDate>Fri, 09 Jun 2017 03:16:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/SLVD-Automate-Elements-selection-that-are-on-specific-layer/m-p/289484#M5238</guid>
      <dc:creator>Akos Somorjai</dc:creator>
      <dc:date>2017-06-09T03:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Automate Elements selection that are on specific layer</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/SLVD-Automate-Elements-selection-that-are-on-specific-layer/m-p/289485#M5239</link>
      <description>Thank You for help, that's work!</description>
      <pubDate>Thu, 20 Jul 2017 08:51:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/SLVD-Automate-Elements-selection-that-are-on-specific-layer/m-p/289485#M5239</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-20T08:51:47Z</dc:date>
    </item>
  </channel>
</rss>

