<?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: &amp;quot;Component_IDs_Of_Parent&amp;quot; - How to get names of components? in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/quot-Component-IDs-Of-Parent-quot-How-to-get-names-of-components/m-p/599703#M6538</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;if it is enough to list skins that are actually cut by the floorplan cutplane:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;dict collectComponents, outputCompIds
collectComponents.collectMode = 1
n = REQUEST ("Component_IDs_Of_Parent", collectComponents, outputCompIds)
if n &amp;gt; 0 then
	collectComponents.collectMode = 2
	n = REQUEST ("Component_IDs_Of_Parent", collectComponents, outputCompIds)

	for i = 1 to vardim1(outputCompIds.componentIds)
		text2 0, 0, outputCompIds.componentIds[i].id
		add2 0, -1
	next i
	del i - 1

	add2 2, 0
	for i = 1 to vardim1(WALL_SKINS_BMAT_NAMES)
		text2 0, 0, WALL_SKINS_PARAMS[i][18]
		add2 2, 0
		text2 0, 0, WALL_SKINS_BMAT_NAMES[i][1]
		del 1
		add2 0, -1
	next i
	del i - 1

	del 1
endif&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;collectComponents.collectMode = 2 gives result in the same order as WALL_SKINS_... globals (hiding data of uncut components).&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Wed, 17 Apr 2024 14:48:12 GMT</pubDate>
    <dc:creator>Peter Baksa</dc:creator>
    <dc:date>2024-04-17T14:48:12Z</dc:date>
    <item>
      <title>"Component_IDs_Of_Parent" - How to get names of components?</title>
      <link>https://community.graphisoft.com/t5/GDL/quot-Component-IDs-Of-Parent-quot-How-to-get-names-of-components/m-p/599028#M6508</link>
      <description>&lt;P&gt;Hi Gdlers,&lt;/P&gt;
&lt;P&gt;How to get names of building materials after using request:&lt;/P&gt;
&lt;P&gt;n = REQUEST ( Component_IDs_Of_Parent collectComponents, outputCompIds)&lt;BR /&gt;outputCompIDs- return dictonary with some strange bmat ids that are not indexes nor guids and what is more in case of compllex profiles they are in different order than responses of&amp;nbsp; Profile_component_info&lt;/P&gt;
&lt;P&gt;Help!&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 08:22:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/quot-Component-IDs-Of-Parent-quot-How-to-get-names-of-components/m-p/599028#M6508</guid>
      <dc:creator>greg_lupo</dc:creator>
      <dc:date>2024-09-24T08:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: "Component_IDs_Of_Parent" - How to get names of components?</title>
      <link>https://community.graphisoft.com/t5/GDL/quot-Component-IDs-Of-Parent-quot-How-to-get-names-of-components/m-p/599281#M6516</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Components have a building material, but they have a cross-section shape too, so they are different from building materials.&lt;/P&gt;
&lt;P&gt;You can't get building material index from them, but the property Common / Name can be set for building materials, and shown as a component property.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 11:04:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/quot-Component-IDs-Of-Parent-quot-How-to-get-names-of-components/m-p/599281#M6516</guid>
      <dc:creator>Peter Baksa</dc:creator>
      <dc:date>2024-04-15T11:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: "Component_IDs_Of_Parent" - How to get names of components?</title>
      <link>https://community.graphisoft.com/t5/GDL/quot-Component-IDs-Of-Parent-quot-How-to-get-names-of-components/m-p/599298#M6517</link>
      <description>&lt;P&gt;But Properties in bmats cant be expressions so writing Common/Name has to be fill up by hand right?&lt;BR /&gt;From a label user the&amp;nbsp; aim was to have a list of components of complex profile, pick one and display its properties.&lt;/P&gt;&lt;P&gt;problem is that&amp;nbsp; request "&lt;SPAN&gt;Component_IDs_Of_Parent" returns dict with component ids (different than bmat indeces) but&amp;nbsp; also in different order than result&amp;nbsp; of&amp;nbsp; "Profile_component_info". Is there a automatic way to identify components with thier coresponding bmats?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 12:52:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/quot-Component-IDs-Of-Parent-quot-How-to-get-names-of-components/m-p/599298#M6517</guid>
      <dc:creator>greg_lupo</dc:creator>
      <dc:date>2024-04-15T12:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: "Component_IDs_Of_Parent" - How to get names of components?</title>
      <link>https://community.graphisoft.com/t5/GDL/quot-Component-IDs-Of-Parent-quot-How-to-get-names-of-components/m-p/599703#M6538</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;if it is enough to list skins that are actually cut by the floorplan cutplane:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;dict collectComponents, outputCompIds
collectComponents.collectMode = 1
n = REQUEST ("Component_IDs_Of_Parent", collectComponents, outputCompIds)
if n &amp;gt; 0 then
	collectComponents.collectMode = 2
	n = REQUEST ("Component_IDs_Of_Parent", collectComponents, outputCompIds)

	for i = 1 to vardim1(outputCompIds.componentIds)
		text2 0, 0, outputCompIds.componentIds[i].id
		add2 0, -1
	next i
	del i - 1

	add2 2, 0
	for i = 1 to vardim1(WALL_SKINS_BMAT_NAMES)
		text2 0, 0, WALL_SKINS_PARAMS[i][18]
		add2 2, 0
		text2 0, 0, WALL_SKINS_BMAT_NAMES[i][1]
		del 1
		add2 0, -1
	next i
	del i - 1

	del 1
endif&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;collectComponents.collectMode = 2 gives result in the same order as WALL_SKINS_... globals (hiding data of uncut components).&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 17 Apr 2024 14:48:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/quot-Component-IDs-Of-Parent-quot-How-to-get-names-of-components/m-p/599703#M6538</guid>
      <dc:creator>Peter Baksa</dc:creator>
      <dc:date>2024-04-17T14:48:12Z</dc:date>
    </item>
  </channel>
</rss>

