<?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: Getting Building Material Names out of Library Objects in Collaboration with other software</title>
    <link>https://community.graphisoft.com/t5/Collaboration-with-other/Getting-Building-Material-Names-out-of-Library-Objects/m-p/224135#M28691</link>
    <description>This is what I figured.&lt;BR /&gt;
Surely since Building Materials have become the ruling data source, accessing building material data will get easier out of the box.&lt;BR /&gt;
Thanks to all who have responded!!</description>
    <pubDate>Wed, 25 Aug 2021 11:33:09 GMT</pubDate>
    <dc:creator>gdford</dc:creator>
    <dc:date>2021-08-25T11:33:09Z</dc:date>
    <item>
      <title>Getting Building Material Names out of Library Objects</title>
      <link>https://community.graphisoft.com/t5/Collaboration-with-other/Getting-Building-Material-Names-out-of-Library-Objects/m-p/224132#M28688</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I create a collection of morphs each of which has a different building material assigned to it.&lt;BR /&gt;
Then i select the collection of morphs and turn them into one library object.&lt;BR /&gt;
I place that object and i open the objects selection settings and i see a list of all of the building materials from the original morphs. &lt;BR /&gt;
This is cool.... but I can not find a way to pull this building material information out of the object and into a label.&lt;BR /&gt;
Does anyone have any thoughts on this?&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 21 Aug 2021 12:54:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Collaboration-with-other/Getting-Building-Material-Names-out-of-Library-Objects/m-p/224132#M28688</guid>
      <dc:creator>gdford</dc:creator>
      <dc:date>2021-08-21T12:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Building Material Names out of Library Objects</title>
      <link>https://community.graphisoft.com/t5/Collaboration-with-other/Getting-Building-Material-Names-out-of-Library-Objects/m-p/224133#M28689</link>
      <description>Unfortunately, this is not possible yet. One way to achieve this would be to create an Expression-based Property and obtain the Library Part parameter in that Expression. However, Library Part parameters are not available in Expressions.&lt;BR /&gt;
This functionality has been wished for before.&lt;BR /&gt;
The only way to get the Library Part parameters is in Schedules. In Labels, it is not possible.</description>
      <pubDate>Mon, 23 Aug 2021 06:25:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Collaboration-with-other/Getting-Building-Material-Names-out-of-Library-Objects/m-p/224133#M28689</guid>
      <dc:creator>Laszlo Nagy</dc:creator>
      <dc:date>2021-08-23T06:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Building Material Names out of Library Objects</title>
      <link>https://community.graphisoft.com/t5/Collaboration-with-other/Getting-Building-Material-Names-out-of-Library-Objects/m-p/224134#M28690</link>
      <description>&lt;BLOCKQUOTE&gt;LaszloNagy wrote:&lt;BR /&gt;
The only way to get the Library Part parameters is in Schedules. In Labels, it is not possible.
&lt;/BLOCKQUOTE&gt;

It is possible, but it is but it is not pretty (but I may be doing it the hard way).&lt;BR /&gt;
You have to create your own label object and you need to know the parameter name for the building material.&lt;BR /&gt;
&lt;BR /&gt;
You use ... n = REQUEST ("ASSOCLP_PARVALUE", expr, name_or_index, type, flags, dim1, dim2, p_values)&lt;BR /&gt;
in the label script to access the &lt;BR /&gt;
&lt;BR /&gt;
Where 'expr' is the parameter name of the building material from the object (in quotes).&lt;BR /&gt;
&lt;BR /&gt;
Then that returns the index number of the Building Material to 'p_values'.&lt;BR /&gt;
Because that is a number you must convert it to the Building material name.&lt;BR /&gt;
&lt;BR /&gt;
So something like this in the label master script.&lt;BR /&gt;
&lt;BR /&gt;
rrr=REQUEST ("ASSOCLP_PARVALUE", "buildingMatAttribute_1", name_or_index, type, flags, dim1, dim2, p_values) &lt;BR /&gt;
&lt;BR /&gt;
nnn = REQUEST ("Name_of_building_material", p_values, name)&lt;BR /&gt;
&lt;BR /&gt;
 &lt;BR /&gt;
Then you use a TEXT2 or Paragraph to show the name in the label in the 2D script.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
So you need to know the name of the Building Material parameter (or parameters if there is more than one) so you can request it in the label.&lt;BR /&gt;
I guess you could create a parameter in the label that would allow you to manually type in the object parameter name or names.&lt;BR /&gt;
&lt;BR /&gt;
I know it is possible to list ALL parameters of an object (I have seen this done in an object created by Frank-Beister + Jochen Sühlo).&lt;BR /&gt;
But I am yet to see (or try to create) a label that allows you to choose from a list of available parameters.&lt;BR /&gt;
Hence why as far as I know, you have to hard code the object parameter name into the label object.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Mon, 23 Aug 2021 07:28:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Collaboration-with-other/Getting-Building-Material-Names-out-of-Library-Objects/m-p/224134#M28690</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2021-08-23T07:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Building Material Names out of Library Objects</title>
      <link>https://community.graphisoft.com/t5/Collaboration-with-other/Getting-Building-Material-Names-out-of-Library-Objects/m-p/224135#M28691</link>
      <description>This is what I figured.&lt;BR /&gt;
Surely since Building Materials have become the ruling data source, accessing building material data will get easier out of the box.&lt;BR /&gt;
Thanks to all who have responded!!</description>
      <pubDate>Wed, 25 Aug 2021 11:33:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Collaboration-with-other/Getting-Building-Material-Names-out-of-Library-Objects/m-p/224135#M28691</guid>
      <dc:creator>gdford</dc:creator>
      <dc:date>2021-08-25T11:33:09Z</dc:date>
    </item>
  </channel>
</rss>

