<?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: Label that can read objects in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Label-that-can-read-objects/m-p/193948#M20587</link>
    <description>selfGDL.com just made it onto my bookmarks bar.  I love the way your site is organized.  Now I just have to learn German.</description>
    <pubDate>Wed, 25 Aug 2010 19:40:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-08-25T19:40:32Z</dc:date>
    <item>
      <title>Label that can read objects</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Label-that-can-read-objects/m-p/193940#M20579</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I'm working on a label that will note the selected parameters of an object.   I have figured out how to get the value of a parameter if I know the parameter in advance.&lt;BR /&gt;
&lt;BR /&gt;
Is there a way to read the parameters in any object? ...perhaps a request function I'm missing. &lt;BR /&gt;
&lt;BR /&gt;
The goal is to select an object, label it and choose the parameter to label from a menu  (driven by the parameter script).&lt;BR /&gt;
&lt;BR /&gt;
Best, Patrick&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 21 Aug 2010 03:22:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Label-that-can-read-objects/m-p/193940#M20579</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-08-21T03:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Label that can read objects</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Label-that-can-read-objects/m-p/193941#M20580</link>
      <description>Try this one:&lt;BR /&gt;
&lt;A href="http://www.selfgdl.de/9_diverse/umgebung/um1_REQUEST/kompendium.php?request=ASSOCLP_NAME" target="_blank"&gt;ASSOCLP_NAME&lt;/A&gt;</description>
      <pubDate>Mon, 23 Aug 2010 06:11:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Label-that-can-read-objects/m-p/193941#M20580</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2010-08-23T06:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Label that can read objects</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Label-that-can-read-objects/m-p/193942#M20581</link>
      <description>Yes.  I have used ASSOCLP_NAME to get the name of an object and ASSOCLP_PARVALUE to get the value of a particular parameter.  &lt;BR /&gt;
&lt;BR /&gt;
The problem is that I need to know the parameter I'm looking for in advance.  In other words if I want to label a seat with the material it's made out of, I would need to know that the material parameter is SEAT_MAT.  I would love to be able to attach the label to any object and see what parameters are in the object.</description>
      <pubDate>Mon, 23 Aug 2010 16:59:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Label-that-can-read-objects/m-p/193942#M20581</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-08-23T16:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: Label that can read objects</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Label-that-can-read-objects/m-p/193943#M20582</link>
      <description>Have a look at this code:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;

&lt;PRE&gt;!################################################################################
!
! Etikett-Parameter-Routine von Frank-Beister+ Jochen Sühlo


DIM NP[],valS[],valN[],valA[],valAt[],askP[13],valP[],sts[],stsT[]


!### request all parameters from main object and
!### store name and value into the arrays

i=1

do
  NameP=""
  rrr=REQUEST ("ASSOCLP_PARVALUE", i, NameP, Art, Zustand, Dimension_1, Dimension_2, Wert)
  if rrr then
    NP&lt;I&gt;=NameP : valS&lt;I&gt;="" : valN&lt;I&gt;=0 : valA&lt;I&gt;=Art
    maxP=i
    if Art=4 then valS&lt;I&gt;=Wert else valN&lt;I&gt;=Wert
	endif
  sts&lt;I&gt;=Zustand
  i=i+1
  while i&amp;lt;501 and rrr



!### print list

DEFINE STYLE "Links" LABEL_FONT_NAME, LABEL_TEXT_SIZE,3,1
DEFINE STYLE "Rechts" LABEL_FONT_NAME, LABEL_TEXT_SIZE,1,0
s=-LABEL_TEXT_SIZE/1000*GLOB_SCALE*1.5

  for i=1 to maxP

    STYLE "Links"
    f=f+1 : text2 0,0,NP&lt;I&gt;

    STYLE "Rechts"
    IF valS&lt;I&gt;="" THEN txt=str("%.4",valN&lt;I&gt;) ELSE txt="»"+valS&lt;I&gt;+"«"
    text2 t,0, txt + " (type=" + str(valA&lt;I&gt;,1,0) + " · " + str(sts&lt;I&gt;,1,0)+"?"
 
    ADD2 0,s

    NEXT i&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Aug 2010 06:47:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Label-that-can-read-objects/m-p/193943#M20582</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2010-08-24T06:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Label that can read objects</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Label-that-can-read-objects/m-p/193944#M20583</link>
      <description>Thanks so much.  Can't wait to try this.  I would have never figured this out.&lt;BR /&gt;
&lt;BR /&gt;
Patrick</description>
      <pubDate>Tue, 24 Aug 2010 13:54:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Label-that-can-read-objects/m-p/193944#M20583</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-08-24T13:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Label that can read objects</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Label-that-can-read-objects/m-p/193945#M20584</link>
      <description>Frank, you are VERY good. &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt; Nice work</description>
      <pubDate>Tue, 24 Aug 2010 14:39:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Label-that-can-read-objects/m-p/193945#M20584</guid>
      <dc:creator>Ben Cohen</dc:creator>
      <dc:date>2010-08-24T14:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Label that can read objects</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Label-that-can-read-objects/m-p/193946#M20585</link>
      <description>Many thanks to Frank-Beister+ Jochen Sühlo for their code,&lt;BR /&gt;
&lt;BR /&gt;
I had a chance to play with this today.  I must say this bit of code is great!  I learned a lot of things I would have never discovered from the GDL manual.  Now I'm working on sorting out the unnecessary parameters to create a useful label object.</description>
      <pubDate>Wed, 25 Aug 2010 01:52:15 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Label-that-can-read-objects/m-p/193946#M20585</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-08-25T01:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Label that can read objects</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Label-that-can-read-objects/m-p/193947#M20586</link>
      <description>What could you learn, if you could read selfGDL.com. &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/E&gt;</description>
      <pubDate>Wed, 25 Aug 2010 06:16:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Label-that-can-read-objects/m-p/193947#M20586</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2010-08-25T06:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Label that can read objects</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Label-that-can-read-objects/m-p/193948#M20587</link>
      <description>selfGDL.com just made it onto my bookmarks bar.  I love the way your site is organized.  Now I just have to learn German.</description>
      <pubDate>Wed, 25 Aug 2010 19:40:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Label-that-can-read-objects/m-p/193948#M20587</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-08-25T19:40:32Z</dc:date>
    </item>
  </channel>
</rss>

